Skip to content

Consolidate ssh CIT suite from 4 VMs to 2 VMs. - #688

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1028646830
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1028646830

Conversation

@copybara-service

Copy link
Copy Markdown

Consolidate ssh CIT suite from 4 VMs to 2 VMs.

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.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 participant