Repository navigation
test(missions): upload the redacted schedule state with product failures - #1401
Conversation
The native schedule product qualification recently timed out intermittently in natural-cold-first-admission on the minimum runtime (PRs #1399 and #1400 on the same dev commit, while another variant passed in 1.4 s with the same bundle). The uploaded diagnostic records the stage and error but not the persisted schedule state, so a missed native wake, a carrier/transport failure and incomplete admission bookkeeping cannot be told apart. The fixture already captures failure-sql.json on failure. Apply the existing redactor to its strings, bound it to 512 KiB, and add it to the uploaded failure artifact. Assertions, deadlines, retries and product behaviour are unchanged. Forced failure-path copies with real SQLite produced redacted missed-wake, carrier and bookkeeping snapshots and a valid bound marker for oversized output; workflow/policy tests pass.
Keep the new WebKit workflow jobs and add the redacted SQL snapshot to the existing failure-artifact list. The fixture change is unchanged. Validate against the current workflow without force-pushing.
…napshot The first uploaded SQL snapshot narrowed the cold-admission failure to before durable wake preparation, but omitted the native outcome, retry time and carrier evidence. run_count=0 alone cannot distinguish a missed attempt from a failed native prompt with backoff. Add failure-only outcome fields, session-scoped point reads of the deterministic carrier message/inbox, and a bounded tail of existing maintenance events. Keep ordinary snapshot queries and timing unchanged, omit raw message text, and retain the existing redactor and 512 KiB bound. The assertion, wait and retry expressions are text-identical. All 26 SQLite replay cases pass for the consumed 2.2.3 and 2.2.6 schemas, independently reproduced. Merge current dev without force-pushing.
Bring in the merged baseline repairs and compact-form fixture synchronization from #1407, preserving this proposal through a clean three-way integration. No force push or test bypass; full CI is required on the updated head.
The executable-change fencing fixture counted every API request, allowing independent authentication or event reads to inflate the expected two status reads and overwrite the held response callback. Match the exact GET status endpoint before holding or counting it, following the neighboring coalescing test. Exercise an independent authentication request while retaining both stale-display assertions and the exact two-read assertion. Adding that request fails on the old handler and passes with the scoped handler; all 34 setup browser checks pass. The CI log does not identify the third request, so its exact identity remains unproven. No production logic or deadlines change.
|
Browser failure triage: the executable-change fencing test counted every API request, unlike its neighboring status-coalescing test. An explicit independent auth/status request reproduces a false request-count failure on the old handler. The handler now holds/counts only GET /api/opencode/update, and the auth request is retained as regression coverage. Both stale-display assertions and the exact two-read assertion remain; all 34 setup browser tests pass locally with the exact head dependency graph. The CI log does not identify its third request, so that exact attribution remains unproven. New head requires the full CI; no product code, assertion or deadline was relaxed. |
Preserve the proposal through a clean three-way integration with the current dev tree, including its shared download-cache wiring and background-shell correction. Keep unrelated files exactly as dev supplies them. No force push or test bypass; full CI is required on the updated head.
The removal consent test installed an advancing clock and then paused it at the installation instant. Scheduling between those calls can put the requested pause in the past. Use the public pauseAt operation directly at all three consent-clock sites; it installs the clock itself. A 20 ms scheduling-gap control reproduces the original failure and passes after removing the redundant install. No artificial gap is shipped, and all 499/600 ms consent, duplicate-dispatch and no-detach assertions remain unchanged. The complete validation also reproduces an independent Cancel-focus assertion failure on the unmodified base. Kobalte schedules initial focus on a zero-delay task, so wait for that exact button to become active before retaining the original focus assertion. All 86 attachment-action and installation checks pass with the exact head dependency graph. No production code or deadline changes.
|
The new shard failure is a deterministic clock setup race: install({time}) starts time advancing before pauseAt(time). A 20 ms scheduling-gap control reproduces the exact Cannot fast-forward to the past failure. Calling the public pauseAt API directly at all three consent-clock sites passes the same control; no artificial delay is shipped. Complete validation also reproduced the independent Cancel-focus failure on the unmodified base: Kobalte schedules initial focus via setTimeout(0), so the test now awaits that exact focus before retaining its assertion. All 86 attachment-action/installation tests pass with the exact head dependency graph. The 499/600 ms thresholds, no-detach checks and duplicate-dispatch assertions are unchanged. Full CI is required on the new head. |
natural-cold-first-admissionintest-native-mission-schedule-product.mjstimed out intermittently on the minimum runtime (#1399, #1400 on the same dev commit; the other variant passed in 1.4 s with the same bundle). The uploaded diagnostic lacks the persisted schedule state needed to tell a missed wake from a carrier failure or incomplete admission bookkeeping.failure-sql.jsoncapture, redact its strings with the existing redactor, cap it at 512 KiB.schedule-product-failure-*artifact upload.Verified on forced failure-path copies with real SQLite (redacted snapshots, bound marker); workflow/policy tests pass.