Skip to content

chore: improve semver checks for stable releases - #734

Merged
flub merged 14 commits into
mainfrom
flub/semver-updates
Jul 13, 2026
Merged

flub merged 14 commits into
mainfrom
flub/semver-updates

Conversation

@flub

@flub flub commented Jul 1, 2026 •

Copy link
Copy Markdown
Collaborator

Description

This updates semver checks with the following behaviour:

  • The baseline for the check is now the latest published release on
    crates.io

  • If you make a semver-breaking change you must also bump the package
    version number so that the semver check will pass. Because we like
    to bump the versions of all crates at the same time you can not use
    pre-releases since cargo does not allow mixing those and the iroh
    patchbay tests has 2nd-level dependencies on noq-udp (via netwatch).

  • Adding deprecated items is allowed in minor version bumps, matching
    https://semver.org/#how-should-i-handle-deprecating-functionality

  • Bump noq-proto version because we previously added deprecations.

  • Now the baseline is somewhat stable, enable caching.

Breaking Changes

none

Notes & open questions

I tested this first by not bumping the noq-proto version number and it fails in that case. Which is due to #725.

Once this is merged I will make the semver check required in noq.

The version bumping required to make semver-checks pass could be a bit annoying. It will also make patching iroh for noq a little bit harder. As shown by what the patchbay check has to do now. I'm tempted to think for now that this is worth it, but happy to think about how to tweak this as we gain experience.

OTOH having to bump to the right version means that come to a release we do know what the next version should be. Which is probably good.

Change checklist

  • Self-review.

This updates semver checks with the following behaviour:

- The baseline for the check is now the latest published release on
  crates.io

- If you make a semver-breaking change you must also bump the package
  version number so that the semver check will pass: use "-alpha.0" or
  to mark these as not published.

- Adding deprecated items is allowed in minor version bumps.

- Bump proto version because we previously added deprecations.

- Now the baseline is somewhat stable, enable caching.
@github-actions

github-actions Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/noq/pr/734/docs/noq/

Last updated: 2026-07-09T11:52:35Z

@flub
flub force-pushed the flub/semver-updates branch from 59c2867 to 3836296 Compare July 1, 2026 08:38
@github-actions

github-actions Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

Performance Comparison Report

59c2867951740eb065eafd4e1cbc308015db1476 - artifacts

Netsim Benchmarks (network simulation)

Condition noq upstream Delta
ideal N/A 4075.7 Mbps N/A
---
3836296929ea797b640f7832e046b02906f5cbcd - artifacts

Raw Benchmarks (localhost)

Scenario noq upstream Delta CPU (avg/max)
large-single 5351.3 Mbps 7930.4 Mbps -32.5% 93.6% / 99.0%
medium-concurrent 5449.7 Mbps 7708.0 Mbps -29.3% 94.4% / 100.0%
medium-single 3789.8 Mbps 4635.9 Mbps -18.3% 93.6% / 101.0%
small-concurrent 3887.4 Mbps 5240.7 Mbps -25.8% 100.3% / 153.0%
small-single 3419.3 Mbps 4774.9 Mbps -28.4% 90.5% / 98.5%

Netsim Benchmarks (network simulation)

Condition noq upstream Delta
ideal 3036.4 Mbps 3827.5 Mbps -20.7%
lan 796.3 Mbps 810.3 Mbps -1.7%
lossy 69.8 Mbps 69.8 Mbps ~0%
wan 83.8 Mbps 83.8 Mbps ~0%

Summary

noq is 26.2% slower on average

---
99df192bd72b927fb18cf453b77f9cbb9fea5dc7 - artifacts

No results available

---
52f1ca49ca2667bfc6ec80111db32b945c28e21f - artifacts

Raw Benchmarks (localhost)

