Repository navigation
test(agents): keep one runtime config owner per embedded-runner fixture - #170630
Merged
Merged
Conversation
#170447 and #170433 both repaired the same #169714 fallout in three embedded-agent fixtures, and both landed. Keep #170447's run-level owner, which follows each run's authored config, and drop #170433's redundant beforeEach publishes. The lane-controller fixtures keep their controller-factory publish and single afterEach clear. The settled-turn fixture keeps config: {} in its run params. Without both that and the publish it fails with assistantTranscriptOwned undefined; with config alone it passes and no snapshot is published, so its clear and import are dropped as dead. Assertions, timeouts and cases are unchanged; all three files now match #170447's post-images.
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. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 14, 2026
…re (openclaw#170630) openclaw#170447 and openclaw#170433 both repaired the same openclaw#169714 fallout in three embedded-agent fixtures, and both landed. Keep openclaw#170447's run-level owner, which follows each run's authored config, and drop openclaw#170433's redundant beforeEach publishes. The lane-controller fixtures keep their controller-factory publish and single afterEach clear. The settled-turn fixture keeps config: {} in its run params. Without both that and the publish it fails with assistantTranscriptOwned undefined; with config alone it passes and no snapshot is published, so its clear and import are dropped as dead. Assertions, timeouts and cases are unchanged; all three files now match openclaw#170447's post-images.
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.
Related: #170447, #170433, #169714
What Problem This Solves
Three embedded-agent test fixtures publish the runtime config snapshot twice because #170447 and #170433 repaired the same #169714 fallout independently and both landed.
User Impact
No user-visible change. Each fixture has one clear config owner again, so a later edit to either publish is not silently masked by the other.
Why This Change Was Made
#170447's run-level setup is kept as the single owner because it follows each run's authored config. The redundant
beforeEachpublishes from #170433 are removed:lane-controller.attempt-controls.test.ts:createRunControllerkeepssetRuntimeConfigSnapshot(params.config ?? {}). The file-levelbeforeEachpublish is removed and the singleclearRuntimeConfigSnapshot()inafterEachstays.lane-controller.test.ts:createLaneControllerkeepssetRuntimeConfigSnapshot(runParams.config ?? {}). The describe-levelbeforeEachpublish is removed and theafterEachclear stays.settled-turn-finalization.unavailable.test.ts:config: {}in the run params stays. ThebeforeEachpublish is removed. Nothing publishes a snapshot in this file any more, so itsclearRuntimeConfigSnapshot()and the import were dead and are removed too.All three files are now byte-identical to #170447's post-images. Assertions, timeouts and cases are unchanged. Three test files, no production change.
Evidence
Local,
pnpm test <file> --maxWorkers=1on the final content:lane-controller.attempt-controls.test.tslane-controller.test.tssettled-turn-finalization.unavailable.test.tsDurations are mostly cold transform on a busy shared host (transform 75–85 %). The test bodies themselves are a few seconds each. Before #169714 was repaired, these cases timed out after about 120 s each without a published snapshot, so passing here means the run-level owner is doing the work.
For settled-turn, the task was to prove whether
config: {}alone is enough:config: {}and the snapshot publish, the case fails withexpected undefined to be trueonresult.attempt.assistantTranscriptOwned. This is the original test(agents): prepare config in lane and finalization fixtures #170447 symptom.config: {}alone: with no snapshot publish, the case passes.getRuntimeConfigSnapshot()isnullat teardown, so the removed clear had nothing to clear.Scoped
oxfmt --check, plainoxlintandgit diff --checkpass on all three files. The repo's type-aware lint wrapper didn't run locally: its plugin-sdk boundary.d.tspreparation timed out at 300 s on a heavily loaded shared host. That is a tooling timeout, not a lint finding, and PR CI runs the type-aware lane. Independent Codex autoreview (P0–P2) is scoped-clean with no findings.