-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix muxer version handling to use runtime versions instead of SDK versions #51971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+313
−176
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
452ee7b
Initial plan
Copilot 32e7fc2
Fix muxer version handling to compare file versions instead of SDK ve…
Copilot 7b7cd50
Add missing using statement for Xunit.Abstractions
Copilot 665d370
Replace unit tests with integration tests in LibraryTests
Copilot 0c5e201
Support muxer version detection on Linux/Mac using runtime versions
Copilot f16e380
Refactor muxer handling to use runtime version for all platforms
Copilot 39a5412
Remove try-catch blocks and update tests to check muxer file directly
Copilot c8647dc
Remove GetRuntimeVersionFromArchive and add FileVersionInfo checks in…
Copilot 3a81ab6
Fix muxer version comparison to check if runtime version changed
Copilot 5d66e54
Assert file versions are not null on Windows instead of skipping
Copilot 1c467b5
Add exception handling and RAII cleanup for muxer temp file
Copilot a5b5556
Apply code review feedback
dsplaisted File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove GetRuntimeVersionFromArchive and add FileVersionInfo checks in…
… tests - Remove GetRuntimeVersionFromArchive and helper methods (DecompressTarGzToTemp, GetRuntimeVersionFromZipEntries, GetRuntimeVersionFromTarEntries) - Use GetLatestRuntimeVersionFromInstallRoot for version comparison after extraction - Add FileVersionInfo checks in tests on Windows to verify muxer version upgrades/downgrades - Add GetMuxerFileVersion helper method in tests - Add using statements for System.Diagnostics and System.Runtime.InteropServices Note: Test MuxerIsNotDowngraded_WhenInstallingOlderSdk now fails because when both runtime 9.0 and 10.0 are present after installing SDK 9.0, GetLatestRuntimeVersionFromInstallRoot returns 10.0 for both existingMuxerVersion and newMuxerVersion, causing the condition (newMuxerVersion < existingMuxerVersion) to be false, so the 9.0 muxer is kept instead of restoring the 10.0 muxer. Co-authored-by: dsplaisted <[email protected]>
- Loading branch information
commit c8647dc3705ce1cac4930ebb3c99130701d3ee8e
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's assert that on Windows the file version before and after the upgrade should not be null, instead of skipping the test if they are null.
Same thing for the other test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Changed both tests to assert that file versions are not null on Windows instead of skipping the assertions:
fileVersionAfterSdk9.Should().NotBeNull()andfileVersionAfterSdk10.Should().NotBeNull()assertions&& fileVersionAfterSdk9 != null && fileVersionAfterSdk10 != null)Commit: 5d66e54