Scenario noq upstream Delta CPU (avg/max)
large-single 5292.1 Mbps 7988.4 Mbps -33.8% 95.2% / 99.6%
medium-concurrent 5365.7 Mbps 7701.3 Mbps -30.3% 94.7% / 99.0%
medium-single 3812.4 Mbps 4748.9 Mbps -19.7% 96.8% / 150.0%
small-concurrent 3645.0 Mbps 5315.8 Mbps -31.4% 91.8% / 103.0%
small-single 3416.1 Mbps 4726.9 Mbps -27.7% 92.2% / 104.0%

Netsim Benchmarks (network simulation)

Condition noq upstream Delta
ideal 2988.7 Mbps 4038.1 Mbps -26.0%
lan 782.4 Mbps 812.6 Mbps -3.7%
lossy 69.8 Mbps 55.9 Mbps +25.0%
wan 83.8 Mbps 83.8 Mbps ~0%

Summary

noq is 28.2% slower on average

---
861ff0126961b26a231f04f13394f4cee5109ab7 - artifacts

No results available

---
033686a4a06a89b08b6571a7355b19659a247440 - artifacts

No results available

---
5a0e86be5333520a08cc847c729ed6b78ecc6886 - artifacts

Raw Benchmarks (localhost)

Scenario noq upstream Delta CPU (avg/max)
large-single 5483.6 Mbps N/A N/A 97.0% / 98.5%
medium-concurrent 5445.0 Mbps N/A N/A 96.5% / 98.0%
medium-single 3938.0 Mbps N/A N/A 96.3% / 98.7%
small-concurrent 3799.3 Mbps N/A N/A 97.1% / 99.6%
small-single 3415.1 Mbps N/A N/A 95.4% / 97.6%

Netsim Benchmarks (network simulation)

Condition noq upstream Delta
ideal 3016.0 Mbps 4051.3 Mbps -25.6%

Summary

noq is 25.6% slower on average

---
d8547afb8ba138ac1b5e3f09b77e576c64ef6b52 - artifacts

Raw Benchmarks (localhost)

Scenario noq upstream Delta CPU (avg/max)
large-single 5413.3 Mbps 7975.7 Mbps -32.1% 97.6% / 149.0%
medium-concurrent 5374.4 Mbps 8130.4 Mbps -33.9% 91.8% / 97.1%
medium-single 4278.1 Mbps 4594.8 Mbps -6.9% 89.5% / 97.4%
small-concurrent 3867.1 Mbps 5411.9 Mbps -28.5% 96.0% / 103.0%
small-single 3469.6 Mbps 4709.4 Mbps -26.3% 93.5% / 102.0%

Netsim Benchmarks (network simulation)

Condition noq upstream Delta
ideal 3025.1 Mbps 4098.4 Mbps -26.2%
lan 782.4 Mbps 810.4 Mbps -3.4%
lossy 69.8 Mbps 63.1 Mbps +10.6%
wan 83.8 Mbps 83.8 Mbps ~0%

Summary

noq is 26.5% slower on average

---
96436a5d610b724a746820d849d4c705fc23e697 - artifacts

Raw Benchmarks (localhost)

Scenario noq upstream Delta CPU (avg/max)
large-single 5454.6 Mbps 7902.1 Mbps -31.0% 94.0% / 99.0%
medium-concurrent 5375.8 Mbps 7696.4 Mbps -30.2% 95.2% / 101.0%
medium-single 3575.6 Mbps 4749.8 Mbps -24.7% 94.0% / 101.0%
small-concurrent 3734.7 Mbps 5282.5 Mbps -29.3% 91.0% / 99.2%
small-single 3384.3 Mbps 4886.2 Mbps -30.7% 99.3% / 152.0%

Netsim Benchmarks (network simulation)

Condition noq upstream Delta
ideal 2955.1 Mbps 4093.1 Mbps -27.8%
lan 782.4 Mbps 810.3 Mbps -3.4%
lossy 69.9 Mbps 55.9 Mbps +25.0%
wan 83.8 Mbps 83.8 Mbps ~0%

Summary

noq is 28.5% slower on average

---
453671ac18d0d96bb60530394e8e904674792dfa - artifacts

Raw Benchmarks (localhost)

