Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky test_run_srb_from_bundler_not_found test #122

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

Morriar
Copy link
Collaborator

@Morriar Morriar commented Mar 9, 2022

Closes #117.

This was actually order dependent.

If this test is executed first and the gem sorbet is not installed
on the system Bundler won't know about it and simply exit with a 127
error code.

Whereas if this test is executed after one installing sorbet, Bundler
will see the srb executable in the GEM_PATH and raise a different error
(explaining that the executable is not in the bundle) and return 1 instead.

This was actually order dependent.

If this test is executed first and the gem `sorbet` is not installed
on the system Bundler won't know about it and simply exit with a 127
error code.

Whereas if this test is executed _after_ one installing `sorbet`, Bundler
will see the `srb` executable in the GEM_PATH and raise a different error
(explaining that the executable is not in the bundle) and return 1 instead.

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Co-authored-by: Ufuk Kayserilioglu <ufuk.kayserilioglu@shopify.com>
@Morriar Morriar added the bug Something isn't working label Mar 9, 2022
@Morriar Morriar requested a review from a team March 9, 2022 19:42
@Morriar Morriar self-assigned this Mar 9, 2022
@Morriar Morriar merged commit e60c320 into main Mar 9, 2022
@Morriar Morriar deleted the at-fix-bundler-test branch March 9, 2022 21:13
@shopify-shipit shopify-shipit bot temporarily deployed to production March 22, 2022 15:02 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate why test_run_srb_from_bundler_not_found randomly fails
3 participants