Skip to content

Fix four flaky tests related to inventory collection#10001

Merged
emilyalbini merged 5 commits intomainfrom
ea-two-spurious
Mar 10, 2026
Merged

Fix four flaky tests related to inventory collection#10001
emilyalbini merged 5 commits intomainfrom
ea-two-spurious

Conversation

@emilyalbini
Copy link
Copy Markdown
Member

While testing larger Helios test runners I encountered two flaky tests.

One was already tracked in #9316, and both seem to be related to inventory collection not being ready yet by the time the test executes. This PR adds retries to both tests to ensure the inventory is available before proceeding.

@emilyalbini emilyalbini requested a review from davepacheco March 9, 2026 12:15
@emilyalbini emilyalbini linked an issue Mar 9, 2026 that may be closed by this pull request
@emilyalbini emilyalbini force-pushed the ea-two-spurious branch 2 times, most recently from c737cad to d8058fb Compare March 9, 2026 14:37
@emilyalbini emilyalbini marked this pull request as draft March 9, 2026 17:17
@emilyalbini
Copy link
Copy Markdown
Member Author

Found more similar spurious failures, will fix them too.

@emilyalbini emilyalbini changed the title Fix two flaky tests related to inventory collection Fix four flaky tests related to inventory collection Mar 9, 2026
@emilyalbini
Copy link
Copy Markdown
Member Author

Found two more related spurious failures in another job I ran, added the fix for them in this PR too.

While I was at it, I audited the calls to inventory_get_latest_collection and /v1/system/update/status in nexus/tests, and with this PR they are all either inside of a wait_for_condition or far enough into a test that they should hopefully not fail?1

Footnotes

  1. I will see those tests fail next won't I?

@emilyalbini emilyalbini marked this pull request as ready for review March 9, 2026 17:41
Copy link
Copy Markdown
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.

Thanks! I'd just strike the comment that references an issue that you're fixing here.

Co-authored-by: David Pacheco <dap@oxidecomputer.com>
@emilyalbini emilyalbini enabled auto-merge (squash) March 10, 2026 16:07
@emilyalbini emilyalbini merged commit ab351dd into main Mar 10, 2026
16 checks passed
@emilyalbini emilyalbini deleted the ea-two-spurious branch March 10, 2026 17:54
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.

test failure: test_update_uninitialized

2 participants