Scenario noq upstream Delta CPU (avg/max)
large-single 5405.5 Mbps 8001.8 Mbps -32.4% 91.7% / 97.2%
medium-concurrent 5528.6 Mbps 7615.6 Mbps -27.4% 93.2% / 99.0%
medium-single 4041.1 Mbps 4664.2 Mbps -13.4% 92.7% / 101.0%
small-concurrent 3789.6 Mbps 5252.4 Mbps -27.8% 98.0% / 153.0%
small-single 3400.0 Mbps 4804.0 Mbps -29.2% 97.2% / 152.0%

Netsim Benchmarks (network simulation)

Condition noq upstream Delta
ideal 3017.2 Mbps 3798.9 Mbps -20.6%
lan 782.4 Mbps 810.3 Mbps -3.4%
lossy 69.9 Mbps N/A N/A
wan 83.8 Mbps N/A N/A

Summary

noq is 25.7% slower on average

---
1882512e2709d8151d444244dae21191c6758f5e - artifacts

Netsim Benchmarks (network simulation)

Condition noq upstream Delta
ideal 3114.5 Mbps 4071.0 Mbps -23.5%
lan 782.4 Mbps 810.4 Mbps -3.5%
wan 83.8 Mbps N/A N/A

Summary

noq is 20.2% slower on average

---
46b1f597099908e600632e978c01c1cc5247ef6b - artifacts

Netsim Benchmarks (network simulation)

Condition noq upstream Delta
ideal 3003.1 Mbps 3910.6 Mbps -23.2%

Summary

noq is 23.2% slower on average

---
f3d8753c738976bdbd6f679e8a887e31e80d22bb - artifacts

Netsim Benchmarks (network simulation)

Condition noq upstream Delta
ideal 3037.8 Mbps 4098.9 Mbps -25.9%
lan 796.4 Mbps N/A N/A

Summary

noq is 25.9% slower on average

---
9f1b2136c4b15f43f2a37a98717914221d69606b - artifacts

Raw Benchmarks (localhost)

Scenario noq upstream Delta CPU (avg/max)
large-single 5393.2 Mbps 8034.3 Mbps -32.9% 94.8% / 146.0%
medium-concurrent 5426.6 Mbps 7828.3 Mbps -30.7% 97.0% / 149.0%
medium-single 3351.8 Mbps 4632.8 Mbps -27.7% 88.4% / 96.5%
small-concurrent 3647.7 Mbps 5393.6 Mbps -32.4% 93.9% / 103.0%
small-single 3347.8 Mbps 4797.4 Mbps -30.2% 93.7% / 102.0%

Netsim Benchmarks (network simulation)

Condition noq upstream Delta
ideal 2968.0 Mbps 4106.3 Mbps -27.7%
lan 782.4 Mbps 824.3 Mbps -5.1%
lossy 69.8 Mbps 69.8 Mbps ~0%
wan 83.8 Mbps 83.8 Mbps ~0%

Summary

noq is 29.9% slower on average

@n0bot n0bot Bot added this to iroh Jul 1, 2026
@github-project-automation github-project-automation Bot moved this to 🚑 Needs Triage in iroh Jul 1, 2026
@flub
flub marked this pull request as ready for review July 1, 2026 12:10
@flub flub moved this from 🚑 Needs Triage to 👀 In review in iroh Jul 1, 2026

@matheus23 matheus23 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Having to bump the version number is great I think, but we should talk to whoever is doing the publishing (@dignifiedquire / @ramfox) to make sure this doesn't interfere with their flows/scripts.

It also means that you need to be just a tiny bit careful with patch.crates-io, where if your version bound on noq is too strict (e.g. noq = "<= 1.0"), you'll not get the patched version. But thinking through this I don't think this is the case for iroh.

@divagant-martian divagant-martian left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm in favor of the change but I don't think I'm the right person to check this

@flub
flub requested a review from ramfox July 2, 2026 09:45
@matheus23

Copy link
Copy Markdown
Member

Hm yeah the patchbay check now has exactly the patch.crates-io problem we were anticipating:

