Skip to content

test(bundle): fold the sweep memo case into sweepArms, drop the root OWNERS approver case - #491

Merged
jeefy merged 1 commit into
cncf:mainfrom
jeefy:test/fold-sweep-memos
Oct 16, 2026
Merged

jeefy merged 1 commit into
cncf:mainfrom
jeefy:test/fold-sweep-memos

Conversation

@jeefy

@jeefy jeefy commented Oct 16, 2026

Copy link
Copy Markdown
Member

Follow-up to #490.

  • sweepSharedMemos.test.ts → sweepArms.test.ts. After test(bundle): drop three bundle cases that add no coverage or guard #490 the file held one case plus copies of sweepArms' forkPr/runSweep and of routeOwners' tip/tree/blob routes. The case now lives in a shared memos across pull requests block built from sweepArms' forkPr/routeList/runSweep and routeOwners; PR 2 adds only its own pulls/2 and pulls/2/files. All assertions are unchanged, and run alone it still reaches the tokenIdentity and baseBranchTip memo-hit arms (it is the only case that does).
  • authorizationPolicyArms: drop the root OWNERS approver case. Since feat(owners): support GitHub groups in OWNERS #486 it reaches the same ownersInclude arm as the reviewer case above it. Making rootOwnersIncludes read reviewers only fails __tests__/utils/auth.test.ts "policyAllows a root OWNERS approver", so the guard is kept by the unit suite.

E2E coverage before and after: identical line and branch-arm sets (2423 lines, 1627 arms). Lint, test:coverage and test:coverage:e2e pass.

/kind cleanup

…OWNERS approver case

- sweepSharedMemos.test.ts held one case and copies of sweepArms'
  forkPr/runSweep and of helpers.ts routeOwners. Move the case into
  sweepArms.test.ts, built from that file's forkPr/routeList/runSweep and
  routeOwners; every assertion is kept and it still alone reaches the
  tokenIdentity and baseBranchTip memo-hit arms.
- authorizationPolicyArms: since cncf#486 the approver case reaches the same
  ownersInclude arm as the reviewer case above it, and the regression it
  guards (rootOwnersIncludes reading reviewers only) fails
  auth.test.ts 'policyAllows a root OWNERS approver'.

E2E line and branch-arm sets are unchanged.

Signed-off-by: Jeffrey Sica <me@jeefy.dev>
@jeefy
jeefy requested a review from jpmcb as a code owner October 16, 2026 02:50
@jeefy
jeefy merged commit 2f26b04 into cncf:main Oct 16, 2026
6 checks passed
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