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

Rework storage tests to test both encoding formats #1052

Merged
merged 5 commits into from
Jun 20, 2024

Conversation

jrray
Copy link
Collaborator

@jrray jrray commented Jun 17, 2024

Fix tests failing if the default encoding is switched to legacy in the code; make the tests not rely on what the coded default is.

Fix tests failing if the default encoding is switched to legacy in the
code; make the tests not rely on what the coded default is.

Signed-off-by: J Robert Ray <jrray@jrray.org>
@jrray jrray added the bug Something isn't working label Jun 17, 2024
@jrray jrray self-assigned this Jun 17, 2024
@jrray jrray added the SPI AOI Area of interest for SPI label Jun 17, 2024
@jrray jrray requested a review from rydrman June 17, 2024 20:43
These other tests are subject to spurious failures if run concurrently
with the tests that change the encoding format. Now they can test for
correct behavior for both digest strategies.

Signed-off-by: J Robert Ray <jrray@jrray.org>
Related to concurrent tests and config changing.

Signed-off-by: J Robert Ray <jrray@jrray.org>
@jrray
Copy link
Collaborator Author

jrray commented Jun 17, 2024

I'm encountering a series of spurious test failures in our internal CI, likely only happening there because we have the defaults flipped to legacy, hence the series of followup commits. I'll keep iterating until they go away, but this isn't a great situation and I can't be sure they're all gone once I get the CI to pass [once].

@jrray
Copy link
Collaborator Author

jrray commented Jun 17, 2024

At this point it passed CI internally and survived a couple retry runs.

Edit: some more spurious errors showed up after another CI run.

Signed-off-by: J Robert Ray <jrray@jrray.org>
Signed-off-by: J Robert Ray <jrray@jrray.org>
@jrray
Copy link
Collaborator Author

jrray commented Jun 18, 2024

Better results after the additional changes, however we might as well leave this open for a bit to get more CI runs under our belt.

Copy link
Collaborator

@rydrman rydrman left a comment

Choose a reason for hiding this comment

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

I'm also fine to merge this and iterate as needed... the changes all look reasonable

@jrray
Copy link
Collaborator Author

jrray commented Jun 20, 2024

We made it through a good number of successful CI runs now.

@jrray jrray merged commit 2751386 into main Jun 20, 2024
7 checks passed
@jrray jrray deleted the test-all-encoding-formats branch June 20, 2024 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working SPI AOI Area of interest for SPI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants