Commit 3fab731
fix(eng): trigger all emitter CI on any pnpm-workspace.yaml change (Azure#5059)
Fixes Azure#5010.
## Problem
`@typespec/http-client-python` is not a workspace package — it is
consumed from npm through the pnpm **catalog**, so bumping it only edits
the root `pnpm-workspace.yaml`.
pnpm attributes root-file changes to the **root package only**, so `pnpm
--filter "...[base]"` reports no affected emitter and `detect-affected`
returns `python: false`. That is why Azure#5009 ran no Python CI.
## Fix
Add `pnpm-workspace.yaml` to `sharedExtra`, so any change to it triggers
every emitter target — the same treatment the `core` submodule pointer
already gets.
The file changes rarely and always affects dependency resolution
repo-wide, so this is deliberately blunt rather than trying to work out
which catalog entry moved.
## Verification
Simulated the Azure#5009 diff locally with `BASE_SHA=origin/main`:
```
Affected targets: {"python":true,"java":true,"typescript":true,"go":true}
```
Plus a unit test in `eng/scripts/detect-affected.test.ts`.
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 19d6a84d-f603-41ee-8377-6dfb7e6613911 parent 6e9b765 commit 3fab731
3 files changed
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
99 | 109 | | |
100 | 110 | | |
101 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | 34 | | |
26 | 35 | | |
| |||
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
38 | | - | |
| 47 | + | |
39 | 48 | | |
40 | 49 | | |
41 | 50 | | |
| |||
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
82 | | - | |
| 91 | + | |
| 92 | + | |
83 | 93 | | |
84 | 94 | | |
85 | 95 | | |
| |||
0 commit comments