error: failed to select a version for `noq`.
    ... required by package `iroh-bench v1.0.2 (/root/actions-runner/_work/noq/noq/iroh/iroh/bench)`
versions that meet the requirements `^1.0.1` are: 1.0.1

all possible versions conflict with previously selected packages

  previously selected package `noq v1.1.0-alpha.0 (/root/actions-runner/_work/noq/noq/noq/noq)`
    ... which satisfies dependency `noq = "^1.1.0-alpha.0"` of package `iroh v1.0.2 (/root/actions-runner/_work/noq/noq/iroh/iroh)`
    ... which satisfies path dependency `iroh` (locked to 1.0.2) of package `iroh-bench v1.0.2 (/root/actions-runner/_work/noq/noq/iroh/iroh/bench)`

failed to select a version for `noq` which could resolve this conflict

@flub

flub commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author
  • ps://semver.org/#how-should-i-handle-deprecating-functionality

This problem will also occur if we bump directly to the next minor version instead of only to a pre-release I think.

@flub

flub commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author

Ok, update. We can't use pre-release versions since cargo gets very sad for patchbay when we do that. And it kind of becomes unpatchable. I've updated the description.

@flub

flub commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author
  • ps://semver.org/#how-should-i-handle-deprecating-functionality

This problem will also occur if we bump directly to the next minor version instead of only to a pre-release I think.

also, this occurred because this PR now bumps the version of all crates at the same time. and bumping noq-udp makes things break if it uses a pre-release.

@flub
flub added this pull request to the merge queue Jul 13, 2026
Merged via the queue into main with commit 9663986 Jul 13, 2026
39 checks passed
@flub
flub deleted the flub/semver-updates branch July 13, 2026 16:48
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in iroh Jul 13, 2026
Stanley00 pushed a commit to stanley-fork/iroh that referenced this pull request Jul 13, 2026
## Description

Now that 1.0 is stable we should run our semver checks against the
latest release, which is automatically found on crates.io. This also
means we can enable caching for it.

We do allow for adding deprecations, as per
https://semver.org/#how-should-i-handle-deprecating-functionality

## Breaking Changes

none

## Notes & open questions

- This matches the changes in noq:
n0-computer/noq#734

- When there's a semver change that requires a new minor version the
  check will fail. We will have to increment the version number in the
  PR that requires this from now on.

- iroh-dns-server didn't have the workspace lints enabled. I assume this
was an
oversight so added them. They are needed to pick up the semver config
from
the workspace Cargo.toml (there are some alternatives, but we want those
lints).
So this also fixes a few of the new lints and clippy warnings coming
with that,
  luckily not much noise.

## Change checklist

- [x] Self-review.
- [x] This PR was created by a human that thought critically about the
      proposed change and wrote an as clear and concise description as
      they could.
- [x] This PR isn't slop, and is carefully crafted to do have the
      intented effect.
git-blame-cat pushed a commit to git-blame-cat/iroh that referenced this pull request Nov 27, 2026
## Description

Now that 1.0 is stable we should run our semver checks against the
latest release, which is automatically found on crates.io. This also
means we can enable caching for it.

We do allow for adding deprecations, as per
https://semver.org/#how-should-i-handle-deprecating-functionality

## Breaking Changes

none

## Notes & open questions

- This matches the changes in noq:
n0-computer/noq#734

- When there's a semver change that requires a new minor version the
  check will fail. We will have to increment the version number in the
  PR that requires this from now on.

- iroh-dns-server didn't have the workspace lints enabled. I assume this
was an
oversight so added them. They are needed to pick up the semver config
from
the workspace Cargo.toml (there are some alternatives, but we want those
lints).
So this also fixes a few of the new lints and clippy warnings coming
with that,
  luckily not much noise.

## Change checklist

- [x] Self-review.
- [x] This PR was created by a human that thought critically about the
      proposed change and wrote an as clear and concise description as
      they could.
- [x] This PR isn't slop, and is carefully crafted to do have the
      intented effect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

4 participants