Skip to content

Check new organizations incrementally and scan all monthly - #1359

Merged
mlinksva merged 1 commit into
gh-pagesfrom
orgs
Nov 16, 2026
Merged

mlinksva merged 1 commit into
gh-pagesfrom
orgs

Conversation

@mlinksva

Copy link
Copy Markdown
Contributor

Summary

  • For PRs, check only organization names absent from the PR base revision; for pushes, compare against the previous commit.
  • Compare parsed YAML names across all categories, case-insensitively, so sorting, moves, and removals do not trigger requests.
  • Run a full scan monthly (first day at 06:23 UTC) and allow manual full scans.
  • Fail explicitly if a requested baseline cannot be read; treat an initial branch push as an empty baseline.

Validation

  • bundle exec ruby test/ensure_orgs_test.rb: 7 tests, 60 assertions passing
  • bundle exec rubocop script/ensure-orgs test/ensure_orgs_test.rb
  • Verified workflow schedule, manual trigger, checkout history, and comparison revisions
  • ORG_BASE_REF=HEAD bundle exec script/ensure-orgs: zero requests for unchanged data
  • git diff --check

Compare PR and push data against their base revision, ignoring case-only edits, category moves, sorting, and removals. Add monthly and manual full scans and offline regression coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI adaptive review requested due to automatic review settings November 16, 2026 22:08

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.

🟢 Approval recommended

No active review issues are recorded for the incremental organization-validation change.

No open issues 🎉

What changed in this PR

Reduces routine organization-validation requests by checking only newly added names, while retaining monthly and manual full scans.

Changes:

  • Compare organization names case-insensitively against the PR base or pre-push revision, ignoring moves, sorting, and removals.
  • Add explicit failure for unreadable baselines and empty-baseline handling for initial pushes.
  • Schedule monthly full scans and expand regression coverage for incremental checks.
File Description
test/​ensure_orgs_test.rb Adds Git-backed fixtures and tests for incremental checks and baseline handling.
script/​ensure-orgs Loads baseline names and filters requests to added or renamed organizations.
.github/​workflows/​ensure-orgs.yml Adds scheduled and manual scans, fetches full history, and passes the comparison revision.

Review effort: Balanced (adaptive)

@mlinksva
mlinksva merged commit a66dad2 into gh-pages Nov 16, 2026
10 checks passed
@mlinksva
mlinksva deleted the orgs branch November 16, 2026 22:13
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.

2 participants