Skip to content

various: publish cached closure narinfos in cache loop#127

Open
amaanq wants to merge 2 commits into
mainfrom
cache-closure-narinfos
Open

various: publish cached closure narinfos in cache loop#127
amaanq wants to merge 2 commits into
mainfrom
cache-closure-narinfos

Conversation

@amaanq

@amaanq amaanq commented Jun 24, 2026

Copy link
Copy Markdown
Member

Cached builds that reused an existing output only published narinfos for the primary output, so clients could miss dependencies from the project cache.

Publish signed narinfos for the whole closure, keep project ownership separate for shared store paths, and move recursive lookup and signing out of the scheduler loop.

@amaanq amaanq force-pushed the cache-closure-narinfos branch 2 times, most recently from 558242d to 9f713ce Compare June 24, 2026 20:39

@NotAShelf NotAShelf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Left some comments. Some of them are just a little bit speculative but I'd like to catch things before they explode.

Comment thread crates/common/src/repo/narinfo_cache.rs
Comment thread crates/server/src/routes/cache.rs
Comment thread crates/server/src/routes/cache.rs
Comment thread crates/queue-runner/src/runner_loop.rs
@amaanq amaanq force-pushed the cache-closure-narinfos branch 3 times, most recently from 70f9208 to efdd4ba Compare June 28, 2026 01:23
pieter0101 and others added 2 commits June 27, 2026 21:41
Cached builds that reused an existing output only published narinfos
for the primary output, so clients could miss dependencies from the
project cache.

Publish signed narinfos for the whole closure, keep project ownership
separate for shared store paths, and move recursive lookup and signing
out of the scheduler loop.

Co-authored-by: Amaan Qureshi <git@amaanq.com>
@amaanq amaanq force-pushed the cache-closure-narinfos branch from efdd4ba to c179dda Compare June 28, 2026 01:42
@amaanq amaanq requested a review from NotAShelf June 28, 2026 01:42
@NotAShelf

Copy link
Copy Markdown
Member

CI is still failing and there are file conflicts

@NotAShelf NotAShelf changed the title cache: publish cached closure narinfos various: publish cached closure narinfos in cache loop Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants