Repository navigation
Remove capitalized mongo tables - #2545
Conversation
|
My guess is that the ulib issue stems from these travis-specific lines, though it isn't clear why these are suddenly being problematic when they worked fine before and aren't throwing any errors for the other ulib tests. |
|
So I did a bunch of test builds, and what I'm seeing is that ulib is only passing on Travis with the lowercase table names when I also install the uppercase tables, which leads me to believe that it is not respecting the capitalization of the table passed into it. However, this still doesn't explain why /update still works. 😓 |
|
@stefanocasazza do you have any idea why ulib's UMongoDBClient might be behaving this way when I try to it to use the lowercase |
|
@knewmanTE Java/act also need to do the same thing. Before I commit the change, should I also change the table name of mysql and postgresql cases? |
|
@greenlaw110 as far as I know, if your MySQL and Postgres implementations are passing at the moment, then you shouldn't have to worry about changing those. @stefanocasazza it looks like we're getting a segfault, which leads me to believe there might be something a little funky with the driver? Also, I've figured out why /update passes when the others fail. See #2546 for more info. |
|
@knewmanTE #2547 created for updating Java/act mongodb collection names |
|
C++/ulib-mongodb passing on my local Travis!!!! Hoping this should be merge-able once the Travis run finishes. |
|
Update on the currently broken tests:
|
…d to use the lower case tables
|
|
||
| async def get(self): | ||
| world = await db.World.find_one(randint(1, 10000)) | ||
| world = await db.dorld.find_one(randint(1, 10000)) |
There was a problem hiding this comment.
I don't think you meant to change it to "dorld" :)
|
Great! With @nbrady-techempower's dorld fix, I think the only remaining issue will be Lua/octopus. |
|
@nbrady-techempower the only failing test in the most recent run is Lua/octopus. Are you cool merging this in with the caveat that #2557 is open? |
|
Definitely. Octopus was failing before too. Awesome work! |
* remove capitalized dropwizard mongo tables * hopefully remove capitalized ulib mongo tables * remove capitalized vibed mongo tables * remove capitalized redstone mongo tables * remove capitalized start mongo tables * remove capitalized stream mongo tables * remove capitalized hot mongo tables * remove capitalized undertow mongo tables * remove capitalized express mongo tables * remove creation of uppercase mongo collections * testing removal of travis-specific code for ulib * maybe a better test * checking if capital table names throw the same ulib error * another test [ci fw-only C++/ulib] * more test [ci fw-only C++/ulib] * re-removed the uppercase mongo tables [ci fw-only C++/ulib] * temporarily disable response trimming [ci fw-only C++/ulib] * add response trimming back in * hopefully fixed Yesod * fixed kelp * fixed tornado * temporarily disable ffead-cpp Mongo Fortune tests until they are fixed to use the lower case tables * a whole new dorld. * a whole new dorld.
For a long time now, we've had 4 MongoDB collections: world, World, fortune, and Fortune. This is causing me a lot of headache on #2536. However, the benefit of this is that #2536 made it very easy to determine which frameworks were using the uppercase World and Fortune collections because they would fail on their /update tests.
This PR removes the World and Fortune collections, leaving us with just world and fortune. It also updates what is hopefully all of the offending frameworks to use the lowercase version.
Issues/weirdness that I'm currently aware of: