-
Notifications
You must be signed in to change notification settings - Fork 41
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 failure: omicron-omdb::test_all_output test_omdb_success_cases #6509
Comments
Other notes: This was on Helios, after running |
It looks like the code that does the timestamp redactions attempts to preserve the width (in characters) of the timestamp: omicron/test-utils/src/dev/test_cmds.rs Lines 175 to 177 in eb54c1c
It sounds like most of the time, the width matches what's in the expected output file. In this case, it was 3 characters shorter. In the past I've seen that some ways of formatting timestamps implicitly vary the precision based on the value -- e.g., if the milliseconds happens to be exactly 0, then they get left out. On a regular run I saw this value:
So (1) we're doing the string formatting on the server, and (2) my guess is that the nanoseconds component was 0 in the case we saw and the serialization just left it out. |
#6511) Changes our "timestamp redaction" logic to ignore the original length of the input timestamp. Timestamps are not always constant-width -- depending on the amount of trailing zeros, they can have variable stringified lengths. Unfortunately, this variability is at-odds with our goal of deterministic test output. In this PR, we favor the deterministic output, to avoid test flaking: Variable space output logic is removed in favor of a stable redaction marker. Additionally, tests with different timestamp lengths are added to act as a regression against this particular flake. Fixes #6509
On branch
main
commit 5bf5f09, I saw this test failure:I was actually trying to reproduce #6505 locally, but this looks like a different error. Notably, I'm seeing differences in the whitespace between
REDACTED...TIMESTAMP
.The text was updated successfully, but these errors were encountered: