Fix sort failure in badge creation when only one MATLAB version is tested#48
Merged
ehennestad merged 4 commits intomainfrom Mar 20, 2026
Merged
Fix sort failure in badge creation when only one MATLAB version is tested#48ehennestad merged 4 commits intomainfrom
ehennestad merged 4 commits intomainfrom
Conversation
Co-authored-by: ehennestad <17237719+ehennestad@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Investigate issue #46
Fix sort failure in badge creation when only one MATLAB version is tested
Mar 18, 2026
Contributor
Test Results21 tests 21 ✅ 24s ⏱️ Results for commit 3e7d4e0. ♻️ This comment has been updated with latest results. |
ehennestad
approved these changes
Mar 18, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #48 +/- ##
==========================================
- Coverage 42.26% 41.72% -0.55%
==========================================
Files 59 59
Lines 1455 1462 +7
==========================================
- Hits 615 610 -5
- Misses 840 852 +12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
When only one MATLAB release is present,
regexpon a scalar string returns the match directly (not in a cell), causing{:}indexing to extract individual characters.sortthen operates on a 6-element char array instead of a 1-element string, producing out-of-bounds indices for a 1-elementtestResultsListing.Changes
getReleaseNamesFromFolderPaths: PassfolderPathsthroughcellstr()beforeregexpto force cell array output regardless of input size; wrap result withstring()for consistent type:Sort alignment:
releaseNameswas not reordered alongsidetestResultsListing, causing mismatched release name/file pairs in the loop for multi-version runs. AddedreleaseNames = releaseNames(sortedIndices).Cleanup: Removed unused
folderNamesvariable and straydispcall.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.