Skip to content

Fix flaky test_run_srb_from_bundler_not_found test#122

Merged
Morriar merged 1 commit intomainfrom
at-fix-bundler-test
Mar 9, 2022
Merged

Fix flaky test_run_srb_from_bundler_not_found test#122
Morriar merged 1 commit intomainfrom
at-fix-bundler-test

Conversation

@Morriar
Copy link
Contributor

@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