Skip to content

Fix the package validation baseline and build vp9.net into the CLI - #1969

Merged
sipsorcery merged 1 commit into
masterfrom
fix/package-validation-baseline
Dec 4, 2026
Merged

sipsorcery merged 1 commit into
masterfrom
fix/package-validation-baseline

Conversation

@sipsorcery

Copy link
Copy Markdown
Member

Master has been red since the 10.0.21 version bump (41338bd). All four workflows (win-x64, linux-x64, osx-x64, examples-win-x64) fail at restore with:

error NU1102: Unable to find package SIPSorcery with version (= 10.0.21)
  - Found 166 version(s) in nuget.org [ Nearest version: 10.0.20-pre ]

Package validation baseline

The bump set PackageValidationBaselineVersion to 10.0.21, the version being built. Restore downloads the baseline package from nuget.org, so the baseline has to be a version that is already published.

  • The baseline is now 10.0.20-pre, the latest published package. A comment in the project file says to move the baseline up after a release is out, not in the commit that bumps <Version>.
  • Against 10.0.20-pre, package validation reports all 56 entries in CompatibilitySuppressions.xml as unnecessary, which is an error. All of them were breaks against the old 10.0.18-pre baseline that 10.0.20-pre already shipped with: the RTSP classes removed in Remove unmaintained RTSP classes. #1863, and the DTLS-SRTP (SharpSRTP) types, BouncyCastleExtensions and the DtlsSrtpTransport members made internal. The file's header says not to regenerate it wholesale, so I removed the entries by hand. The header stays, plus a short note on what was removed and why. The file's history keeps the reasoning for each entry.

vp9.net in the CLI

The same bump made SIPSorcery.Cli always reference SIPSorcery.VP9, but it deleted the IncludeVp9Net block, which was also the only place VP9NET was defined. So the tool shipped the VP9 assembly but compiled out the vp9.net video-bench stage, which answered "vp9.net is only in source builds… SIPSorcery.VP9 isn't packaged yet".

  • WebRtcVideoBenchCommand no longer has the #if VP9NET blocks or the not-built message, and the --encoder/--decoder help text is updated to match.
  • run-video-bench.ps1 no longer passes -p:IncludeVp9Net=true. -SkipVp9Net still leaves out the vp9.net columns. The benchmarks README and the root README are updated to match.

Testing

  • dotnet pack src/SIPSorcery/SIPSorcery.csproj -c Release: restore succeeds, package validation passes against 10.0.20-pre, and it produces SIPSorcery.10.0.21.nupkg.
  • dotnet build src/SIPSorcery.Cli -c Release: builds with no warnings.
  • sipsorcery webrtc video-bench --preset 360p --encoder vp9.net --codec vp9 --duration 6 --json: succeeds at 133.6 fps.
  • sipsorcery webrtc video-bench --preset 360p --decoder vp9.net --encoder vp9.net --codec vp9 --duration 4 --json: succeeds at 419.5 fps.

Not run locally: the unit tests and the examples build. They failed at the same restore step, so this PR's CI run will check them.

🤖 Generated with Claude Code

The 10.0.21 version bump set PackageValidationBaselineVersion to 10.0.21,
which isn't on nuget.org yet, so restore failed in every CI workflow
(NU1102). Validate against 10.0.20-pre, the latest published package, and
remove the 56 suppressions that baseline makes unnecessary: breaks
already shipped in 10.0.20-pre (the RTSP removal and the DTLS-SRTP types
made internal). The project file now notes that the baseline must be a
published version.

The bump also made the CLI always reference SIPSorcery.VP9 but dropped
the VP9NET define, so the vp9.net video-bench stage was compiled out.
Remove the VP9NET conditionals, and the IncludeVp9Net flag from the
benchmark script and READMEs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sipsorcery
sipsorcery merged commit d2b760d into master Dec 4, 2026
6 checks passed
@sipsorcery
sipsorcery deleted the fix/package-validation-baseline branch December 4, 2026 10:49
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