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 failing test due to the relative path output of minitest at v5.21.0 #50724

Merged
merged 1 commit into from Jan 12, 2024

Conversation

aeroastro
Copy link
Contributor

This patch fixes failing test to pass regardless of minitest versions.

Motivation / Background

minitest has been updated to output relative paths for failures at v5.21.0
minitest/minitest@e410bad

This causes test failures of test/generators/plugin_test_runner_test.rb:72

Detail

This patch fixes the regular expression to run regardless of minitest versions.

Additional information

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature.
  • CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.

@rails-bot rails-bot bot added the railties label Jan 12, 2024
@aeroastro aeroastro changed the title Fix failing test due to the relative path output of minitest Fix failing test due to the relative path output of minitest at v5.21.0 Jan 12, 2024
@aeroastro aeroastro force-pushed the feature/fix-minitest-dependency branch from c1d59a1 to e5c2adc Compare January 12, 2024 12:43
@aeroastro
Copy link
Contributor Author

It seems like one of the test containers are running for too long period due to issues on CI system side.
https://buildkite.com/rails/rails/builds/103817#018cfdb3-57b7-4b4d-9a2c-e51939b491ce

It is very helpful if one of the members could rerun the test and merge this PR 🐱

@aeroastro aeroastro force-pushed the feature/fix-minitest-dependency branch 3 times, most recently from 440adec to 137951e Compare January 12, 2024 15:51
minitest has been updated to output relative paths for failures at v5.21.0

minitest/minitest@e410bad

This patch fixes test to pass regardless of minitest versions.
@aeroastro aeroastro force-pushed the feature/fix-minitest-dependency branch from 137951e to 5853ff1 Compare January 12, 2024 16:01
@eileencodes eileencodes merged commit 0bd8a69 into rails:main Jan 12, 2024
4 checks passed
eileencodes added a commit that referenced this pull request Jan 12, 2024
Fix failing test due to the relative path output of minitest at v5.21.0
@eileencodes
Copy link
Member

Thanks! Backported to 7-1-stable in 404e1fc

@aeroastro aeroastro deleted the feature/fix-minitest-dependency branch January 15, 2024 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants