Skip to content

Fix test_sled_instance_list#7367

Merged
jmpesp merged 2 commits intooxidecomputer:mainfrom
jmpesp:fix_the_bug_i_created
Jan 17, 2025
Merged

Fix test_sled_instance_list#7367
jmpesp merged 2 commits intooxidecomputer:mainfrom
jmpesp:fix_the_bug_i_created

Conversation

@jmpesp
Copy link
Contributor

@jmpesp jmpesp commented Jan 16, 2025

test_sled_instance_list was broken by the most recent change to the control plane test context: previously only one of the two sled agents (the first one) was provisionable for instances, and the test would check that one to test the sled instances list endpoint. The most recent change to the test context made all sled agents provisionable but didn't update the test to check all the sleds for the provisioned instance. This resulted in a test flake: if the instance was allocated to the first sled, it would pass. If it was allocated to the second sled, it would time out.

Fixes #7365

`test_sled_instance_list` was broken by the most recent change to the
control plane test context: previously only one of the two sled agents
(the first one) was provisionable for instances, and the test would
check that one to test the sled instances list endpoint. The most recent
change to the test context made all sled agents provisionable but didn't
update the test to check all the sleds for the provisioned instance.
This resulted in a test flake: if the instance was allocated to the
first sled, it would pass. If it was allocated to the second sled, it
would time out.

Fixes oxidecomputer#7365
@andrewjstone
Copy link
Contributor

Thanks for the quick fix @jmpesp

@jmpesp jmpesp enabled auto-merge (squash) January 16, 2025 21:11
@iliana iliana mentioned this pull request Jan 16, 2025
@jmpesp jmpesp merged commit c0246bf into oxidecomputer:main Jan 17, 2025
@jmpesp jmpesp deleted the fix_the_bug_i_created branch January 20, 2025 19:59
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 failed in CI: test_sled_instance_list

2 participants