Repository navigation
test(agents): prepare runtime config in model fallback fixtures - #170741
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Oct 13, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 14, 2026
## What Problem This Solves Model-fallback fixtures did not follow two updated runtime contracts. After openclaw#169714 made `getRuntimeConfig` a prepared-snapshot reader, all 32 cases in [the original failing CI job](https://github.com/openclaw/openclaw/actions/runs/38353294225/job/115150698389) failed at session admission. Publish each fixture's actual configuration before admission, including the two direct embedded-runner cases, and clear it in the workspace helper's existing `finally` cleanup. The sibling overflow-recovery fixture also seeded a credential store even though it skips auth-profile runtime and already has synthetic provider keys. Since openclaw#170632 requires credential writes from admitted workers, that unused write fails in the threaded test lane before all three cases reach their assertions. Remove only the obsolete import and setup write. Every fallback, compaction, profile-health, suspension, replay-safety, result, and execution-receipt assertion remains intact. Production code and credential security checks are unchanged. ## Evidence - The original 32 cases pass in [PR CI](https://github.com/openclaw/openclaw/actions/runs/38358233170/job/115166408820): 48.51 seconds Vitest / 50.04 seconds wrapper. That run exposed the three overflow-recovery fixture failures described above. - [Exact-file overflow baseline](https://github.com/openclaw/openclaw/actions/runs/38359573397/job/115170321081) on main `b47aa9f98f13dedf545cd84747a19c9b3096e13c` reproduces all three credential-custody failures (56.82 seconds Vitest / 60.52 seconds wrapper), with unchanged sources verified. The current head also passes all three overflow cases in [PR CI 38360757838](https://github.com/openclaw/openclaw/actions/runs/38360757838/job/115174590776): 42.20 seconds Vitest / 43.77 seconds wrapper. The original 32 cases also pass on this head (59.65 seconds / 61.78 seconds). - Changed-file oxfmt, repository-config oxlint, and `git diff --check` pass. The initial repair and overflow-only repair each received a Codex review scoped-clean through P2. The overflow review required one retry after the first attempt exited without a report. - No local test suites, builds, or SQL harness ran. This fixture-only repair makes no warmed SQL/request or T1 claim; production LOC is zero. Scope: three test files, +9/-3 lines. Source culprits were verified from parent-relative patches: `5dbf2157dc8325fff25f79abddd7a2d2bc11e798` (openclaw#169714) changed the runtime-config reader, and `c3b5d0c7bc15f2f497247c3127cfa844d34c6e74` (openclaw#170632) added the credential-write worker guard. The overflow main-branch behavioral baseline confirms the source attribution; the independent 32-case baseline did not complete and is inconclusive; it was cancelled to conserve compute. No baseline pass or failure is claimed for that attempt. Current-head ratchets: T1 454 → 454, compatibility calls 9 → 9, dialect groups 0 → 0. The required dependency review and aggregate CI gate passed on this head; the earlier transient status was not a dependency finding.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Model-fallback fixtures did not follow two updated runtime contracts. After #169714 made
getRuntimeConfiga prepared-snapshot reader, all 32 cases in the original failing CI job failed at session admission. Publish each fixture's actual configuration before admission, including the two direct embedded-runner cases, and clear it in the workspace helper's existingfinallycleanup.The sibling overflow-recovery fixture also seeded a credential store even though it skips auth-profile runtime and already has synthetic provider keys. Since #170632 requires credential writes from admitted workers, that unused write fails in the threaded test lane before all three cases reach their assertions. Remove only the obsolete import and setup write. Every fallback, compaction, profile-health, suspension, replay-safety, result, and execution-receipt assertion remains intact. Production code and credential security checks are unchanged.
Evidence
605065ce7461177e9b438c8d8917641a8e8380e0reproduces all three credential-custody failures (56.82 seconds Vitest / 60.52 seconds wrapper), with unchanged sources verified. The current head also passes all three overflow cases in PR CI 38360757838: 42.20 seconds Vitest / 43.77 seconds wrapper. The original 32 cases also pass on this head (59.65 seconds / 61.78 seconds).git diff --checkpass. The initial repair and overflow-only repair each received a Codex review scoped-clean through P2. The overflow review required one retry after the first attempt exited without a report.Scope: three test files, +9/-3 lines. Source culprits were verified from parent-relative patches:
7e48efba10479f90496438e3edf3e0d0121e34c7(#169714) changed the runtime-config reader, and50414196f1912053abee1ddcab595fca3c7e7889(#170632) added the credential-write worker guard. The overflow main-branch behavioral baseline confirms the source attribution; the independent 32-case baseline did not complete and is inconclusive; it was cancelled to conserve compute. No baseline pass or failure is claimed for that attempt.Current-head ratchets: T1 454 → 454, compatibility calls 9 → 9, dialect groups 0 → 0. The required dependency review and aggregate CI gate passed on this head; the earlier transient status was not a dependency finding.