Skip to content

Add zizmor-http-cache - #2364

Draft
woodruffw wants to merge 1 commit into
mainfrom
ww/zizmor-httpcache
Draft

woodruffw wants to merge 1 commit into
mainfrom
ww/zizmor-httpcache

Conversation

@woodruffw

@woodruffw woodruffw commented Sep 4, 2026 •

Copy link
Copy Markdown
Member

WIP. This is essentially a wholesale lift of uv's httpcache (with attribution).

I'm not sure if I'll use this yet.

@woodruffw woodruffw added refactor Refactoring tasks internal labels Sep 4, 2026
Comment thread crates/zizmor/src/cli.rs
hide_default_value = true,
value_hint = ValueHint::DirPath
)]
pub(crate) cache_dir: Utf8PathBuf,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB probably need to retain this as a no-op for compatibility, or maybe re-consider adding back a FS caching backend.

token: GitHubToken,
base_client: ClientWithMiddleware,
api_client: ClientWithMiddleware,
ref_cache: MokaCache<String, Vec<RemoteHead>>,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this yet, maybe we should keep moka.

Comment thread docs/usage.md
```

## Caching between runs
## Caching within a run

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed and should become a doc stub.

@woodruffw woodruffw added the run-benchmarks Run benchmarks on this PR. label Sep 4, 2026
@codspeed

codspeed Bot commented Sep 4, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 25.05%

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

❌ 5 regressed benchmarks
✅ 2 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ test_zizmor_online_collect_workflows_fast_path 2.4 s 4.9 s -50.05%
❌ test_zizmor_offline_grafana_9f212d11d0 191.7 ms 235.7 ms -18.67%
❌ test_zizmor_startup 1.6 ms 2 ms -18.41%
❌ test_zizmor_online_gha_hazmat_da3c3cd 2 s 2.3 s -15.77%
❌ test_zizmor_help 1.9 ms 2.2 ms -15.27%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing ww/zizmor-httpcache (75809c1) with main (4cdfcca)

Open in CodSpeed

@woodruffw

Copy link
Copy Markdown
Member Author

I think these perf numbers are unreliable.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal refactor Refactoring tasks run-benchmarks Run benchmarks on this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant