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-util] Embiggen SP-sim discovery timeout #6879

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

hawkw
Copy link
Member

@hawkw hawkw commented Oct 15, 2024

Presently, the gateway_test_utils::setup::test_setup_with_config function will give MGS up to one second to discover the simulated SPs while setting up to perform a MGS test. This is probably not long enough, as we've seen tests fail spuriously here (c.f. #6877).

This commit changes the one-second timeout to a 30-second timeout. Thirty seconds seems overly generous here, but it's probably good to be overly generous, since in most cases, it will finish in substantially less than that, and being generous reduces the risk of spurious test failures.

We would hope this fixes the flakiness issue I cited above. Unfortunately, the problem of induction exists, making it technically impossible to definitively prove that a test, once shown to be flaky, is unflaky. So, if we choose to adhere strictly to falsifiability, a prevailing notion in the philosophy of science, no "flaky test" issue should never be closed once it has been opened. :)

Presently, the `gateway_test_utils::setup::test_setup_with_config`
function will give MGS up to one second to discover the simulated SPs
while setting up to perform a MGS test. This is probably not long
enough, as we've seen tests fail spuriously here (c.f. #6877).

This commit changes the one-second timeout to a 30-second timeout.
Thirty seconds seems overly generous here, but it's probably good to be
overly generous, since in most cases, it will finish in substantially
less than that, and being generous reduces the risk of spurious test
failures.

We would hope this fixes the flakiness issue I cited above.
Unfortunately, the [problem of induction][1] exists, making it
technically impossible to definitively prove that a test, once shown to
be flaky, is unflaky. So, if we choose to adhere strictly to
[falsifiability][2], a prevailing notion in the philosophy of science,
no "flaky test" issue should never be closed once it has been opened. :)

[1]: https://en.wikipedia.org/wiki/Problem_of_induction
[2]: https://en.wikipedia.org/wiki/Falsifiability#Basic_statements_and_the_definition_of_falsifiability
Copy link
Contributor

@jgallagher jgallagher left a comment

Choose a reason for hiding this comment

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

Timeouts, timeouts...

Thanks for adding an explanation and reference!

@hawkw hawkw enabled auto-merge (squash) October 15, 2024 22:02
@jgallagher
Copy link
Contributor

Looks like this test flake fix failed to merge because it hit test flake #6771 🫠

2024-10-15T23:53:37.045Z	+ /usr/oxide/oxide --resolve recovery.sys.oxide.test:443:10.151.2.166 --cacert /opt/oxide/sled-agent/pkg/initial-tls-cert.pem disk import --path debian-11-genericcloud-amd64.raw --disk debian11-boot --project images --description 'debian 11 cloud image from distros' --snapshot debian11-snapshot --image debian11 --image-description 'debian 11 original base image' --image-os debian --image-version 11
2024-10-15T23:54:44.641Z	sending chunk to thread failed with SendError { .. }
2024-10-15T23:54:45.588Z	channel closed

https://github.com/oxidecomputer/omicron/pull/6879/checks?check_run_id=31580743316

Rerunning it...

@hawkw hawkw merged commit e577765 into main Oct 17, 2024
16 checks passed
@hawkw hawkw deleted the eliza/embiggen-test-util-timeout branch October 17, 2024 18:37
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