Skip to content

No-op: Build badges already present on main - #4

Closed
zackees with Copilot wants to merge 1 commit into
copilot/add-badges-to-readmefrom
copilot/resume-timed-out-session
Closed

zackees with Copilot wants to merge 1 commit into
copilot/add-badges-to-readmefrom
copilot/resume-timed-out-session

Conversation

Copilot AI commented Mar 26, 2026 •

Copy link
Copy Markdown
Contributor

The original PR #3 requested adding per-platform CI badges (Linux, macOS, Windows) to the README. The previous agent timed out before reporting completion.

Investigation confirms no changes are needed — the badges and backing workflows already exist on main:

  • README.md (lines 3–5): Badge markdown for Linux, macOS, Windows linking to their respective workflow pages
  • Workflows: ci-linux.yml, ci-macos.yml, ci-windows.yml each call the reusable ci-check.yml with the appropriate os input
  • All three workflows are active and triggering on push/PR to main

This was shipped in prior commits (notably 262616b). Closing as already complete.

Original prompt

Pull Request: #3

The agent timed out, resume or create a new one


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Resume timed out session for agent No-op: Build badges already present on main Mar 26, 2026
Copilot AI requested a review from zackees March 26, 2026 15:32
@zackees zackees closed this Mar 26, 2026
zackees added a commit that referenced this pull request Jun 26, 2026
…oduct (#925) (#928)

Two changes addressing zccache#925 (soldr#977 open question #4):

1. Stability documentation on `HostIdentity`. Each of the three fields
   (`product`, `instance_id`, `workspace_id`) has a different stability
   contract; today the doc-comment is one line that doesn't explain any
   of them. A new table-form doc-block spells out:
   - What each field controls (per #919: `current_backend_identity` is
     keyed on the synthesized endpoint which embeds all three).
   - The recommended stability for embedded hosts.
   - What breaks if the contract is violated (e.g. instance_id churning
     per restart re-pays the SHA-256 plateau PR #919 fixed).

2. `HostIdentity::default_for_product(product)` helper. Returns a
   `HostIdentity` whose `instance_id` is stable across daemon restarts
   on the same machine + same install. The hash mixes:
   - The product string (so two products in the same process get
     different ids even when they share an exe — soldr + fbuild
     embedding simultaneously is a real scenario).
   - A version-tagged domain separator (`zccache-host-identity-v1`).
   - `std::env::current_exe()` (so the same install on the same machine
     yields the same id across restarts).

   `workspace_id` is set equal to `instance_id` — the no-op single-
   namespace form, matching the type-level doc's recommended default
   until the per-compile migration lands.

   Falls back to a product-only hash if `current_exe` is unavailable
   rather than panicking — better degradation in a host daemon.

What's NOT in this PR: moving `workspace_id` to `CompileRequest`. That
is a bigger API change (it needs `CompileRequest` to carry it) and is
deferred to a follow-up. The docs explicitly call it out as a planned
future change so callers can pre-emptively keep workspace_id = instance_id
today and get a free upgrade later.

Tests:
- `default_for_product_is_stable_within_one_process`
- `default_for_product_differs_per_product`
- `default_for_product_instance_id_is_16_bytes_of_hex` (locks the hex
  format because `embedded_endpoint` prints it on the diagnostic surface)

Closes #925.

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
zackees added a commit that referenced this pull request Jul 11, 2026
…1044) (#1045)

* fix(daemon-core): address COW materialization follow-up findings (#1042)

Fixes 4 of the 5 confirmed correctness bugs and the confirmed test-coverage
regression from the post-merge review of #1040 (issue #1042):

- artifact_io.rs: write the digest sidecar for a blob's final name *before*
  the publishing rename, not after — a digest-write failure can no longer
  leave an orphaned, undigested blob visible in the cache (finding #1).
- artifact_io.rs: persist_artifact_file tries a hardlink before falling
  back to a full copy, restoring the STORE-direction fast path that
  commit 49dd59c dropped when it switched to reflink-then-copy
  (finding #4/#5). break_output_hardlink_before_compile already
  unconditionally detaches any shared alias (OS link-count based, not
  registry-based) before a compiler writes to that path again, so sharing
  an inode with the freshly-compiled source is safe.
- link_registry.rs / write_cached.rs: commit_hardlink_registration no
  longer marks a blob suspect on a merely-unresolvable output identity
  (only on a genuine identity mismatch), and a commit failure now falls
  back to a copy the same way a failed std::fs::hard_link already does,
  instead of hard-failing the whole materialization (finding #3).
- fs_caps.rs: cap the per-volume-pair capability cache at 4096 entries,
  clearing it wholesale when exceeded — a cheap, self-correcting bound on
  the previously-unbounded growth (finding #6, PLAUSIBLE/low severity).
- tests/write_cached.rs: restored deterministic hardlink-tier assertions
  in 4 tests (including the issue #197 poisoning regression test) that had
  been weakened to silently skip their actual invariant when the hardlink
  tier wasn't taken (finding #5).

Finding #2 (evicting valid pre-existing/pre-#1039 blobs with no digest
sidecar) was investigated but NOT fixed as originally scoped: a first
attempt trusted any digest-less blob with hardlink_count <= 1, but that
heuristic is unsound — a since-deleted alias could have poisoned the blob
before being removed, and link count only reflects the present, not
whether a risky mutation window existed in the past. This was caught by
the existing failed_restart_eviction_restores_readonly_and_retries_after_alias_delete
regression test. Reverted to the original conservative eviction. Finding
#1's fix already eliminates the primary real-world trigger (a
freshly-persisted blob can no longer become visible without its digest);
the remaining cost is a one-time cache miss for blobs written by a
pre-#1039 zccache version on upgrade, which is the safer trade-off.

Added regression tests for findings #1, #3, #4, and the reverted-#2
investigation. Local: 434/434 zccache-daemon-core unit tests pass on
Windows; Docker Linux validation pending.

* fix: harden COW persistence and parallelize rust-plan restore

Closes #1042\nCloses #1044

* style: format COW and restore changes

* fix: preserve compiler output writability on store hardlinks

* test: allow shared inode store fast path

* fix: migrate legacy COW blob digests

Closes #1046

* test: skip hardlink-only cases on unsupported filesystems
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.

2 participants