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

[test-utils] perform extra redactions at the beginning, not the end #5393

Conversation

sunshowers
Copy link
Contributor

Fix for a rare-but-clearly-possible flake seen in https://github.com/oxidecomputer/omicron/pull/5386/checks?check_run_id=23376436739.

It looks like what happened is that a temporary directory was generated with a
string that looked something like /var/tmp/omicron_tmp/.tmp12msH9Y. The
redactor matched 12ms before it matched the path.

To avoid this, perform extra redactions before the usual ones. I believe this
is always correct -- if a user has passed in an extra redaction, it should
probably be handled before all others.

Created using spr 1.3.6-beta.1
@sunshowers sunshowers added the Test Flake Tests that work. Wait, no. Actually yes. Hang on. Something is broken. label Apr 3, 2024
Copy link
Collaborator

@davepacheco davepacheco left a comment

Choose a reason for hiding this comment

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

Ugh. Thanks for fixing this.

@sunshowers sunshowers merged commit 4a41459 into main Apr 3, 2024
20 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/test-utils-perform-extra-redactions-at-the-beginning-not-the-end branch April 3, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Test Flake Tests that work. Wait, no. Actually yes. Hang on. Something is broken.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants