Commit 14b621e
Fix the bench job's venv discovery and separate "no data" from "regression"
All six bench cells failed at "Create both environments" while every build
step, Windows included, succeeded. The cause was
PY=$(ls venv-$v/bin/python venv-$v/Scripts/python.exe 2>/dev/null | head -1)
GitHub runs `shell: bash` as `bash --noprofile --norc -eo pipefail`, so `set -e`
is active, and an assignment takes the exit status of its command substitution.
One of those two paths is always absent -- that is the whole point of listing
both -- so ls exits 2 and kills the step. Replaced with an explicit -x test at
both call sites.
Also stop conflating outcomes in compare.py. It exited 1 both when a benchmark
regressed and when no artifacts existed at all, so this run reported a
performance regression when what actually happened was that no benchmark ever
ran. It now always exits 0 and publishes status=ok|regressed|nodata through
GITHUB_OUTPUT, with the workflow failing on each for its own reason and its own
message. The report file is written unconditionally so the PR-comment step has
something to post either way.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 943969e commit 14b621e
2 files changed
Lines changed: 53 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
31 | 53 | | |
32 | 54 | | |
33 | 55 | | |
| |||
47 | 69 | | |
48 | 70 | | |
49 | 71 | | |
50 | | - | |
51 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
52 | 76 | | |
53 | 77 | | |
54 | 78 | | |
| |||
107 | 131 | | |
108 | 132 | | |
109 | 133 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
126 | 140 | | |
127 | 141 | | |
128 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
84 | 91 | | |
85 | 92 | | |
86 | 93 | | |
| |||
100 | 107 | | |
101 | 108 | | |
102 | 109 | | |
103 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
104 | 115 | | |
105 | 116 | | |
106 | 117 | | |
| |||
133 | 144 | | |
134 | 145 | | |
135 | 146 | | |
136 | | - | |
137 | 147 | | |
138 | 148 | | |
139 | 149 | | |
| |||
152 | 162 | | |
153 | 163 | | |
154 | 164 | | |
155 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
156 | 172 | | |
157 | | - | |
| 173 | + | |
158 | 174 | | |
0 commit comments