Skip to content

Expect both mode rules in no-results prefetch test - #1949

Merged
st3penta merged 1 commit into
conforma:mainfrom
st3penta:fix-prefetch-test-after-1871
Oct 29, 2026
Merged

st3penta merged 1 commit into
conforma:mainfrom
st3penta:fix-prefetch-test-after-1871

Conversation

@st3penta

Copy link
Copy Markdown
Contributor

PR #1871 added mode_not_permissive_v2, which fires alongside the legacy mode_not_permissive rule when the mode is "permissive". The no-taskrun-results test from #1945 was written before that landed, so its expected results were missing the v2 entry and the test failed on main after both changes merged.

The expected results now include both rules, matching test_mode_permissive_violation. Full suite passes locally: 1221/1221.

Co-Authored-By: glm-5-3 <noreply@z.ai>

The no-taskrun-results test was written before conforma#1871 added
mode_not_permissive_v2, which also fires for the "permissive"
mode, so its expected results were missing the v2 entry.

Co-Authored-By: glm-5-3 <noreply@z.ai>
@st3penta
st3penta requested a review from a team as a code owner October 28, 2026 16:23
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: d443da46-b612-4ba3-a48b-33f7053b46bf
Commits

Reviewing files that changed from the base of the PR and between cb839dc and 1b90885.

Files selected for processing: 1
  • policy/release/prefetch_dependencies/prefetch_dependencies_test.rego

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

Walkthrough

The SLSA v1 permissive-mode test without TaskRun results now expects both mode_not_permissive and mode_not_permissive_v2. The legacy violation expectation no longer specifies effective_on.

Changes: Prefetch dependency policy test

Layer / File(s) Summary
Update denial expectations
policy/release/prefetch_dependencies/prefetch_dependencies_test.rego
The test expects the legacy and v2 denial results. The legacy result no longer includes an effective_on value.

Priority: Low

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Bug fix

Suggested reviewers: cuipinghuo, dheerajodha

Merge Risk: Minimal · up to 1b908

The test expectations now cover both permissive-mode denial results, with no merge-blocking risk identified.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly describes the main test change: expecting both mode rules in the no-results prefetch test.
Description check Passed The description explains what changed, why the change was needed, and reports test results. It does not include the template headings or a Jira ticket link, but the required context is otherwise compl…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains what changed, why the change was needed, and reports test results. It does not include the template headings or a Jira ticket link, but the required context is otherwise complete.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

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

@fullsend-ai-review fullsend-ai-review Bot added the risk/low PR risk: low label Oct 28, 2026
@fullsend-ai-review

Copy link
Copy Markdown

<!-- fullsend:risk-assessment -->
Risk Assessment: low (1/5)

Details

Single test file fix (16 lines, XS) correcting a missing expected result entry caused by two PRs landing out of order; no protected paths, no security or dependency changes, and the scope precisely matches the described regression.

@fullsend-ai-review

Copy link
Copy Markdown

Looks good to me

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJmaW5kaW5ncyI6W119 -->

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Oct 28, 2026
@st3penta
st3penta merged commit c584f00 into conforma:main Oct 29, 2026
82 checks passed
@st3penta
st3penta deleted the fix-prefetch-test-after-1871 branch October 29, 2026 08:57
@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #1949 — Expect both mode rules in no-results prefetch test

This was a clean, well-handled workflow. PR #1949 was a human-authored XS fix (1 file, +11/−5) correcting test expectations in prefetch_dependencies_test.rego after PRs #1871 and #1945 merged in sequence. The review agent (claude-opus-5-5) dispatched 4 sub-agents, correctly identified the change as a trivial test fix, and approved with zero findings and risk low (1/5) in ~14 minutes. Three human reviewers (joejstuart, cuipinghuo, simonbaird) also approved without comments. Zero rework. PR merged ~16.5 hours after opening.

Judge scores

Score Candidate Disposition
1/5 Redundant label-triggered re-dispatch runs summary-only — working as designed, minimal cost
3/5 Pre-retro early-exit for clean zero-finding reviews summary-only — duplicate of fullsend-ai/agents#1477
2/5 Sub-agent count optimization for XS PRs summary-only — speculative, no recurring evidence

Notes on existing issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge All reviewers approved — ready to merge risk/low PR risk: low size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants