Skip to content

fix: Copilot plugin - add backfill time window to ensure data consistency#8811

Open
la-tamas wants to merge 1 commit intoapache:mainfrom
archfz:chore/copilot-user-metrics-backfill
Open

fix: Copilot plugin - add backfill time window to ensure data consistency#8811
la-tamas wants to merge 1 commit intoapache:mainfrom
archfz:chore/copilot-user-metrics-backfill

Conversation

@la-tamas
Copy link
Copy Markdown

@la-tamas la-tamas commented Mar 26, 2026

⚠️ Pre Checklist

Please complete ALL items in this checklist, and remove before submitting

  • I have read through the Contributing Documentation.
  • I have added relevant tests.
  • I have added relevant documentation.
  • I will add labels to the PR, such as pr-type/bug-fix, pr-type/feature-development, etc.

Summary

Add backfill time window to ensure data consistency for GitHub Copilot metrics collection.
GitHub reports are generated hours after midnight, so a midnight run gets 404 for the previous day.
Without a lookback buffer, LatestSuccessStart advances past the missed day permanently.

This change introduces: reportLookbackDays constant: extra days rewound from 'until' on incremental runs dailyMetricsTrailingBackfillDays constant: extends retries for delayed daily report generation\n- clampDailyMetricsStartForBackfill helper to apply the trailing backfill window.

Does this close any open issues?

Screenshots

Other Information

Any other information that is important to this PR.

chore: Add backfill time window to ensure data consistency
(cherry picked from commit 52a9555b782860f9c8ba9db409bd56e0c8f58272)
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. cherrypick This PR is cherry-picked from another branch component/plugins This issue or PR relates to plugins pr-type/bug-fix This PR fixes a bug labels Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherrypick This PR is cherry-picked from another branch component/plugins This issue or PR relates to plugins pr-type/bug-fix This PR fixes a bug size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants