You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(install,test): exclude cowork from --target all + stabilize defer-start timer test (#1191)
* fix(install,test): exclude cowork from --target all + stabilize defer-start timer test
active_targets() for explicit_target='all' (project scope) was returning
KNOWN_TARGETS minus EXPLICIT_ONLY_TARGETS, which still includes the
experimental copilot-cowork target. Cowork is user-scope-only, so the
unconditional project-scope gate in phases/targets.py raised SystemExit
and aborted any 'apm install --target all' invocation. This made gh-aw
shared workflows that pin 'target: all' unusable (run 25511043293).
Excluding EXPERIMENTAL_TARGETS from the 'all' expansion matches the
documented contract on EXPERIMENTAL_TARGETS in core/target_detection.py
('NOT included in parse_target_arg("all") expansion -- explicit opt-in
only'). Updated three test_targets.py expectations and flipped
test_cowork_absent_from_all_when_flag_off, which previously asserted
the buggy behaviour with a misleading 'this is documented' comment.
Added a parallel test for the flag-on case.
Separately, test_install_over_defer_threshold_starts_live_once was
flaky on macOS x86_64 (run 25496089562) because it waited only 100ms
beyond _DEFER_SHOW_S before asserting the mocked _defer_start fired.
threading.Timer scheduling under parallel pytest-xdist load can slip
past that window. Joining tui._timer with a 2s timeout before the with
block exits makes the assertion deterministic.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* docs(changelog): backfill PR number #1191
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Daniel Meppiel <copilot-rework@github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
### Fixed
15
15
16
16
-`shared/apm.md` no longer wraps the `target` input in a `|| 'all'` fallback. The defensive expression broke gh-aw's bare-expression substitution regex, causing consumer-supplied `target:` values to be silently dropped; the `import-schema` default already covers the omitted-input case. (#1185)
17
+
-`apm install --target all` no longer enumerates the experimental `copilot-cowork` target, which was crashing project-scope installs with a "requires --global" error and made `gh aw` workflows that pin `target: all` unusable. (#1191)
18
+
- Stabilized `test_install_over_defer_threshold_starts_live_once` on slow CI runners by joining the deferred-start timer thread instead of relying on a 100ms grace window. (#1191)
0 commit comments