Skip to content

Make groom publisher fixture date-relative - #1264

Merged
AbhitejJohn merged 2 commits into
mainfrom
trusted/groom-fixture-retention-1262
Oct 6, 2026
Merged

AbhitejJohn merged 2 commits into
mainfrom
trusted/groom-fixture-retention-1262

Conversation

@AbhitejJohn

Copy link
Copy Markdown
Collaborator

Summary

This carries forward @qapdex-maker's fix from #1262 with the original contributor-authored commit preserved. The groom publisher fixture now defaults to yesterday instead of a fixed date, so the resolved-dispatched test remains inside the 14-day retention window as time advances.

The related status-parser test now passes that date explicitly and checks the exact generated correlation. This keeps the assertion effective instead of checking a stale hard-coded identifier.

Related issue

Supersedes #1262 through a trusted branch. Full credit for the original fix goes to @qapdex-maker.

Validation

  • python -m unittest eng.evaluation.test_token_failover.TokenFailoverTests.test_groom_status_parser_ignores_result_text — passed (1 test).
  • python eng\evaluation\test_token_failover.py — passed (50 tests, 3 skipped).
  • git diff --check — passed.

Checklist

  • I searched existing issues and pull requests to avoid duplicates.
  • I kept this pull request focused and avoided unrelated refactors.
  • I added or updated tests, evals, or documentation when changing skill or agent behavior.
  • I updated CODEOWNERS when adding or moving owned content.
  • I updated all marketplace manifests when plugin metadata changed.
  • I updated eng/known-domains.txt for any new external domains referenced by skill content.

qapdex-maker and others added 2 commits October 5, 2026 16:14
The resolved-dispatched fixture pinned correlation_date to 2026-09-16. The
groom publisher expires resolved outbox rows older than 14 days using
Date.now(), so the fixture silently started failing once real time passed
that date (observed red on 2026-10-02, test_groom_publisher_preserves_
resolved_dispatched_rows).

Default the correlation to yesterday so the row stays inside the retention
window; the expiry test still pins 2000-01-01 explicitly.
Assert against the same date-relative correlation used by the fixture so the status parser test continues to detect a retained resolved row.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: aae5ab40-5238-4540-b192-7cdf544a656d

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused fixture update preserves explicit expiry coverage while eliminating the time-dependent failure.

Review effort: Balanced
Findings: None

What changed in this PR

Makes the groom publisher fixture date-relative so retention tests remain valid over time.

Changes:

  • Defaults fixture correlations to yesterday.
  • Keeps first_seen, table dates, and correlation IDs aligned.
  • Updates the parser test to assert the generated correlation.
File Description
eng/​evaluation/​test_token_failover.py Replaces stale fixed fixture dates with date-relative values.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@AbhitejJohn
AbhitejJohn enabled auto-merge October 5, 2026 18:03
@github-actions github-actions Bot added the waiting-on-review PR state label label Oct 5, 2026
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

✅ Evaluation passed for 2215b20. cc @AbhitejJohn @JanKrivanek — please review.

@AbhitejJohn
AbhitejJohn merged commit 6bd184d into main Oct 6, 2026
46 checks passed
@AbhitejJohn
AbhitejJohn deleted the trusted/groom-fixture-retention-1262 branch October 6, 2026 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-on-review PR state label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants