Skip to content

Skip branch existence checks for archived doc versions#23370

Open
ebembi-crdb wants to merge 1 commit into
mainfrom
fix-branch-existence-check-archived-versions
Open

Skip branch existence checks for archived doc versions#23370
ebembi-crdb wants to merge 1 commit into
mainfrom
fix-branch-existence-check-archived-versions

Conversation

@ebembi-crdb
Copy link
Copy Markdown
Contributor

Summary

  • Fixes Branch existence check failure (automated) #23175
  • Updates the nightly branch existence validation script to skip versions whose docs have been archived from the site (no folder under src/current/)
  • The 6 failing versions (v1.0, v1.1, v2.0, v2.1, v19.1, v19.2) no longer have branches in cockroachdb/generated-diagrams, but their crdb_branch_name entries in versions.csv are still valid historical data — so the script now skips them rather than requiring data changes
  • Future archived versions will automatically be skipped as their docs folders are removed

Test plan

  • python3 .github/scripts/validate_branch_existence.py --self-test passes (2 new test cases added)
  • Full run against versions.csv passes — archived versions print SKIP (archived), active versions still checked normally

🤖 Generated with Claude Code

Fixes #23175. The nightly branch existence workflow fails for v1.0,
v1.1, v2.0, v2.1, v19.1, and v19.2 because their branches no longer
exist in cockroachdb/generated-diagrams. Rather than modifying
versions.csv, update the validation script to skip versions that have
been archived from the site (i.e., have no docs folder under
src/current/).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ebembi-crdb ebembi-crdb requested a review from a team as a code owner May 19, 2026 11:57
@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for cockroachdb-api-docs canceled.

Name Link
🔨 Latest commit a72875d
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-api-docs/deploys/6a0c50368dd4b300083178fd

@github-actions
Copy link
Copy Markdown

Files changed:

  • .github/scripts/validate_branch_existence.py

@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for cockroachdb-interactivetutorials-docs canceled.

Name Link
🔨 Latest commit a72875d
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-interactivetutorials-docs/deploys/6a0c503633b0dc00088f853c

@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Netlify Preview

Name Link
🔨 Latest commit a72875d
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-docs/deploys/6a0c50368717c00008085f2f
😎 Deploy Preview https://deploy-preview-23370--cockroachdb-docs.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.

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.

Branch existence check failure (automated)

2 participants