Skip to content

fix(sdk): separate latest deployment from official archives - #66

Open
m4sh-wacker wants to merge 7 commits into
mainfrom
fix/sdk-pages-milestone-publication
Open

m4sh-wacker wants to merge 7 commits into
mainfrom
fix/sdk-pages-milestone-publication

Conversation

@m4sh-wacker

@m4sh-wacker m4sh-wacker commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Latest Engine, SDK and website

Pages publishes the website, standalone HTML and Latest SDK after successful push CI and CodeQL for the exact main commit. It verifies the served SDK aliases, including /api and /api.js, against the freshly generated bundle and its SHA-256 manifest. It also checks the actual served application entry and JavaScript chunks against the local build and treats browser execution errors as failures.

The publisher carries the existing archive trees forward by Git object ID. Latest neither checks out their files nor reads their manifests or requests their URLs. A local website rebuild also preserves SDK archive directories beside the generated aliases. The existing compare-and-swap push retries on a moved Pages ref and retains the configured domain and .nojekyll.

Release lifecycle

Release Please calculates versions using the repository’s Conventional Commit configuration. From 0.3.3, a fix: proposes 0.3.4, and a feat: proposes 0.4.0. A later fix from 0.4.0 proposes 0.4.1, and a feature from 0.4.1 proposes 0.5.0. The generated release PR updates the package version and changelog. For stable releases with patch zero, the changelog also links the classic SDK, ES module, TypeScript declarations and SHA256SUMS at the versioned path.

Merging the release PR lets Release Please create the release and tag. Only an actual published stable milestone qualifies for the archive job. After standalone verification, the job checks out the exact tag, verifies its release, commit, package version and CI, builds the SDK, publishes to /sdk/v1/VERSION/ and checks the served bytes. Pending proposals, patch releases and prereleases do not create archives. The Release PR housekeeping and archive jobs both consume the verified release. A failed archive job can be retried independently. Identical bytes are accepted on retry, and conflicting bytes are rejected. Pages has no dependency on either job.

The existing 0.2.0 and 0.3.0 archives keep their Git tree IDs. The new Retire obsolete SDK archives workflow can be dispatched manually from main to remove only 0.3.1, 0.3.2 and 0.3.3. Production cleanup has not been run.

Tooling and verification

Release Please Action is pinned to official v5.0.0, 45996ed1f6d02564a971a2fa1b5860e934307cf7. The PR writer and its tests use the lockfile from the same commit. The action retains the release metadata and skip inputs used here and runs on Node 24. No inspected action declares Node 20. The pinned CycloneDX SBOM action still declares Node 16 in its latest published version.

Seven focused publication fixtures passed locally, covering missing and corrupted historical archives, remote Latest requests, unchanged archive trees, isolated archive failure, both orders of concurrent writes, exact-path manual retirement and local website output cleanup. The pinned Release Please generator fixture also passed the four version transitions, changelog link and regeneration checks, and release-title-only case. Other local checks included targeted ESLint, JavaScript syntax checks, Actionlint, YAML parsing, Bash syntax and git diff --check.

The complete automated test and security checks are delegated to GitHub Actions and have not been independently verified for this head in this task. Production Pages, GitHub Release publication and the manual retirement workflow have not been exercised by this revision.

PR head 69998b4c2b5184bb0e2d96ac7b830921b089940d

Files changed against main (29)
  • .github/actions/release-please-tools/action.yml
  • .github/actions/require-main-ci/action.yml
  • .github/actions/standalone-release/action.yml
  • .github/scripts/release-notes.cjs
  • .github/scripts/verify-release-cli.cjs
  • .github/scripts/verify-release-notes.cjs
  • .github/scripts/verify-sdk-browser.mjs
  • .github/workflows/ci.yml
  • .github/workflows/codeql.yml
  • .github/workflows/deploy-pages.yml
  • .github/workflows/docs-quality.yml
  • .github/workflows/release-please.yml
  • .github/workflows/retire-obsolete-sdk.yml
  • .github/workflows/sbom.yml
  • .github/workflows/scorecard.yml
  • README.md
  • docs/development.md
  • docs/sdk/README.md
  • docs/sdk/api-reference.md
  • scripts/build-sdk.mjs
  • scripts/check-sdk-browser.mjs
  • scripts/check-sdk-dist.mjs
  • scripts/publish-gh-pages.mjs
  • scripts/sdk-distribution.test.mjs
  • scripts/sdk-integrity.mjs
  • scripts/sdk-paths.mjs
  • src/sdk/index.ts
  • src/sdk/sdk.test.ts
  • vite.config.ts

This branch has not been deployed

No deployments
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