Commit 2530164
Address second-round PR review feedback
Make _inject_bdn_extensions idempotent
- Re-running the scenario locally (or retry on the same checkout) used
to append a fresh ItemGroup with Label="PerfLabInjected" and a fresh
ProjectReference to BDN.Extensions every time, leaving stale entries
that produce duplicate-reference build errors.
- Now the helper removes any prior PerfLabInjected ItemGroups before
inserting the new one, so the patched csproj converges on a single
injected ItemGroup regardless of how many times the scenario runs.
Forward unknown args to BenchmarkDotNet
- --bdn-args was declared with nargs='*', which argparse will not
populate with values that start with '--'. The flag was effectively
unusable for forwarding BDN options.
- Drop --bdn-args entirely and switch parse_args() to
parser.parse_known_args(), so any unrecognized arguments (filters,
iteration counts, etc.) flow straight through to BenchmarkDotNet.
- Documented in the parser epilog.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent dc9ad8d commit 2530164
2 files changed
Lines changed: 28 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
255 | 258 | | |
256 | 259 | | |
257 | 260 | | |
258 | 261 | | |
259 | | - | |
260 | | - | |
261 | 262 | | |
262 | 263 | | |
263 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
264 | 268 | | |
265 | 269 | | |
266 | 270 | | |
267 | 271 | | |
268 | | - | |
| 272 | + | |
269 | 273 | | |
270 | 274 | | |
271 | 275 | | |
| |||
284 | 288 | | |
285 | 289 | | |
286 | 290 | | |
287 | | - | |
288 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
289 | 294 | | |
290 | 295 | | |
291 | 296 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
168 | 174 | | |
169 | 175 | | |
170 | 176 | | |
| |||
178 | 184 | | |
179 | 185 | | |
180 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
181 | 196 | | |
182 | 197 | | |
183 | 198 | | |
| |||
0 commit comments