Repository navigation
Consolidate ssh CIT suite from 4 VMs to 2 VMs. - #688
Open
copybara-service[bot] wants to merge 1 commit into
Open
copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
The `ssh` suite previously booted 4 VMs per image, including a placeholder `server` VM running a 60s sleep and a separate VM just to check host keys across a guest-agent restart. It also left `RunTests` filters unanchored and used nine hardcoded 60s sleeps where `TestDeleteLocalUser` raced with `TestSwitchDefaultConfig` across separate VMs. Run the suite on at most 2 VMs gated by `ShouldRunTests` with anchored filters, and replace fixed sleeps with polling for SSH readiness, host keys, and guest-agent account updates. Keep `client` free of guest-agent restarts so first-boot systemd `ActiveEnterTimestamp` ordering between the guest agent and `sshd` stays intact while verifying remote SSH and host-key uniqueness against `server`. Run agent-restart host-key checks, key rotation, and sequential Linux user deprovisioning on `server`, restoring `instance_configs.cfg` via `t.Cleanup` before verifying default deprovisioning. PiperOrigin-RevId: 1028646830
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Consolidate ssh CIT suite from 4 VMs to 2 VMs.
The
sshsuite previously booted 4 VMs per image, including a placeholderserverVM running a 60s sleep and a separate VM just to check host keys across a guest-agent restart. It also leftRunTestsfilters unanchored and used nine hardcoded 60s sleeps whereTestDeleteLocalUserraced withTestSwitchDefaultConfigacross separate VMs.Run the suite on at most 2 VMs gated by
ShouldRunTestswith anchored filters, and replace fixed sleeps with polling for SSH readiness, host keys, and guest-agent account updates. Keepclientfree of guest-agent restarts so first-boot systemdActiveEnterTimestampordering between the guest agent andsshdstays intact while verifying remote SSH and host-key uniqueness againstserver. Run agent-restart host-key checks, key rotation, and sequential Linux user deprovisioning onserver, restoringinstance_configs.cfgviat.Cleanupbefore verifying default deprovisioning.