|
69 | 69 | )
|
70 | 70 |
|
71 | 71 | parser.add_argument(
|
72 |
| - "--ci-bench", |
73 |
| - action=argparse.BooleanOptionalAction, |
74 |
| - default=False, |
75 |
| - help="Run the benchmarking script that is run in CI (default is --no-ci-bench)", |
| 72 | + "--ci-bench", |
| 73 | + action=argparse.BooleanOptionalAction, |
| 74 | + default=False, |
| 75 | + help="Run the benchmarking script that is run in CI (default is --no-ci-bench)", |
76 | 76 | )
|
77 | 77 |
|
78 | 78 | args = parser.parse_args()
|
@@ -304,25 +304,46 @@ def run_python_integration_tests(cwd, interpreter):
|
304 | 304 | def run_ci_historic_benchmark():
|
305 | 305 | branch = "main"
|
306 | 306 | output = subprocess.check_output(
|
307 |
| - ["git", "rev-list", "--since=1 week ago", "--pretty=format:%ad__%h", "--date=short", branch] |
| 307 | + [ |
| 308 | + "git", |
| 309 | + "rev-list", |
| 310 | + "--since=1 week ago", |
| 311 | + "--pretty=format:%ad__%h", |
| 312 | + "--date=short", |
| 313 | + branch, |
| 314 | + ] |
308 | 315 | ).decode("utf-8")
|
309 |
| - print('\n'.join([line for i, line in enumerate(output.split('\n')) if i % 2 == 1])) |
| 316 | + print("\n".join([line for i, line in enumerate(output.split("\n")) if i % 2 == 1])) |
310 | 317 |
|
311 | 318 | output = subprocess.check_output(
|
312 |
| - ["git", "rev-list", "--since=1 week ago", "--pretty=format:%ad__%h", "--date=short", branch] |
| 319 | + [ |
| 320 | + "git", |
| 321 | + "rev-list", |
| 322 | + "--since=1 week ago", |
| 323 | + "--pretty=format:%ad__%h", |
| 324 | + "--date=short", |
| 325 | + branch, |
| 326 | + ] |
313 | 327 | ).decode("utf-8")
|
314 |
| - date_and_commits = [line for i, line in enumerate(output.split('\n')) if i % 2 == 1] |
| 328 | + date_and_commits = [line for i, line in enumerate(output.split("\n")) if i % 2 == 1] |
315 | 329 |
|
316 | 330 | for date_and_commit in date_and_commits:
|
317 | 331 | print("benching commit", date_and_commit)
|
318 | 332 | result = subprocess.run(
|
319 |
| - ["cargo", "criterion", "--message-format=json", "--history-id", date_and_commit], |
| 333 | + [ |
| 334 | + "cargo", |
| 335 | + "criterion", |
| 336 | + "--message-format=json", |
| 337 | + "--history-id", |
| 338 | + date_and_commit, |
| 339 | + ], |
320 | 340 | capture_output=True,
|
321 |
| - text=True |
| 341 | + text=True, |
322 | 342 | )
|
323 | 343 | with open(f"{date_and_commit}.json", "w") as f:
|
324 | 344 | f.write(result.stdout)
|
325 | 345 |
|
| 346 | + |
326 | 347 | if build_pip:
|
327 | 348 | step_start("Building the pip package")
|
328 | 349 |
|
@@ -388,11 +409,6 @@ def run_ci_historic_benchmark():
|
388 | 409 | subprocess.run(npm_args, check=True, text=True, cwd=circuit_vis_src)
|
389 | 410 | step_end()
|
390 | 411 |
|
391 |
| - if run_tests: |
392 |
| - step_start("Running the circuit_vis tests") |
393 |
| - subprocess.run([npm_cmd, "test"], check=True, text=True, cwd=circuit_vis_src) |
394 |
| - step_end() |
395 |
| - |
396 | 412 | if build_npm:
|
397 | 413 | step_start("Building the npm package")
|
398 | 414 | # Copy the wasm build files over for web and node targets
|
|
0 commit comments