Skip to content

fix(ci): restore cron provider preparation coverage - #173741

Merged
vincentkoc merged 1 commit into
mainfrom
fix/test-cron-provider-fixture-oct16
Oct 16, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/test-cron-provider-fixture-oct16

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes the cron provider-preparation E2E fixture failing admission before it can exercise the selected provider and fallback.

User Impact

Internal CI repair only. The existing three E2E cases again prove provider preparation, fallback hooks, and recurring-job survival; production authentication behavior is unchanged.

Why This Change Was Made

The cron fixture now explicitly selects API-key authentication for both providers and supplies their synthetic test keys. A key alone still leaves the fixture's runtime auth hook selected, which cron admission rejects. The subagent case retains runtime synthetic authentication, and every existing assertion remains intact.

Simplification: five fixture lines added, no production changes or new test cases.

Evidence

  • Reproduced the cron admission rejection with the fixture's runtime-auth selection; the subagent and recurring-job cases passed in the same run. Explicit API-key selection then passed all three cases.
  • Complete test/plugin-cron-registry-owner.e2e.test.ts replay through the real Gateway on a 16-class Blacksmith Testbox: 3/3 passed, 33.8 seconds of tests, 61.4 seconds in Vitest, 72.3 seconds for the warm command; peak RSS 3.3 GiB. This existing E2E file covers actual Gateway/provider lifecycle behavior that an isolated unit test cannot establish.
  • Formatting, targeted type-aware lint, and all four root-test TypeScript shards passed.
  • Independent review: no actionable findings. git diff --check passed.
  • Testbox workflow; payload exit status owns the proof, since stopping the external lease can cancel the workflow. Ordinary PR CI remains the broad exact-head gate.

@vincentkoc vincentkoc self-assigned this Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 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 October 16, 2026 03:34
@vincentkoc
vincentkoc enabled auto-merge (squash) October 16, 2026 03:41
@vincentkoc
vincentkoc merged commit 07e427e into main Oct 16, 2026
126 checks passed
@vincentkoc
vincentkoc deleted the fix/test-cron-provider-fixture-oct16 branch October 16, 2026 03:45
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
RomneyDa added a commit that referenced this pull request Oct 30, 2026
* fix(test): match database ownership CLI error envelope (#184188)

* fix(test): match database ownership CLI error envelope

* fix(test): match database ownership CLI error envelope

OpenClaw-Publication: 3625b1b7-5214-499c-a744-614ce8df2038
(cherry picked from commit 592df0b)
Co-authored-by: RomneyDa <[email protected]>

* fix(gateway): restore hook and cron capacity validation (#177400)

* test(gateway): align hook capacity proof with bounded priority

Observe inner-lane queueing instead of sleeping, retain exact provider and terminal completion proof, and cover the normal/background aging boundary with the existing controlled-clock group fixture.

Co-authored-by: vincentkoc <[email protected]>

* fix(gateway): restore hook and cron capacity validation

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: d64434ff-49f6-4ce0-824b-a4ee23a27421

---------

Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit 0cd30da)
Co-authored-by: RomneyDa <[email protected]>

* fix(gateway): shutdown validation kills a pending session-end hook (#177243)

* test(gateway): use native SIGTERM for session-end shutdown proof

Select the existing graceful test-process signal path and shared custody safety net so the real session_end hook can drain. Keep cleanup and test deadlines, hook delay, and exit/trace assertions unchanged.

The original Node E2E reproduces SIGKILL with only the started trace; the fixed entrypoint exits cleanly and records completed. The 89 helper tests pass. The unchanged restart-handoff sibling timed out at 180 seconds and remains an unresolved proof gap.

Co-authored-by: vincentkoc <[email protected]>

* fix(gateway): shutdown validation kills a pending session-end hook

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 1274106f-0856-4536-989c-d943300695b3

---------

Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit de89889)
Co-authored-by: RomneyDa <[email protected]>

* fix(ci): restore cron provider preparation coverage (#173741)

(cherry picked from commit 07e427e)
Co-authored-by: RomneyDa <[email protected]>

* test(qa): use a stored account in memory provenance proof

The account-binding contract introduced in d25a316 (#172590)
rejects isolated cron jobs backed only by a provider-config API key.
The memory provenance fixture still selected mock-openai, while the QA
harness stages stored accounts for openai and anthropic.

Select the openai alias backed by the existing synthetic QA account.
Keep the same mock endpoint, restricted client, restart, cron execution,
and all provenance assertions unchanged. No production behavior changes.

Verified the unchanged test passes on c645438 and fails at cron.add
on d25a316; git bisect identifies d25a316 as the first bad commit.
The repaired case passed three consecutive Node runs; the final run also
passed the explicit-owner sibling (2/2 in the file). Root-test typecheck,
scoped oxlint, oxfmt, and git diff --check passed.

(cherry picked from commit 7f8d68d)
Co-authored-by: RomneyDa <[email protected]>

* fix(test): stop report fixtures clearing shared Vitest caches (#188130)

* fix(test): keep the native clear-cache fixture off the shared Vitest cache

* fix(test): isolate report fixture caches across project roots

---------

Co-authored-by: Vincent Koc <[email protected]>
(cherry picked from commit 60fb2e5)
Co-authored-by: RomneyDa <[email protected]>

* test(gateway): await placement admission before fixture clients

Focused backport of 47bd0f3 for the exact FRV placement-scope failure.

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: Jason (Json) <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RoboClaw <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Ayaan Gazali <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant