Skip to content

fix: refresh community group status only when content changes - #1653

Merged
mrbobbytables merged 1 commit into
cncf:mainfrom
mrbobbytables:fix/community-group-refresh-content-change
Oct 19, 2026
Merged

mrbobbytables merged 1 commit into
cncf:mainfrom
mrbobbytables:fix/community-group-refresh-content-change

Conversation

@mrbobbytables

Copy link
Copy Markdown
Member

Summary

The weekly "Refresh community profiles and group status" workflow opened a PR on every run (for example #1632) because check-community-group-links.mjs always rewrote data/community-groups.json with a fresh timestamp, even when no group status had changed. The radar and case-study collectors already compare generated content against the committed file and leave it untouched when nothing moved; this brings the group checker in line with them.

Changes

  • scripts/check-community-group-links.mjs: compare the freshly checked groups against the previous report and exit without writing when they match, so create-pull-request sees no diff and opens nothing. The weekly check still runs and still logs its result.
  • Rename the envelope timestamp checkedAt to generatedAt. It now records when the published status data last changed rather than when it was last checked. A legacy checkedAt report is migrated on the next run that writes.
  • src/components/GroupLinkStatus: render the date as "Upstream group status last updated on ...".
  • scripts/validate-community-groups.mjs: validate generatedAt; drop the 60-day staleness warning, which measured check recency and no longer has a field with that meaning.
  • data/community-groups.json: field renamed; timestamp set to the migration date.
  • CONTRIBUTING.md: update the note about the checker rewriting the data file.
  • Tests: unit, fixture and e2e coverage updated for the new field and wording; the checker tests' repeated fixtures are folded into shared helpers, and CLONE_CEILING is lowered to the new count (268).

No workflow change is needed: once the checker leaves the file untouched, peter-evans/create-pull-request has nothing to commit.

Validation

  • npm run test:unit:coverage:check passes
  • npm run check:duplication passes at the lowered ceiling
  • npm run validate:community-groups passes
  • npm run build passes
  • npx playwright test tests/e2e/smoke.spec.js --grep "upstream group status" passes against a production build
  • Prettier clean on all touched files

Refs #1632

The weekly "Refresh community profiles and group status" workflow opened
a pull request every run because check-community-group-links.mjs always
rewrote data/community-groups.json with a fresh timestamp, even when no
group status had changed (see cncf#1632 for a timestamp-only example). The
radar and case-study collectors already compare generated content
against the committed file and leave it alone when nothing moved; bring
the group checker in line with them.

- Compare the freshly checked groups against the previous report and
  exit without writing when they match, so create-pull-request sees no
  diff and opens nothing.
- Rename the envelope timestamp from checkedAt to generatedAt. It now
  records when the published status data last changed, not when it was
  last checked. A legacy checkedAt report is migrated on the next run.
- Render the date as "Upstream group status last updated on" and drop
  the 60-day staleness warning in validate-community-groups.mjs, which
  measured check recency and no longer has a field that means that.
- Update unit, fixture and e2e coverage for the new field and wording,
  and fold the checker tests' repeated fixtures into shared helpers;
  lower CLONE_CEILING to the new count.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: mrbobbytables <mrbobbytables@users.noreply.github.com>
@netlify

netlify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for endusers ready!

Name Link
🔨 Latest commit eddb3d4
🔍 Latest deploy log https://app.netlify.com/projects/endusers/deploys/6ad62e3e58815f4c5ef45000
😎 Deploy Preview https://deploy-preview-1653--endusers.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mrbobbytables
mrbobbytables added this pull request to the merge queue Oct 19, 2026
Merged via the queue into cncf:main with commit 50c636a Oct 19, 2026
12 checks passed
@mrbobbytables
mrbobbytables deleted the fix/community-group-refresh-content-change branch October 21, 2026 02:41
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