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: prevent regexp match to tempdir path #1147

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

tompng
Copy link
Member

@tompng tompng commented Aug 2, 2024

test_normalized_file_list_with_dot_doc_overridden_by_exclude_option randomly fails.

http://ci.rvm.jp/results/master-no-rjit@ruby-sp2-noble-docker/5239423
In this case, file path "/tmp/rubytest.ob1rbw/d20240802-764731-bboa2z/a.rb" matches to regexp exclude path /b.rb/.
rubytest.ob1rbw part includes b1rb and it matched to /b.rb/.

\. and $

Note that tmpdir path might also include period (in rubytest.xxxxxx part) and there is a chance that tmpdir might match to /t\.rb/ so I appended $ to avoid it.

Copy link
Member

@st0012 st0012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@st0012 st0012 merged commit ffe5583 into ruby:master Aug 2, 2024
26 checks passed
@tompng tompng deleted the fix_flaky_test branch August 2, 2024 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants