Repository navigation
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This was referenced Oct 20, 2026
lokewate
force-pushed
the
feat/manifest-on-demand
branch
from
October 23, 2026 09:22
4a01b8c to
07c2adc
Compare
lokewate
changed the base branch from
feat/manifest-set
to
feat/manifest-explicit-versions
October 23, 2026 09:22
13 of 17 tasks
lokewate
marked this pull request as ready for review
October 23, 2026 09:57
mushrafmim
force-pushed
the
feat/manifest-on-demand
branch
from
October 24, 2026 19:20
5829350 to
e65710e
Compare
lokewate
force-pushed
the
feat/manifest-on-demand
branch
from
October 25, 2026 05:00
e65710e to
adc34a6
Compare
Replicas load their sets at different times, so a flow pinned by a replica that started after a manifest was published can run its next step on a replica that started before it. Set.Registry now loads a version above the highest it has, and GetExplicit probes for a newer manifest when no loaded one lists the version asked for. A probe fetches only up to the version asked for, so a broken later manifest cannot fail it, and holds no lock that lookups of loaded versions wait on. After a probe that fails or finds nothing it waits 10s before probing again, so retries of a pinned flow do not each cost a loader round trip. Current does not move until the set is reloaded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…elled probes Two edge cases in on-demand probing: - A caller waiting for another caller's probe could not give up: the probe lock was a sync.Mutex, held across loader round trips. With a loader that has no timeout of its own (the GitHub loader uses http.DefaultClient), a probe started without a deadline could block every waiter indefinitely. The lock is now a one-slot channel, and a waiter returns its context's error when its context ends. - A probe cut short by its caller's context (a browser closing during a static-data request) counted as "found nothing" and started the 10-second back-off for everyone, so a flow on a newly published manifest was told the version was unknown. A cancelled probe now leaves the back-off as it was, and GetExplicit reports the cancellation instead of ErrNotFound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mushrafmim
force-pushed
the
feat/manifest-on-demand
branch
from
October 26, 2026 14:38
adc34a6 to
2a498a2
Compare
mushrafmim
approved these changes
Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replicas load their artifact sets at different times. A flow started by a replica that loaded
manifest_v4.jsoncan run its next step on a replica that started before v4 was published. This PR makesSet.Registryload a version above the highest it has, instead of failing that step.Stack
Manifest versioning, in five PRs to review and merge in order. Each one builds and passes its tests on its own.
#320 (validate every artifact a manifest lists) and #321 (
manifestcheck) are parked: pinning doesn't need them, and a release job can bring validation back later.Type of Change
Changes Made
Set.Registryloads a missing newer version on demand.Currentdoes not move: a new manifest becomes current when the process reloads the set.muis taken only to read state and to install what a probe fetched.GetExplicitprobes the same way when no loaded manifest lists the version asked for, and reports a cancelled request as cancelled, not asErrNotFound.Testing
Run with
go test -race ./artifact/. The tests cover loading a manifest published after the set was loaded, a bad manifest found on demand (reported, not cached), a probe stopping at the version asked for, back-off after both empty and failed probes, a probe not blocking lookups of loaded versions, concurrentRegistrycalls, a pin still loading newer versions on demand,GetExplicitfinding a version only a newer manifest lists, a caller waiting behind a stuck probe giving up at its deadline, and a cancelled probe not starting the back-off. The last two fail without the fix (the first hangs).Checklist
Related Issues
Part of OpenNSW/one-trade-artifacts#243. Host: OpenNSW/nsw-srilanka#660.
Screenshots/Demo
N/A
🤖 Generated with Claude Code