Skip to content

Fix flaky test: prevent regexp match to tempdir path - #1147

Merged
st0012 merged 1 commit into
ruby:masterfrom
tompng:fix_flaky_test
Aug 2, 2024
Merged

st0012 merged 1 commit into
ruby:masterfrom
tompng:fix_flaky_test

Conversation

@tompng

@tompng tompng commented Aug 2, 2024

Copy link
Copy Markdown
Member

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.

@st0012 st0012 left a comment

Copy link
Copy Markdown
Member

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
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants