Skip to content

Run tooltip validation on every PR so the required check can't get stuck#703

Merged
danstotts-ops merged 5 commits into
mainfrom
fix/validate-tooltips-always-run
Jul 15, 2026
Merged

Run tooltip validation on every PR so the required check can't get stuck#703
danstotts-ops merged 5 commits into
mainfrom
fix/validate-tooltips-always-run

Conversation

@danstotts-ops

Copy link
Copy Markdown
Contributor

Problem

Branch protection on main requires the status check Check tooltip imports, produced by .github/workflows/validate-tooltips.yml. That workflow was path-filtered to **.mdx, snippets/tooltips.jsx, scripts/validate-tooltips.js, and the workflow file itself.

GitHub required checks have no concept of "skipped by paths filter": if the workflow never triggers, the check stays in expected state forever and the PR is unmergeable. Any PR touching none of the filtered paths hits this, most commonly docs.json-only changes. Concrete example: #694 (redirects-only) is currently blocked by exactly this.

Fix

Remove the paths: filter so the workflow runs on every PR to main, per GitHub's recommended handling for required checks (always run the workflow; let it no-op fast when there's nothing to check). A comment in the workflow now warns against re-adding a filter.

Why this is safe and cheap

scripts/validate-tooltips.js scans all tracked .mdx files on every run regardless of the diff. Verified locally on a clean checkout:

  • exits 0 in ~0.13s (295 MDX files, 49 tooltip definitions)
  • unused-import warnings do not fail the run

So on an unrelated PR (e.g. docs.json-only), the job checks out, runs in well under a minute, and reports success, unblocking JSON-only PRs while keeping identical validation for MDX changes.

🤖 Generated with Claude Code

"Check tooltip imports" is a required status check, but the workflow was
path-filtered to .mdx/tooltip files. PRs touching none of those paths
(e.g. docs.json-only redirect PRs like #694) never trigger the workflow,
so the required check sits in "expected" forever and the merge is blocked.

Remove the paths filter so the workflow always runs. The validate script
scans all tracked .mdx files in ~0.1s and exits 0 when nothing is broken,
so unconditional runs are effectively free.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
runpod-docs 🟢 Ready View Preview Jul 10, 2026, 3:32 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Merging is additionally gated on a successful Mintlify staging
deployment, which only runs when docs content changes. A workflow-only
PR deploys nothing and cannot merge, so add the missing trailing
newline to one .mdx as the content trigger.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@danstotts-ops

Copy link
Copy Markdown
Contributor Author

@lavanya-gunreddi sorry, one more re-approval needed here too. This repo has a second merge gate beyond the review: a successful Mintlify staging deployment. Workflow-only PRs change no docs content, so Mintlify deploys nothing and the merge is blocked ('Missing successful active staging deployment'). I pushed a trailing-newline touch to serverless/overview.mdx to trigger the deployment, which reset your approval. Nothing else changed. Once re-approved I'll merge immediately.

Between this and the paths-filter issue this PR fixes, the pattern is the same: required gates that can never run on certain PRs. If the Mintlify deployment gate causes trouble again we may want to revisit whether it should be required.

@danstotts-ops danstotts-ops reopened this Jul 14, 2026
@danstotts-ops danstotts-ops temporarily deployed to staging July 14, 2026 15:50 Inactive
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…main)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@danstotts-ops

Copy link
Copy Markdown
Contributor Author

@lavanya-gunreddi so close - your approval landed right as the 711 merge deploy raced out this PR's staging deployment (by seven seconds). Just pushed another whitespace trigger; checks go green in about a minute. One more approval click and the auto-merge fires within seconds this time. Main is quiet now so the window will hold.

lavanya-gunreddi commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

@danstotts-ops approval needed for 703? I see that 711 is merged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@danstotts-ops danstotts-ops merged commit 9788725 into main Jul 15, 2026
3 checks passed
@danstotts-ops danstotts-ops deleted the fix/validate-tooltips-always-run branch July 15, 2026 17:15
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