Skip to content

chore: Add semver workflow#48

Merged
Not-Nik merged 9 commits into
mozilla:mainfrom
Not-Nik:semver
May 7, 2026
Merged

chore: Add semver workflow#48
Not-Nik merged 9 commits into
mozilla:mainfrom
Not-Nik:semver

Conversation

@Not-Nik
Copy link
Copy Markdown
Collaborator

@Not-Nik Not-Nik commented May 6, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discarding empty pending review to re-create with inline comments.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@e6ef55e). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #48   +/-   ##
=======================================
  Coverage        ?   68.89%           
=======================================
  Files           ?       26           
  Lines           ?     3244           
  Branches        ?     3244           
=======================================
  Hits            ?     2235           
  Misses          ?      806           
  Partials        ?      203           
Flag Coverage Δ
freebsd 68.89% <ø> (?)
linux 68.89% <ø> (?)
macos 68.89% <ø> (?)
windows 68.89% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread .github/workflows/semver.yml
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean, minimal addition — reuses the pinned mozilla/actions reusable workflow at the same SHA as the rest of the CI, and follows the existing concurrency/permissions conventions. Only one issue: the missing merge_group trigger (see inline comment).

@Not-Nik Not-Nik marked this pull request as draft May 6, 2026 20:11
@Not-Nik
Copy link
Copy Markdown
Collaborator Author

Not-Nik commented May 6, 2026

The workflow in mozilla/actions doesn't install NSS which prevents nss-rs from building. Either we keep a completely separate workflow here, or we move semver from a workflow to an action, so we can install NSS here before calling it.

cc @larseggert

@Not-Nik Not-Nik marked this pull request as ready for review May 7, 2026 15:03
@Not-Nik Not-Nik marked this pull request as draft May 7, 2026 17:48
Comment thread .github/workflows/semver.yml Fixed
Comment thread .github/workflows/semver.yml Fixed
Comment thread .github/workflows/semver.yml Fixed
@Not-Nik Not-Nik force-pushed the semver branch 4 times, most recently from 798c83a to e970ff6 Compare May 7, 2026 18:17
Comment thread .github/workflows/semver.yml Fixed
Comment thread .github/workflows/semver.yml Fixed
Comment thread .github/workflows/semver.yml Fixed
Comment thread .github/workflows/semver.yml Fixed
Avoid a full clone in the calling workflow: only check out
min_version.txt (needed by the nss action) and fetch tag refs to
resolve the latest tag. The semver action does its own full checkout
afterwards.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Comment thread .github/workflows/semver.yml Fixed
Comment thread .github/workflows/semver.yml Fixed
Comment thread .github/workflows/semver.yml Fixed
@Not-Nik Not-Nik marked this pull request as ready for review May 7, 2026 19:40
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean addition — follows the repo's established CI conventions (concurrency, permissions, pinned actions, merge_group trigger). The sparse-checkout + fetch-tags optimization is a nice touch over a full clone.

The previous review feedback (missing merge_group, trigger ordering, zizmor version-comment finding) has all been addressed.

One inline comment on the tag resolution strategy — see thread on line 34.

Comment thread .github/workflows/semver.yml Outdated
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean, well-structured addition. The workflow follows all existing CI conventions (triggers, concurrency, permissions, pinned action hashes with version comments). The sparse-checkout + fetch-tags optimization keeps the checkout minimal while still resolving the semver baseline. Previous review feedback (merge_group trigger, --sort=-version:refname, empty-tag guard, zizmor version comment) has all been addressed.

Two minor observations on the PR as a whole:

  • Version bump scope: The 0.8.00.9.0 bump is included without explanation in the (empty) PR body. Worth a short note on whether this accounts for API changes since the 0.8.0 tag or is purely to bootstrap the semver workflow.
  • CLAUDE.md: Tangential to the semver workflow. Content is accurate (verified edition, MSRV, and min NSS version against Cargo.toml/min_version.txt), but could live in its own commit or PR for cleaner history.

Comment thread CLAUDE.md Outdated
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean, well-structured workflow. Follows the repo's established conventions (triggers, concurrency, permissions, pinned actions with version comments, job-level defaults). All previous review feedback (merge_group trigger, --sort=-version:refname, empty-tag guard, zizmor version comment) has been addressed.

Two observations:

  • Sparse checkout: See inline comment — verify that mozilla/actions/semver doesn't depend on the working tree having source files, since only min_version.txt is checked out.
  • Version bump bundling: The 0.8.00.9.0 bump is unrelated to the semver workflow addition. Consider a brief note in the PR description explaining whether this accounts for API changes since the 0.8.0 tag, or splitting it into its own commit for cleaner history.

Comment thread .github/workflows/semver.yml
@Not-Nik Not-Nik merged commit 71eeddf into mozilla:main May 7, 2026
49 checks passed
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.

4 participants