Skip to content

fix(ci): restore cron cleanup regression coverage - #201717

Merged
vincentkoc merged 1 commit into
mainfrom
fix/cron-cleanup-admission-test-20261119
Nov 19, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/cron-cleanup-admission-test-20261119

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The delayed cron-history cleanup test expects a role change to interrupt deletion after the operation has already been admitted and the job removed. Both Node and Bun now correctly finish the cleanup, so the stale expectation fails CI.

User Impact

No runtime behavior changes. The regression test preserves the current admission policy and checks that a downgraded operator cannot remove another job through a new request.

Why This Change Was Made

The policy from #201334 fixes authority for admitted requests. Both existing test rows now require successful deletion, all three archived generations, empty live transcripts, and no handler errors. The revoked-role row then tries to remove a distinct existing job and requires the role-change FORBIDDEN response and an unchanged job snapshot. The independent snapshot prevents in-place mutation from making the comparison pass.

Production +0/-0; tests +30/-16. The existing physical-worker/archive fixture and cleanup remain in use. This is a separate missed consumer from #201713.

Related: #199959

Evidence

  • Full pin validation reproduces the same stale expectation under Node and Bun: it expects an authority error and unarchived history, but receives successful deletion and all generations archived.
  • Independent source review: passed after fixing the expected-job alias.
  • Local ClawSweeper reviewed 38a5039f3a9a5af0ec6a0448cac52874b98927f0..e7d5bd65b3509a6636692a98a50e1b92acc40ddc: complete, no code or security findings; it identified the then-missing execution proof; the affected Bun cases have since passed in CI.
  • Native commit hooks (format and line cap) and git diff --check: passed.
  • Exact-head affected CI: both current- and revoked-role cleanup cases pass under Bun (2/2), including archival and fresh-request refusal. Related test jobs also pass. Lint and remaining required checks are still running.
  • Local dependency qualification rejects a broken workspace link; the earlier remote attempt returned no test verdict and was released. No local or repaired-head Node pass is claimed; the next dual-runtime pin qualification remains separate.

@vincentkoc vincentkoc self-assigned this Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc
vincentkoc marked this pull request as ready for review November 19, 2026 08:15
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Nov 19, 2026
@vincentkoc
vincentkoc enabled auto-merge (squash) November 19, 2026 08:24
@vincentkoc
vincentkoc merged commit 89e63e0 into main Nov 19, 2026
184 of 186 checks passed
@vincentkoc
vincentkoc deleted the fix/cron-cleanup-admission-test-20261119 branch November 19, 2026 08:25
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

RomneyDa added a commit that referenced this pull request Nov 20, 2026
Bounded beta2 FRV repair; preserve the existing runtime contract and original failure assertions. Combined qualification follows integration.

Selected source hunks only; unrelated source changes excluded.

(cherry picked from commit 89e63e0)

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant