Skip to content

Add CircleCI semver-compatibility check job for release branches#4278

Draft
Copilot wants to merge 2 commits into
stagingfrom
copilot/feature-introduce-backwards-compatibility-ci-job
Draft

Add CircleCI semver-compatibility check job for release branches#4278
Copilot wants to merge 2 commits into
stagingfrom
copilot/feature-introduce-backwards-compatibility-ci-job

Conversation

Copilot AI commented May 28, 2026

Copy link
Copy Markdown
Contributor

This PR introduces a CI gate for API/backward-compatibility regressions in snarkOS, aligned with the existing snarkVM semver-check pattern. It adds a dedicated semver check script and integrates it into CircleCI’s merge-focused workflow branches.

  • Semver check script

    • Added .circleci/semver-checks.sh.
    • Installs cargo-semver-checks@0.43.0, ensures baseline commit visibility in shallow clones, and runs workspace semver checks against a pinned baseline revision (v4.6.4 commit).
  • New CircleCI job

    • Added check-cargo-semver-checks in .circleci/config.yml.
    • Uses full checkout (method: full) and existing setup/cleanup commands to execute the new script.
  • Workflow integration

    • Wired check-cargo-semver-checks into merge-devnet-workflow for:
      • canary
      • testnet
      • mainnet
      • staging
# .circleci/semver-checks.sh
cargo install cargo-semver-checks@0.43.0 --locked
git fetch --unshallow || true
cargo semver-checks --workspace --default-features --baseline-rev $BASELINE_REV

Copilot AI linked an issue May 28, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Introduce backwards compatibility CI job for snarkOS Add CircleCI semver-compatibility check job for release branches May 28, 2026
Copilot finished work on behalf of vicsn May 28, 2026 10:38
Copilot AI requested a review from vicsn May 28, 2026 10:38
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.

[Feature] Introduce backwards compatibility CI job

2 participants