Skip to content

CI: pin OpenSSL artifact directory mtimes too (openssl-sys cache, follow-up to #14971)#14972

Merged
reaperhulk merged 2 commits into
mainfrom
claude/magical-hopper-1R1Vj-ossl-dir-mtimes
Jun 7, 2026
Merged

CI: pin OpenSSL artifact directory mtimes too (openssl-sys cache, follow-up to #14971)#14972
reaperhulk merged 2 commits into
mainfrom
claude/magical-hopper-1R1Vj-ossl-dir-mtimes

Conversation

@alex
Copy link
Copy Markdown
Member

@alex alex commented Jun 7, 2026

What

Follow-up to #14971: pin directory mtimes too, not just files.

Why

The first CI run with #14971 showed the pin step working (pinned 386 files in C:/openssl-win64 to 2026-05-29T00:46:07Z) but Compiling openssl-sys v0.9.116 still appearing in the windows logs. The reason: cargo's rerun-if-changed on a directory stats the directories themselves as well as the files within (that's how it notices file deletions — a removed file leaves no mtime behind, but the parent directory's mtime changes). Extraction recreates the directory tree with fresh mtimes every run, so the fingerprint stayed dirty.

With directories pinned to the artifact's created_at alongside the files, everything cargo stats under the include dir predates the cached fingerprint, and openssl-sys should finally stay cached. Verifiable on this PR's first run: the windows/macos job logs should no longer contain Compiling openssl-sys.

https://claude.ai/code/session_014StKTjk7GBcVdiWKimEsQb


Generated by Claude Code

claude added 2 commits June 7, 2026 15:02
cargo's rerun-if-changed on a directory also stats the directories
themselves (that's how it detects file deletions), and extraction
recreates them with fresh mtimes on every run. With only file mtimes
pinned, openssl-sys still recompiled on every Windows/macOS run, as
the first CI run with the previous change showed.

https://claude.ai/code/session_014StKTjk7GBcVdiWKimEsQb
@reaperhulk reaperhulk merged commit ba8589e into main Jun 7, 2026
63 checks passed
@reaperhulk reaperhulk deleted the claude/magical-hopper-1R1Vj-ossl-dir-mtimes branch June 7, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants