Skip to content

test: add EBTA-009 cross-day e2e acceptance#35

Merged
Miss-you merged 1 commit into
mainfrom
codex/ebta-009-e2e-cross-day
Apr 16, 2026
Merged

test: add EBTA-009 cross-day e2e acceptance#35
Miss-you merged 1 commit into
mainfrom
codex/ebta-009-e2e-cross-day

Conversation

@Miss-you

Copy link
Copy Markdown
Owner

Summary

  • add isolated cross-day Codex, Claude, and Kimi fixtures under e2e/testdata/cross-day/
  • add e2e coverage for daily --json --since 2026-04-15 --until 2026-04-16 --timezone UTC
  • add e2e coverage for session --json --since 2026-04-16 --until 2026-04-16 --timezone UTC
  • close EBTA-009 in the task board with workspace verification and review notes

Verification

  • go test -count=1 ./e2e -run TestEventBasedCrossDayAcceptance
  • go test -count=1 ./e2e -run Test
  • make fmt
  • make test
  • make vet
  • make build
  • make lint

Review

  • Independent review found no must-fix issues.
  • Secret scan before commit and push had no findings.

- add isolated Codex, Claude, and Kimi cross-day fixtures

- assert daily UTC splits and session UTC in-range totals

- close EBTA-009 with workspace verification and review notes
Copilot AI review requested due to automatic review settings April 16, 2026 16:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds end-to-end acceptance coverage ensuring event-based aggregation correctly splits a single provider session across a UTC midnight boundary and filters session totals by in-range event dates, without perturbing existing e2e fixtures.

Changes:

  • Introduces isolated cross-day fixtures for Codex (cumulative totals), Claude (assistant usage), and Kimi (StatusUpdate token usage) under e2e/testdata/cross-day/.
  • Adds TestEventBasedCrossDayAcceptance covering daily --json (split by event date) and session --json (in-range-only totals) with --timezone UTC.
  • Updates the event-based aggregation plan/task docs and adds workspace notes (strategy, verification, review) for EBTA-009.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
e2e/e2e_test.go Adds cross-day fixture path helpers and a focused e2e acceptance test validating daily/session JSON behavior across UTC midnight.
e2e/testdata/cross-day/codex/2026/04/15/rollout-2026-04-15T23-50-00-cross-day.jsonl Adds a Codex rollout fixture with cumulative total_token_usage spanning 2026-04-15/16 UTC.
e2e/testdata/cross-day/claude/project-cross-day/cross-day.jsonl Adds a Claude JSONL fixture with assistant usage on both sides of midnight.
e2e/testdata/cross-day/kimi/hash-cross-day/session-cross-day/metadata.json Adds Kimi session metadata for the cross-day fixture.
e2e/testdata/cross-day/kimi/hash-cross-day/session-cross-day/wire.jsonl Adds Kimi wire events with token_usage updates straddling midnight (Unix timestamps).
docs/plans/2026-04-16-event-based-token-aggregation-task.md Marks EBTA-009 as done and records verification/review evidence.
workspace/EBTA-009/verification.md Captures command/test gate results used to verify EBTA-009.
workspace/EBTA-009/test_strategy.md Documents red/green test strategy and expected JSON totals/rows.
workspace/EBTA-009/review.md Records independent review scope and verification command.
workspace/EBTA-009/original_impl.md Notes why the change is acceptance-only and why fixtures must be isolated.
workspace/EBTA-009/new_impl.md Describes the candidate acceptance-only approach and assertions.
workspace/EBTA-009/final_impl_v1.md Specifies fixture expectations and implementation notes for the final approach.
workspace/EBTA-009/final_impl.md Declares final accepted scope (e2e fixtures + assertions only).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Miss-you
Miss-you merged commit 350fb47 into main Apr 16, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants