Skip to content

test(archera): extend federation handler matrix to CLI/ARM (closes #316)#890

Open
cristim wants to merge 1 commit into
mainfrom
fix/316-wave22
Open

test(archera): extend federation handler matrix to CLI/ARM (closes #316)#890
cristim wants to merge 1 commit into
mainfrom
fix/316-wave22

Conversation

@cristim

@cristim cristim commented May 30, 2026

Copy link
Copy Markdown
Member

Summary

  • Add TestGetFederationIaC_CLIMatrix: table-driven test over all 8 CLI target/source combos asserting content-type, no ContentEncoding (single-file shape), bash shebang, canonical purchase+read actions for AWS-target, Archera default-off, and PII guard (email not leaked outside CONTACT_EMAIL assignment)
  • Add TestGetFederationIaC_ARMMatrix: ARM render coverage for source=aws and source=gcp, asserting ARM JSON schema validity, parameters/resources/outputs structure, Reservation Purchaser role definition ID, no Archera references in any artifact
  • Add TestGetFederationIaC_SingleFileRenderShape: invariant that CLI renders produce plain text with no base64/ContentEncoding
  • Add TestGetFederationIaC_CLIArcheraDefaultOff: dedicated regression guard for all 5 CLI formats

Test plan

  • go test ./internal/api/... -run TestGetFederationIaC_CLIMatrix - 8 sub-cases pass
  • go test ./internal/api/... -run TestGetFederationIaC_ARMMatrix - 2 sub-cases pass
  • go test ./internal/api/... -run TestGetFederationIaC_SingleFileRenderShape - passes
  • go test ./internal/api/... -run TestGetFederationIaC_CLIArcheraDefaultOff - 5 sub-cases pass
  • go test ./internal/api/... - all 1374 tests pass (no regressions)

@cristim cristim added triaged Item has been triaged priority/p3 Polish / idea / may never ship urgency/eventually No deadline impact/internal Team-internal only effort/m Days type/chore Maintenance / non-user-visible labels May 30, 2026
@coderabbitai

coderabbitai Bot commented May 30, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 8 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

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 reviews.

How do review 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 refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3fe53daf-2543-4886-a192-0703907bc32c

📥 Commits

Reviewing files that changed from the base of the PR and between 1d9f1b8 and 438364c.

📒 Files selected for processing (1)
  • internal/api/handler_federation_test.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/316-wave22

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

@cristim

cristim commented May 30, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented May 30, 2026

Copy link
Copy Markdown
Contributor
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@cristim

cristim commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@cristim

cristim commented Jun 5, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

cristim commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai full review


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

@cristim Sure, I'll kick off a full re-review of the PR now!


🧠 Learnings used
Learnt from: cristim
Repo: LeanerCloud/CUDly PR: 0
File: :0-0
Timestamp: 2026-05-05T15:44:54.463Z
Learning: In the LeanerCloud/CUDly repository, when a CodeRabbit review flags something as "outside-diff" that was already implemented in an earlier commit of the same PR, it is likely a stale-snapshot artifact where the review diff was generated against a pre-fix view. The inline comment convention `(CR pass on PR #<number> Finding N)` is used by the maintainer (cristim) to mark lines that were changed in direct response to a prior CodeRabbit review pass.
✅ Action performed

Full review finished.

@cristim

cristim commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

@cristim
cristim changed the base branch from feat/multicloud-web-frontend to main June 9, 2026 15:52
@cristim cristim added the severity/low Minor harm label Jun 19, 2026
@cristim

cristim commented Jun 19, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Add table-driven test matrix for all CLI target/source combinations,
ARM renders across source-cloud variants, single-file render shape
invariants, and a dedicated Archera default-off regression guard.

New tests:
- TestGetFederationIaC_CLIMatrix: 8 target/source cases verifying
  content-type (text/x-shellscript), no ContentEncoding, bash shebang,
  canonical purchase+read actions for AWS-target, and no PII outside
  CONTACT_EMAIL assignment.
- TestGetFederationIaC_ARMMatrix: 2 source variants verifying ARM JSON
  schema, parameters/resources/outputs structure, Reservation Purchaser
  role definition ID, no Archera references.
- TestGetFederationIaC_SingleFileRenderShape: invariant that CLI renders
  are plain text with no base64 encoding.
- TestGetFederationIaC_CLIArcheraDefaultOff: dedicated regression guard
  asserting Archera is absent from all 5 CLI formats by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/m Days impact/internal Team-internal only priority/p3 Polish / idea / may never ship severity/low Minor harm triaged Item has been triaged type/chore Maintenance / non-user-visible urgency/eventually No deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant