Repository navigation
Load the mascot symbols from CodevisorUI in their weight test - #1519
Merged
Merged
Conversation
#1513 gave CodevisorUITests its own resources (Fixtures), so the test target now has its own Bundle.module. The mascot symbol test's `bundle: .module` stopped meaning CodevisorUI's bundle and looked the symbols up in the test bundle, which has none, failing checks-swift on every merge since. The apps were never affected: CodevisorSymbol loads from CodevisorUI's own bundle, which still has all four symbols. The test now draws each symbol through CodevisorSymbol.nsImage, the same lookup the app uses. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Main's Build has failed in
ci / checks-swifton every merge since #1513, so no Alpha has gone out. The only failure is the "Mascot symbols" test, for all four symbols.Cause: #1513 added
resources: [.copy("Fixtures")]to theCodevisorUITeststarget. That gives the test target its ownBundle.module, which takes precedence over theBundle.moduleit got from CodevisorUI through@testable import. SoNSImage(symbolName:bundle: .module, …)in the test began searchingCodevisorKit_CodevisorUITests.bundle, which only contains the fixtures. The.copy("Resources/BotMascotArt")change wasn't involved.Apps: not affected.
CodevisorSymbolloads symbols from CodevisorUI's ownBundle.module, and the built Mac and iOS apps'CodevisorKit_CodevisorUI.bundlestill hasmascot,mascot.fill,mascot.badge.plusandmascot.fill.badge.plus(checked withassetutil).Fix: the test now gets each symbol through
CodevisorSymbol.nsImage(pointSize:), the same lookup the app uses.Verification:
node scripts/test-swift.mjsbefore the fix: the same 4 failures as CI, and nothing else failed.node scripts/check.mjs --all --lanes=swift-style,swiftafter the fix: format, lint and all Swift tests pass, including the mascot suite (4/4) and the 634-test run.🤖 Generated with Claude Code