Hi there! I think this is the right repo to file this against, but apologies if not.
I'm using Codspeed (it's great, thank you!) to do some benchmarking of zizmor. I recently tried to enable some online benchmarks in CI, but was met with this uncaught error, causing a panic:
============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-9.0.2, pluggy-1.6.0
codspeed: 4.2.0 (enabled, mode: walltime, callgraph: enabled, timer_resolution: 1.0ns)
rootdir: /home/runner/work/zizmor/zizmor
configfile: pyproject.toml
plugins: codspeed-4.2.0
collected 7 items
bench/test_bench_basic.py .. [ 28%]
bench/test_bench_offline.py .. [ 57%]
bench/test_bench_online.py ... [100%]
Benchmark Results
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━┳━━━━━━━┳━━━━━━┓
┃ ┃ Time ┃ Rel. ┃ Run ┃ ┃
┃ Benchmark ┃ (bes… ┃ Std… ┃ time ┃ Ite… ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━╇━━━━━━━╇━━━━━━┩
│ test_zizmor_startup │ 2,42… │ 6.7% │ 3.02s │ 1,0… │
│ test_zizmor_help │ 2,69… │ 5.8% │ 3.02s │ 1,0… │
│ test_zizmor_offline_grafana_9f212d11d0 │ 350,… │ 1.1% │ 2.87s │ 8 │
│ test_zizmor_offline_cpython_48f88310044c │ 122,… │ 1.3% │ 2.91s │ 23 │
│ test_zizmor_online_gha_hazmat_da3c3cd │ 176,… │ 0.0% │ 17.6… │ 10 │
│ test_zizmor_online_cpython_48f88310044c │ 275,… │ 0.0% │ 27.6… │ 10 │
│ test_zizmor_online_collect_workflows_fast_path │ 196,… │ 0.0% │ 19.6… │ 10 │
└────────────────────────────────────────────────┴───────┴──────┴───────┴──────┘
================================ 7 benchmarked =================================
======================== 7 passed in 229.89s (0:03:49) =========================
thread 'main' panicked at src/executor/wall_time/perf/parse_perf_file.rs:68:70:
called `Result::unwrap()` on an `Err` value: InvalidPerfEventSize
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Process completed with exit code 101.
I don't know the Linux perf subsystem super well, but this suggests a mismatch between that the perf event header actually contains and what Codspeed expected.
Full workflow run here: https://github.com/zizmorcore/zizmor/actions/runs/24426548664/job/71361672276?pr=1912
Some other potentially relevant bits:
- Running on
ubuntu-latest on GitHub Actions, which is 24.04 at the moment
- According to GitHub's docs,
ubuntu-latest is also kernel 6.17.0-1010-azure
- Actions runner version is
2.333.1
Suspiciously, it looks like GitHub also bumped the kernel version recently (~12 hours ago): actions/runner-images@d8fb498 -- the bump appears to be a build number however and not an actual kernel version change, so that may be a red herring.
Hi there! I think this is the right repo to file this against, but apologies if not.
I'm using Codspeed (it's great, thank you!) to do some benchmarking of zizmor. I recently tried to enable some online benchmarks in CI, but was met with this uncaught error, causing a panic:
I don't know the Linux perf subsystem super well, but this suggests a mismatch between that the perf event header actually contains and what Codspeed expected.
Full workflow run here: https://github.com/zizmorcore/zizmor/actions/runs/24426548664/job/71361672276?pr=1912
Some other potentially relevant bits:
ubuntu-lateston GitHub Actions, which is24.04at the momentubuntu-latestis also kernel6.17.0-1010-azure2.333.1Suspiciously, it looks like GitHub also bumped the kernel version recently (~12 hours ago): actions/runner-images@d8fb498 -- the bump appears to be a build number however and not an actual kernel version change, so that may be a red herring.