Skip to content

fix(ci): find the last IndexNow submission through its check run, not the run's job list - #9384

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/indexnow-base-lookup
Oct 26, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
fix/indexnow-base-lookup

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • The indexnow job (from improvement(library): single JSON-LD source, Markdown articles, and IndexNow pings #9355) resolved its diff base by listing each earlier main run's jobs at per_page=100. GitHub's jobs API returns HTTP 502 for that page on every re-run workflow run (reproduced repeatedly; the same runs answer at smaller pages, single-attempt runs answer fine). The first release run scanned back to such a run and failed the step; since no submission ever recorded a success, every later run would fail the same way (non-blocking, so deploys were unaffected).
  • Look up the single indexnow check run per commit (/commits/{sha}/check-runs?check_name=indexnow&filter=all): a small response that also counts every attempt of a re-run.
  • A lookup that errors counts as no success instead of aborting the step.
  • With no successful submission in view, diff from the oldest run in view, so URLs no submission ever covered (e.g. the last release's) are still sent, bounded by the 30-run window and the script's 10k URL cap.
  • Adds checks: read to the job for the check-runs API.

Type of Change

  • Bug fix

Testing

  • Ran the new lookup read-only against the live repo, simulating the next main run: 30 lookups in 16s with no errors, base fell back to the oldest run in view, and collectIndexNowUrls (no submission) returned 151 URLs including the last release's library posts.
  • Reproduced the old failure: the jobs API returns 502 at per_page=100 for re-run runs on every try.
  • actionlint on ci.yml: no findings on the changed lines. The job still only runs on main after a successful cutover and remains continue-on-error.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

… the run's job list

The indexnow job resolved its diff base by listing each earlier main run's jobs at 100 per page, and GitHub's jobs API answers that page with HTTP 502 for every re-run workflow run. The first release scanned back to such a run and failed the step, so no submission ever recorded a success and every later run would fail the same way.

Look up the one `indexnow` check run per commit instead (small, and it counts every attempt), treat a lookup that errors as no success, and when no success is in view diff from the oldest run in view so URLs no submission ever covered are still sent.
@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Oct 26, 2026 10:58pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Changes how indexnow finds the last successful submission.

  • IndexNow finds its last successful submission through check runs.

No actionable issues found. Review was based on code inspection; no runtime tests were run.

Reviews (1) · Last reviewed commit: "fix(ci): find the last IndexNow submissi..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 merged commit f2b6bd1 into staging Oct 26, 2026
67 of 68 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/indexnow-base-lookup branch October 26, 2026 22:57

This branch was successfully deployed

1 active deployment
Preview — b2cb8373 Deployed Oct 26, 2026 by vercel[bot]
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