Skip to content

fix(e2e): update deploy-agent test for current snapshot CLI#198

Merged
mchmarny merged 1 commit intomainfrom
fix/e2e-deploy-agent-test
Feb 24, 2026
Merged

fix(e2e): update deploy-agent test for current snapshot CLI#198
mchmarny merged 1 commit intomainfrom
fix/e2e-deploy-agent-test

Conversation

@mchmarny
Copy link
Member

Summary

  • Update E2E test test_deploy_agent_cli to match current snapshot CLI which always deploys an agent Job (no --deploy-agent toggle)
  • Test now verifies agent-related flags (--namespace, --image, --node-selector, --toleration, --timeout, --cleanup) exist in help output

Root cause

The --deploy-agent flag was removed in a prior snapshot CLI refactoring. The E2E test still checked for it in snapshot --help output, causing cli/deploy-agent/help: --deploy-agent not in help output failure.

Note on second E2E failure

The snapshot/deploy-agent: Job did not complete failure is environmental — the fake nvidia-smi Job in the Kind cluster fails independently. That's an infrastructure issue, not a code bug.

Test plan

  • bash -n tests/e2e/run.sh — syntax valid
  • Verified aicr snapshot --help output matches new test assertions

The snapshot command always deploys an agent Job — the --deploy-agent
flag was removed in a prior refactoring. Update E2E test to verify
agent-related flags (--namespace, --image, --node-selector, etc.)
instead of checking for the removed --deploy-agent flag.
@mchmarny mchmarny requested a review from a team as a code owner February 24, 2026 01:49
@mchmarny mchmarny enabled auto-merge (squash) February 24, 2026 01:51
@mchmarny mchmarny self-assigned this Feb 24, 2026
@mchmarny mchmarny added the bug Something isn't working label Feb 24, 2026
Copy link
Contributor

@yuanchen8911 yuanchen8911 left a comment

Choose a reason for hiding this comment

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

/lgtm

@mchmarny mchmarny merged commit fa0446c into main Feb 24, 2026
14 of 15 checks passed
@mchmarny mchmarny deleted the fix/e2e-deploy-agent-test branch February 24, 2026 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tests bug Something isn't working size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants