Skip to content

fix(npmjs): laggy packument gauge always reads zero - #1936

Merged
cdklabs-automation merged 1 commit into
mainfrom
mrgrain/fix/npmjs/feed-reliability-widget
Sep 23, 2026
Merged

cdklabs-automation merged 1 commit into
mainfrom
mrgrain/fix/npmjs/feed-reliability-widget

Conversation

@mrgrain

@mrgrain mrgrain commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

While verifying the Gamma deployment of #1935, I noticed the Feed Reliability widget shows nothing useful.

The LaggyPackuments gauge always reads 0, even though the state file was tracking 2-3 laggy packuments at the time. We emitted the metric at the end of the retry phase. At that point recoveries are already processed and the scan hasn't recorded new expectations yet, so the count is always 0. The gauge is now emitted at the end of the run instead.

LaggyPackumentsRecovered was missing from the widget completely. Turns out it's the busiest metric of the bunch: Gamma had 12 recoveries in a single run. It's now on the widget.

Extended the existing tests to check the gauge values: 1 after recording an expectation, 0 after a recovery.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

The LaggyPackuments gauge was emitted at the end of the retry phase,
which is its trough: recoveries have just been processed and the scan
has not recorded new expectations yet. On the Gamma deployment the
gauge read a constant 0 while the state file tracked 2-3 laggy
packuments. It is now emitted at the end of the run.

Also adds the LaggyPackumentsRecovered metric to the Feed Reliability
dashboard widget; it was missing even though it is the most active
signal on that widget (12 recoveries in a single run on Gamma).
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@cdklabs-automation
cdklabs-automation added this pull request to the merge queue Sep 23, 2026
Merged via the queue into main with commit 53cc894 Sep 23, 2026
11 checks passed
@cdklabs-automation
cdklabs-automation deleted the mrgrain/fix/npmjs/feed-reliability-widget branch September 23, 2026 11:18
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.

3 participants