Skip to content

fix: integration test checks legacy State field instead of InfraState - #6

Merged
rhuss merged 1 commit into
mainfrom
fix/integration-test-infra-state
Jun 28, 2026
Merged

rhuss merged 1 commit into
mainfrom
fix/integration-test-infra-state

Conversation

@rhuss

@rhuss rhuss commented Jun 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Integration test TestK8sDeployLifecycle was asserting on inst.State (legacy field, always empty since v2→v3 migration) instead of inst.InfraState which is what Create/Stop/Start actually set
  • Stub zellij in Containerfile.stub always ran sleep infinity regardless of arguments, causing KillSession → k8sHasZellijSession → kubectl exec ... zellij list-sessions to hang until the 5-minute test timeout

Test plan

  • CI "Integration Tests" workflow passes on this PR
  • CI "CI" workflow continues to pass

🤖 Generated with Claude Code


Open in Devin Review

The integration test was checking inst.State (a legacy field cleared
during v2→v3 migration) but Create/Stop/Start all set InfraState.
Also fix the stub zellij to handle list-sessions/delete-session
subcommands instead of always sleeping, which caused KillSession to
hang indefinitely.

Assisted-By: 🤖 Claude Code
@coderabbitai

coderabbitai Bot commented Jun 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@rhuss, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 31 minutes and 26 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 031c7ed8-edd9-427e-935b-66e9649bbe90

📥 Commits

Reviewing files that changed from the base of the PR and between 4d44477 and 60e74be.

📒 Files selected for processing (2)
  • cc-deck/internal/integration/k8s_deploy_test.go
  • cc-deck/test/Containerfile.stub
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/integration-test-infra-state

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@rhuss
rhuss merged commit dc14a75 into main Jun 28, 2026
7 checks passed
@rhuss
rhuss deleted the fix/integration-test-infra-state branch June 28, 2026 17:47
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.

1 participant