canary: profile the cmuxTests emit-module job (do not merge)
Canary, do not merge. Profiles the cmuxTests SwiftEmitModule job, which is 26 s of the 31 s a one-test-file rebuild costs once #14349 lands (canary #14249, run 36081880621).
After the admission compile, scripts/ci/canary-cmuxtests-emit-module.sh rebuilds cmux-unit in six series. Each series rebuilds cmuxTests with its own arguments, then makes two one-test-file body edits. Only cmuxTests' arguments change ($(X_$(TARGET_NAME))); every series records -stats-output-dir + -fine-grained-timers and long type-check warnings.
control: stats only, plus-debug-time-function-bodiesnoobjc:SWIFT_OBJC_INTERFACE_HEADER_NAME = ""on cmuxTests (nothing importscmuxTests-Swift.h)noabi:-Xfrontend -empty-abi-descriptorlean: both, plus-avoid-emit-module-source-infolazy: lean plus-experimental-lazy-typechecklegacy-merge:SWIFT_USE_INTEGRATED_DRIVER=NO+-no-emit-module-separatelyfor cmuxTests
๐ค Generated with Claude Code
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Canary, do not merge: profiles cmuxTests' SwiftEmitModule job, which is 26 s of the ~31 s a one-test-file rebuild costs once #14349 lands.
Probe
canary-cmuxtests-emit-module.shrebuilds cmuxTests in five series that each vary only its build flags, edits one test body, and rebuilds; every build appends per-task wall times and long type-check warnings to the job summary.nomoduleandnomodule-explicitdrop the separate emit-module job via-no-emit-module-separatelywith the integrated driver off;legacyadditionally drops the ObjC interface header;baseandlazykeep it.- The probe measures without
-stats-output-dirsince fine-grained timers double emit-module time, and verifies a no-module build cannot drop tests by enumerating the built bundle.
CI
- Pins the admission build job to a canary runner with a 240-minute timeout and uploads probe logs โ both must be reverted before merging.