Repository navigation
test: remove wall-clock waits from usage stats - #883
Merged
Merged
Conversation
V3RON
marked this pull request as ready for review
October 22, 2026 10:13
V3RON
force-pushed
the
fix/865-deterministic-usage-e2e
branch
from
October 22, 2026 10:35
994cedf to
6c120e7
Compare
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.
Problem
Overview and Usage presentation tests waited for the next minute boundary before reading completed stats.
Result
Prepare completed historical usage rows while the daemon is stopped, then restart it. Require strict stop, socket removal and process exit before editing the history database. Keep the UI and CLI assertions against real daemon output. Console fixture disposal escalates failed graceful cleanup and verifies exit before home removal.
Validation
CI status and dependency
Run 39761604557 had four Queue child-exit failures and a worker socket-removal failure; cleanup now escalates and confirms exit. Search failures were the selection race fixed in #882. This PR is based on
fix/864-console-semantic-waits; retarget tomainafter #882 merges.Its E2E (1/3) also got 409 instead of 201 in the second request of
gateway-smoke.test.ts. That test does not use the changed Console fixture. The focused file passed on basef5aa210c(6 tests), so the CI failure remains unconfirmed. New CI is pending.Review
Spec review: skipped. Code review: 0 blocking, 1 fixed, 0 notes. Claims review: skipped.
Rounds: 1. Tokens: n/a.
One gpt-6.1-sol verification round, following the user-requested abbreviated workflow. Sol identified missing proof of daemon shutdown before history edits. Fixed by checking stop success, socket removal and process exit. No second review round was performed.
Update after #882 and #884
Merged main. #884's cleanup in
e2e/console/fixtures.tsreplaces this branch's three cleanup commits (no-owner exit code, stale socket lookup, forced cleanup), so main's version is kept.prepareHistoricalUsagenow also waits for the daemon process to exit, because main'sstop()waits only for the socket. Overview and Usage Console specs: 57 passed locally (all three browsers).Written by an agent.