Repository navigation
Fix the package validation baseline and build vp9.net into the CLI - #1969
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Package validation baseline
The bump set
PackageValidationBaselineVersionto10.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.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>.CompatibilitySuppressions.xmlas 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,BouncyCastleExtensionsand theDtlsSrtpTransportmembers 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.Clialways referenceSIPSorcery.VP9, but it deleted theIncludeVp9Netblock, which was also the only placeVP9NETwas defined. So the tool shipped the VP9 assembly but compiled out thevp9.netvideo-bench stage, which answered "vp9.net is only in source builds… SIPSorcery.VP9 isn't packaged yet".WebRtcVideoBenchCommandno longer has the#if VP9NETblocks or the not-built message, and the--encoder/--decoderhelp text is updated to match.run-video-bench.ps1no longer passes-p:IncludeVp9Net=true.-SkipVp9Netstill 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 producesSIPSorcery.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