Skip to content

Avoid duplicate CI runs and inconclusive organization failures - #1358

Merged
mlinksva merged 2 commits into
gh-pagesfrom
testfixes
Nov 16, 2026
Merged

mlinksva merged 2 commits into
gh-pagesfrom
testfixes

Conversation

@mlinksva

Copy link
Copy Markdown
Contributor

Summary

  • Run workflows on pull requests and pushes to gh-pages, avoiding duplicate runs on PR branch pushes.
  • Treat only 404 responses as invalid organization entries; retain entries on throttling, server errors, redirects, and network failures.
  • Collapse inconclusive-check details in Actions logs and report a skipped-check count.
  • Add offline regression tests to the organization-check workflow.

Validation

  • bundle exec ruby test/ensure_orgs_test.rb: 3 tests, 22 assertions passing
  • bundle exec rubocop script/ensure-orgs test/ensure_orgs_test.rb
  • Verified all workflow push filters target only gh-pages and retain PR triggers
  • git diff --check

Run push checks only on gh-pages while retaining pull request checks. Retain entries when organization checks encounter unavailable responses, with collapsed diagnostics and offline regression tests.

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

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.

🔵 Needs a closer look

Human confirmation is needed because the organization-validation gate now permits CI success when all checks are inconclusive due to 403, 5xx, or network failures, changing the data-admission policy to fail open.

No open issues 🎉

What changed in this PR

This PR reduces duplicate CI runs and makes organization validation tolerate inconclusive responses without removing entries.

Changes:

  • Restrict push-triggered workflows to gh-pages while retaining pull-request triggers.
  • Treat only HTTP 404 responses as invalid organizations; group inconclusive results in Actions logs and report skipped checks.
  • Add offline regression tests and run them in the organization-check workflow.
File Description
test/​ensure_orgs_test.rb Add offline tests for successful, invalid, and inconclusive checks.
script/​ensure-orgs Retain inconclusive entries and summarize skipped checks.
.github/​workflows/​rubucop.yml Restrict push runs to gh-pages.
.github/​workflows/​ensure-unique.yml Restrict push runs to gh-pages.
.github/​workflows/​ensure-orgs.yml Restrict push runs and integrate regression tests.
.github/​workflows/​ensure-alphabetize.yml Restrict push runs to gh-pages.
.github/​workflows/​build.yml Restrict push runs while retaining pull-request builds.

Review effort: Balanced (adaptive)

Comment thread .github/workflows/ensure-orgs.yml Resolved
Log only failing entries and aggregate response statistics. Remove EVS-ATMOS, lblpbd, and nasajpl, which return 404.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mlinksva
mlinksva merged commit 484fe23 into gh-pages Nov 16, 2026
10 of 11 checks passed
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