-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
tests on master should have no failures on any computer #2199
Comments
|
Hi @tute, happy to help out with this one if possible. Running the specs now |
Thank you! 😃 |
Thank you and all the maintainers for your time and effort :) |
I don't know how realistic this testing scenario: would not a failure to include the s3 hash in options passed to Seems like we have a quick fix by just adding the test env hash with I can PR this if you agree that's a reasonable solution. |
That is a very weird spec. Why do we need the
That makes sense to me. 👍 Thanks for your help! |
I'll push that PR up in a second. I'll have a look at another PR to remove the block and continue investigating failures. |
Another question: why doesn't it fail in CI? |
Ohh. Those tests don't run in CI, as they need ENV vars, right? Which is another weird thing of paperclip's test suite, I think. |
Yeah, the situation is slightly strange, but with some help we can push to get this to a good place! |
This is part of the effort started at thoughtbot#2199) to ensure the test suite is green locally. This spec was failing on obtaining a S3 instance with an `nil` region key. Since `Aws::Resource` does a regex match against the region key passed in, we would fail on `NoMethodError`. This corrects the issue by setting a region key to an empty string in the test setup.
|
This is part of the effort started at thoughtbot#2199 to ensure the test suite is green locally. The attachment processing spec was failing since the setup required done in a before block, namely a call to `rebuild_class`, was running restricted to one of two contexts in the test file. This was leaving the `Dummy` class in a bad state and affected other tests. This PR moves the `before` block to run for the both of the contexts.
|
This is part of the effort started at thoughtbot#2199 to ensure the test suite is green locally. The validators spec was failing since the setup required was missing a call to 'rebuild_class' and leaving the Dummy class in a bad state. This PR adds the call to the before block setup.
@tute let me know if you prefer these PRs to be cherry-picked into one. |
This is part of the effort started at #2199 to ensure the test suite is green locally. The attachment processing spec was failing since the setup required done in a before block, namely a call to `rebuild_class`, was running restricted to one of two contexts in the test file. This was leaving the `Dummy` class in a bad state and affected other tests. This PR moves the `before` block to run for the both of the contexts.
Thank you, @pedrosmmoreira! |
Right now they are only green in CI. Different computers fail differently, in mine I get:
The text was updated successfully, but these errors were encountered: