Repository navigation
ci(garnet): Add lookback_days input to the shadow mirror - #114
Conversation
|
I'll fix CI failures and address comments from users with write access that start with 'Devin'.
|
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
There was a problem hiding this comment.
There was a problem hiding this comment.
🔍 Testing checklist in PR description
The test and actionlint checkbox conflicts with the PR description rules, which prohibit testing checklists.
Was this helpful? React with 👍 or 👎 to provide feedback.
There was a problem hiding this comment.
🔍 Missing issue-closing reference
The PR body lacks the Fixes #… reference required by the PR description rules.
Was this helpful? React with 👍 or 👎 to provide feedback.
| lookback_days: | ||
| description: Days of merged dependency changes to replay | ||
| required: false | ||
| default: '10' | ||
| type: string |
There was a problem hiding this comment.
🔍 Short replays also close existing mirrors
A one-day dispatch sends existing open mirrors through sync, not just newly discovered changes. It closes mirrors when both the upstream merge and mirror creation are older than one day.
Was this helpful? React with 👍 or 👎 to provide feedback.
| def test_open_backfilled_mirror_stays_in_window(self): | ||
| now = datetime.datetime(2026, 11, 27, tzinfo=datetime.timezone.utc) | ||
| pr = {"merged_at": "2026-10-16T00:00:00Z"} | ||
| fresh = {1: {"state": "open", "created_at": "2026-11-26T00:00:00Z"}} | ||
| stale = {1: {"state": "open", "created_at": "2026-11-10T00:00:00Z"}} | ||
| closed = {1: {"state": "closed", "created_at": "2026-11-26T00:00:00Z"}} | ||
| self.assertTrue(recently_merged(pr, now, fresh)) | ||
| self.assertFalse(recently_merged(pr, now, stale)) | ||
| self.assertFalse(recently_merged(pr, now, closed)) | ||
| self.assertFalse(recently_merged({"merged_at": None}, now, fresh)) |
Devin Review👀 5 findings for you to triage |
Recording runtime behavior1 of 236 jobs finished CI: Build & Test / Build bundles · not recorded
|
size-limit report 📦Compared: 26f511a (PR test merge using develop at b4f0a1c) Against: b4f0a1c (develop) · base run #224 ✅ Baseline matches: this diff contains only this PR's changes.
|
Adds an optional
lookback_daysinput toworkflow_dispatch(default10, so scheduled runs behave as before). This lets the mirror replay a past set of merged upstream dependency PRs alongside live ones. A 45-day window qualifies about 48 upstream PRs, where the 10-day window qualifies 2.mirror.py sync --lookback-days Nsets the window for that run. Named--prvalues still go through the same window.No reviewer, gate or recorder changes. The only writes go to garnet-labs/sentry-javascript.
python3 -m unittest discover -s .github/scripts/shadow_mirror: 17 pass); actionlint clean.Implemented in session Shadow mirror sentry-javascript dependency PRs
Review with Devin · Open in Devin Desktop