Commit 5f9e1e3
authored
The "Node 22 test-runner spawn ENOENT" the verify-docs harness reported
was not a Node regression. The real chain:
1. `wheels new` exits 0 even when it cannot locate vendor/wheels/ (it
prints a red error, cleans up the partial scaffold, then returns 0).
2. `createFixture` saw exit 0 and returned the expected fixture path.
3. The next spawn used that path as `cwd`. Node's posix_spawn can't
chdir there, so it reports `spawn PROGRAM ENOENT` — pointing at the
program instead of the missing cwd, which read as a program-lookup
bug.
Changes:
- `createFixture` now stats the returned path. If `wheels new` exited 0
but didn't create the directory, throw immediately with the captured
stdout/stderr and a pointer to `WHEELS_FRAMEWORK_PATH`.
- Workflow sets `WHEELS_FRAMEWORK_PATH` to `${{ github.workspace }}/vendor/wheels`
so `wheels new` can find the framework in CI. Drops the Node 20 pin
and the Node 22 restore step — both were treating the symptom.
- VALIDATION.md documents the `WHEELS_FRAMEWORK_PATH` requirement for
local harness runs.
- Updates stale comments in exec.mjs that speculated about a Node 22
posix_spawn quirk.
The `wheels new` exit-0-on-error behavior is a separate upstream bug
(tracked elsewhere); catching the missing fixture dir makes the harness
robust to it in the meantime.
1 parent 43d1411 commit 5f9e1e3
4 files changed
Lines changed: 61 additions & 37 deletions
File tree
- .github/workflows
- web/sites/guides/scripts/verify-docs
- lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 73 | | |
88 | 74 | | |
89 | | - | |
90 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
91 | 83 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
97 | 87 | | |
| 88 | + | |
| 89 | + | |
98 | 90 | | |
99 | 91 | | |
100 | 92 | | |
101 | 93 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | 94 | | |
111 | 95 | | |
112 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
43 | 64 | | |
44 | 65 | | |
45 | 66 | | |
| |||
0 commit comments