Repository navigation
tools: wire-app-sources wires any target; guard cmuxUITests wiring - #15057
Conversation
cmuxUITests/SettingsComputersBehaviorUITests.swift (#4141fb41eaf lineage) has no project entries, so it has never been built or run; nothing checks cmuxUITests wiring in CI. #14838 lost its UI test the same way after a merge took main's project.pbxproj, and its PR run failed with "matched zero tests". - wire-app-sources.py takes --target and --dir (UI tests: cmuxUITests). - Wire SettingsComputersBehaviorUITests into cmuxUITests. - The CI guard lints cmuxUITests wiring like cmuxCLITests; the lint points every non-cmuxTests target at the script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The merge that took main's project.pbxproj also dropped SidebarCompactAgentStatusUITests from cmuxUITests, so the PR's ui-tests job matched zero tests. Carries #15057 (wire-app-sources --target, the cmuxUITests wiring guard) unchanged, which also wires main's orphaned SettingsComputersBehaviorUITests with the same ids. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
All contributors have signed the CLA ✍️ ✅ |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (6)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe source-wiring script now supports selecting a project directory and target. The project registers ChangesTest source wiring
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Merge Risk: ⚪ Minimal · up to The UI-test source is registered and its wiring is checked in CI. No identified issue prevents merging after normal checks. Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error, 1 warning)
✅ Passed checks (23 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 30.77% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 4 files. (2 skipped: 2 unsupported.) Full details: Cmux Algorithmic ComplexityExplanation The new generic batch path retains per-file full-project rescans in Resolution Add a batch wiring path that parses and indexes the project once, keeps a
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Merge receipt for |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
c5024fa tools: wire-app-sources finds --dir among the main group's children (manaflow-ai#15059) 2207bc8 tools: wire-app-sources wires any target; guard cmuxUITests wiring (manaflow-ai#15057) dc56eb7 ci: swift-package-tests through one lane script, opt-in build-fleet step (hq#794) (manaflow-ai#15042) bee385d Add an Accent Color setting and use one accent for cmux chrome (manaflow-ai#14988) # Conflicts: # .github/workflows/ci-guards.yml # .github/workflows/ci-macos.yml
Summary
cmuxUITests/SettingsComputersBehaviorUITests.swifthas no entries inproject.pbxproj, so it has never been built or run. Nothing in CI checkscmuxUITestswiring: the guard lintscmuxTests,cmuxCLITestsand the app sources, not UI tests.The same gap hit #14838: a merge that took main's
project.pbxprojdropped its UI test's entries. The PR'sui-testsjob then failed with "selected test filter ... matched zero tests", which points at the filter rather than the project.scripts/wire-app-sources.py(from tools: ui-lab renders view code in seconds; wire-app-sources.py #15049) takes--targetand--dir, so it wires UI tests too:scripts/wire-app-sources.py --target cmuxUITests --dir cmuxUITests. The defaults (cmux,Sources) are unchanged.SettingsComputersBehaviorUITests.swiftis wired intocmuxUITestswith it.lint-pbxproj-test-wiring.sh --target cmuxUITests --tests-dir cmuxUITests, next to thecmuxCLITestslines.cmuxTests, which keepssync-test-wiring, the lint's failure message now names the script instead of "add the four entries by hand".Testing
lint-pbxproj-test-wiring.sh --target cmuxUITests --tests-dir cmuxUITestsfailed on main with this file and passes after wiring. The default lint,check-pbxproj.shandtests/test_ci_pbxproj_app_sources_wiring.shpass.tests/test_wire_app_sources.pyadds a case: a file wired for another target lands in that target's Sources phase only. All 10 cases pass.SettingsComputersBehaviorUITestshas never compiled. This PR's macOS compile builds the UI test target, and I'm running the class once withdispatch-focused-test.py; results will be added here.Changelog
none
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes UI test files dropping out of the Xcode project so they never build or run, which previously surfaced in CI as a misleading "selected test filter matched zero tests" failure instead of revealing the missing project wiring.
wire-app-sources.pynow wires any target directory via--target/--dir; the defaults remaincmux/Sources.SettingsComputersBehaviorUITests.swiftintocmuxUITests; it had no project entries, so it was never built or run.cmuxUITestswiring, and the lint failure message points non-cmuxTeststargets at the script.Written for commit ac668e6. Summary will update on new commits.
Summary by CodeRabbit