Skip to content

e2e: keep fixture sites outside the retention window clock - #145

Merged
velixio merged 2 commits into
mainfrom
fix/e2e-fixture-retention
Oct 28, 2026
Merged

velixio merged 2 commits into
mainfrom
fix/e2e-fixture-retention

Conversation

@velixio

@velixio velixio commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Root cause: weekly rhythm (weekday/hour breakdowns) is validated against the site's raw retention window (internal/query/plan.go validateTrafficRange). The e2e fixture days are fixed (2026-09-28..30) but the owner site used by web/e2e/fixtures.ts was created via the API with retention_days 30. From 2026-10-28 the oldest allowed day became 2026-09-29, so the request for 09-28 returned the retention error, the card rendered its error state and no gridcell had data-busiest. It is a date-dependent failure, not caused by #143.

Fix: create the e2e owner site with retention_days 0 (forever) in web/e2e/fixtures.ts, and keep the file-registry fixture sites in web/playwright.config.ts at 0 too. No assertions changed.

Verified locally: dashboard-where-when spec passes, and the CI dashboard group (10 spec files) passes, 18 tests.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 49232cb and 2d466bf.

Files selected for processing: 1
  • web/e2e/fixtures.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

The generated E2E site configuration and site-creation request now set retention_days to 0 instead of 30. Other mapped site fields and setup logic remain unchanged.

Changes: E2E site configuration

Layer / File(s) Summary
Set the generated site retention value
web/playwright.config.ts:33, web/e2e/fixtures.ts:129
The generated site configuration and site-creation request now set retention_days to 0 instead of 30.

Priority: Normal

Merge Risk: Minimal · up to 2d466

The change preserves fixture data indefinitely and resolves the reported E2E expiry without an identified repository defect.

Architecture risk: Low · up to 49232

The change affects 1 system.

Changed systems: web

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — web (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in web/playwright.config.ts: The generated site rows now set retention_days to 0 rather than 30.
Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly states that E2E fixture sites must remain outside the retention window. It accurately summarises the main change.
Description check Passed The description explains the retention-window failure, identifies both changed files, and records local verification results. It directly relates to the changeset.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 2 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

The golden fixture days are fixed (2026-09-28..30) but the e2e owner site was
created through the API with 30-day retention. Weekly rhythm (weekday/hour
breakdowns) is rejected outside the retention window, so once the fixture
aged past 30 days the card showed its retention error and had no busiest
cell. Create the site with retention_days 0 (forever), like the file-registry
sites.
@velixio velixio changed the title test(e2e): fixture sites keep data forever e2e: keep fixture sites outside the retention window clock Oct 28, 2026
@velixio
velixio merged commit 4a772ef into main Oct 28, 2026
13 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.

1 participant