Skip to content

fix(ci): publish stable schemas to SchemaStore from the docs workflow - #5019

Merged
arturcic merged 1 commit into
mainfrom
fix/schemastore-auth-and-diff
Nov 18, 2026
Merged

arturcic merged 1 commit into
mainfrom
fix/schemastore-auth-and-diff

Conversation

@arturcic

@arturcic arturcic commented Jul 3, 2026 •

Copy link
Copy Markdown
Member

Revive the SchemaStore publisher as part of successful stable documentation publication. docs.yml now calls a reusable schemastore.yml job after publishing, instead of relying on a gh-pages push or copying workflow files into the website branch. This avoids the GITHUB_TOKEN push-trigger restriction.

The publisher reads stable release metadata and configuration schemas from the published docs checkout, checks what SchemaStore actually lacks, and waits for matching public schema contents before writing anything. It uses the same 1Password-backed GitTools bot release token as Homebrew/winget, creating gittools-bot/schemastore when absent and opening the upstream PR from that fork.

The catalog edit stays limited to GitVersion's default URL/version map and wrapper reference. Numeric comparisons preserve newer defaults when backfilling older versions. Existing version entries are repaired rather than duplicated. Reruns reuse a matching bot PR or recover a pushed branch after PR creation failure; changed branches, closed PRs, unique fork commits and git failures require attention rather than forced updates.

Validation:

  • 40 Node checks passed: stable/development/prerelease selection, numeric promotion, older backfills, empty/existing maps, byte-preserving reruns, sequential public-schema retries, bounded fork readiness and forbidden-access failures, bot identity/fork handling, existing PR/branch recovery, upstream races and failure propagation.
  • Local and hosted Actionlint passed. All seven Sonar findings are cleared on f77a6a7: the fresh analysis reports zero open issues and zero annotations, with the quality gate passed. Retry limits and sequential checks are preserved, regex escaping uses String.raw, and the CLI uses top-level await. Remaining build/docs CI is still running.
  • Parsed-workflow checks confirm the publisher runs only after successful main-repository docs publication, credentials load only for a real update, and no workflow-copying change remains in PublishDocs.cs.
  • No new zizmor findings versus main; the three pre-existing docs checkout credential-persistence warnings are unchanged.
  • A read-only preview against the real published docs and SchemaStore catalog selects only 7.0 and verifies the public configuration-schema SHA256. No bot fork or upstream SchemaStore PR has been created by this validation.
  • Local CodeRabbit was attempted after publishing the first implementation head, but its service rejected session/Git-provider authentication. No local review result is available.

Operational follow-up: merge this PR and publish docs to exercise the real bot-fork/PR path. Manual workflow recovery can target a stable published edition. The existing 6.8 schema URL currently returns 404; restoring that legacy hosted schema is separate from this publisher update. Older docs editions without a hosted schema do not block the available 7.0 update; a missing newest stable or explicitly requested schema is an error.

Updated by Codex on behalf of Artur (@arturcic).

Copilot AI review requested due to automatic review settings July 3, 2026 08:10
@sonarqubecloud

sonarqubecloud Bot commented Jul 3, 2026

Copy link
Copy Markdown

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.

Pull request overview

This PR updates the .github/workflows/schemastore.yml automation that syncs GitVersion’s JSON schema to SchemaStore, addressing failures seen in the first live run: git push authentication and overly-large catalog.json diffs.

Changes:

  • Runs gh auth setup-git so subsequent git push uses GH_TOKEN-backed credentials.
  • Replaces the jq-based catalog.json update with an inline Python text patch to avoid reformatting the entire file.
  • Keeps the jq edit for the small gitversion.json $ref update.

Comment thread .github/workflows/schemastore.yml Resolved
@arturcic
arturcic marked this pull request as draft July 15, 2026 08:31
@arturcic
arturcic force-pushed the fix/schemastore-auth-and-diff branch from 921207f to 8484656 Compare October 12, 2026 10:18
@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@arturcic
arturcic force-pushed the fix/schemastore-auth-and-diff branch 3 times, most recently from 58e95ab to 83d29e5 Compare October 17, 2026 23:11
@sonarqubecloud

Copy link
Copy Markdown

arturcic added a commit that referenced this pull request Nov 18, 2026
Revive #5019 with a reusable bot publisher, stable-schema discovery, minimal catalog updates and idempotent retries.

Updated by Codex on behalf of Artur (@arturcic).
@arturcic
arturcic force-pushed the fix/schemastore-auth-and-diff branch from 83d29e5 to 946c328 Compare November 18, 2026 05:24
arturcic added a commit that referenced this pull request Nov 18, 2026
Revive #5019 with a reusable bot publisher, stable-schema discovery, minimal catalog updates and idempotent retries.

Updated by Codex on behalf of Artur (@arturcic).
@arturcic
arturcic force-pushed the fix/schemastore-auth-and-diff branch from 946c328 to 037631c Compare November 18, 2026 05:26
@arturcic arturcic changed the title fix(ci): fix schemastore.yml git push auth and catalog.json diff bloat fix(ci): publish stable schemas to SchemaStore from the docs workflow Nov 18, 2026
Revive #5019 with a reusable bot publisher, stable-schema discovery, minimal catalog updates and idempotent retries.

Updated by Codex on behalf of Artur (@arturcic).
@arturcic
arturcic force-pushed the fix/schemastore-auth-and-diff branch from 037631c to f77a6a7 Compare November 18, 2026 05:32
@sonarqubecloud

Copy link
Copy Markdown

@arturcic
arturcic marked this pull request as ready for review November 18, 2026 05:38
@mergify

mergify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@arturcic
arturcic merged commit 62cd08d into main Nov 18, 2026
55 of 57 checks passed
@arturcic
arturcic deleted the fix/schemastore-auth-and-diff branch November 18, 2026 05:39
@mergify

mergify Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Thank you @arturcic for your contribution!

github-actions Bot pushed a commit that referenced this pull request Nov 18, 2026
Merge pull request #5019 from GitTools/fix/schemastore-auth-and-diff

fix(ci): publish stable schemas to SchemaStore from the docs workflow
@arturcic arturcic mentioned this pull request Nov 18, 2026
78 of 100 tasks
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