Skip to content

chore(deps): update actions/checkout digest to df4cb1c - #1322

Merged
kalbasit merged 1 commit into
mainfrom
renovate/actions-checkout-digest
Jun 4, 2026
Merged

kalbasit merged 1 commit into
mainfrom
renovate/actions-checkout-digest

Conversation

@renovate

@renovate renovate Bot commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
actions/checkout (changelog) action digest de0fac2 → df4cb1c

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM (* 0-3 * * *)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Jun 4, 2026
kalbasit added a commit that referenced this pull request Jun 4, 2026
## Summary

Fixes the flaky `TestCDCBackends/.../Mixed_Mode` failure seen in CI
(e.g. on #1322) — `error fetching the nar from the store: not found`.

The root cause is a TOCTOU race in the NAR read path. When a whole-file
NAR is served while CDC is enabled, `GetNar` triggers a **background**
NAR→chunks migration that deletes the whole file, then *synchronously*
serves from that same store. If the delete wins the race after
`serveNarFromStorageViaPipe` chose the store branch (`total_chunks`
still observed as `0`) but before `getNarFromStore` opens the file, the
read 404s — even though the NAR is fully available as chunks. In
production this surfaces as spurious 404s on freshly-migrated NARs.

Because the migration commits the chunks **before** deleting the whole
file, the NAR is always retrievable from chunks at that point. The fix:
when a store read returns `ErrNotFound` while CDC is enabled and the
request is uncompressed, fall back to `getNarFromChunks`.

- The chunk result is adopted **only on success**; if chunks are also
  absent, the original store `ErrNotFound` is preserved (genuine
  not-found semantics unchanged).
- Compressed requests are excluded — chunks are stored uncompressed, so
  a `.nar.xz` request keeps returning `ErrNotFound` and falls back
  upstream.

## Test plan

- [x] New deterministic regression test reproduces the race via a
  `narStore` wrapper (RED → GREEN; RED reproduced the exact CI error)
- [x] Added coverage for the compressed-request and genuinely-absent
  edges; documented the race in `testCDCMixedMode`
- [x] `TestCDCBackends` + new tests pass under `-race` (repeated runs)
- [x] `task fmt`, `task lint` (0 issues), `task test`, and full
  integration suite (`task test:auto`, real Postgres/MySQL/Redis) pass

## Spec

Adds the `cdc-chunking` requirement "Serving a whole-file NAR MUST be
resilient to a concurrent background migration" (4 scenarios), and
archives the OpenSpec change under
`openspec/changes/archive/2026-06-03-fix-flaky-cdc-mixed-mode-test/`.

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>
@renovate
renovate Bot force-pushed the renovate/actions-checkout-digest branch from 06a6290 to 58dfba2 Compare June 4, 2026 03:59
@kalbasit
kalbasit merged commit 5515c1a into main Jun 4, 2026
35 checks passed
@kalbasit
kalbasit deleted the renovate/actions-checkout-digest branch June 4, 2026 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant