Repository navigation
Description
Summary
When a pipeline accumulates issues into an open (versionless) release across several bare sync runs over time, then a final sync --release-version <tag> + complete is run to ship it, the completed release keeps only the issues that were synced earliest; issues that were synced into the open release later (but whose commits are still ancestors of the tag) are moved into a new release that complete auto-opens.
The CLI scans and submits the correct, complete issue set. The mis-distribution happens after submission, so this looks like a server-side (releaseSyncByAccessKey / releaseCompleteByAccessKey) attribution bug rather than a scanning bug — but it's reproducible purely through the documented CLI flow, so filing here.
Environment
- CLI: v0.14.1 (also reviewed v0.14.2 — PR Ignore branch-ref decorations on merge commits when extracting issue keys #108 addresses the inverse over-attribution case and does not change this).
- CI: one job per push runs bare
sync(accumulate into the open release); a separate tag-triggered job runssync --release-version <tag>→update --stage production→complete. fetch-depth: 0, GitHub merge-commit workflow. Path filter configured on the pipeline (no--include-pathspassed).- HEAD at the
completestep is a merge commit (the version-bump PR merge).
Steps to reproduce
-
Complete a release
R0at commitC0(this becomes the scan baseline). -
Over time, run bare
syncseveral times as commits land on the main branch. Each scansC0..HEADand accumulates issues into one open, versionless releaseRopen. Critically, do this across multiple separate sync runs so issues are attached at different times — e.g.ACME-1synced on day 1,ACME-2synced on day 3. -
Cut the release: at a merge-commit HEAD
Ctag(withACME-1andACME-2both ancestors ofCtag), run:linear-release sync --release-version v1.2.3 --name v1.2.3 linear-release update --stage production --release-version v1.2.3 linear-release complete --release-version v1.2.3
Expected
v1.2.3 (completed) contains both ACME-1 and ACME-2 (both are in C0..Ctag). The next open release is empty.
Actual
v1.2.3 (completed) contains only ACME-1 (the earliest-synced). ACME-2 (the later-synced) is moved into a new open release that complete auto-creates. The split boundary tracks when each issue was first synced into the open release, not git ancestry.
Observed across five pipelines simultaneously in one cut (each driven independently), so it is deterministic, not a race. In our incident the completed release and the new release were created ~0.4 s apart within the single complete invocation; no other job was touching the pipeline.
Why this looks server-side (not a scan bug)
Tracing the v0.14.1 binary for the complete/prod path:
getScanBase→findBaseShaselects the most recent release with a non-nullcommitShathat is a git ancestor of HEAD (open releases havecommitSha: nulland are skipped). So the scan base is correctlyC0.- The scan range is
C0..Ctag(fromSha !== toSha, soinspectingSingleCommitis false). BothACME-1andACME-2are extracted. syncReleasesubmitsreleaseSyncByAccessKey(input: { name, version, commitSha: <HEAD>, issueReferences: [ACME-1, ACME-2], ... })— i.e. the full correct set, with no per-issue range/baseline data and no base-ref field.
So the client sends both issues attached to v1.2.3. The server nonetheless ends up with ACME-2 on a separate, newly-created release after complete. That strongly implies the distribution/complete logic in the backend re-derives release membership from pre-existing open-release state (when each issue was first attached) rather than from the submitted issueReferences + commitSha.
Impact
Completed production releases under-report shipped issues; the spilled issues appear to ship in a later release than they actually did. For teams using release completion to drive issue status automation, this mis-attributes ship tracking.
Not a duplicate of
--include-pathsover-attributes issues from stale-branch merges (follow-up to #62) #102 / Ignore branch-ref decorations on merge commits when extracting issue keys #108 — those are over-attribution (an extra/wrong key attached). This is the inverse: a correct key removed from the release it belongs to.- Release sync misses issues linked in PR body when deployed commit message lacks PR or issue metadata #100 — that is issues missing due to absent PR/issue metadata. Here the metadata is present and the issue is scanned; it's just placed on the wrong release.
Workaround
Manually move the spilled issues back via issueToReleaseCreate / issueToReleaseDeleteByIssueAndRelease after completion.
Happy to provide a sanitized GraphQL trace of the release states before/after complete if useful.
Activity
linear-code commentedon Jun 17, 2026
LIN-75828
RomainCscn commentedon Jun 24, 2026
Thanks for the detailed write-up. I think the root cause is different from sync-time attribution. What you're hitting is rollover, which is expected behavior for scheduled pipelines.
What rollover does: when a release is completed, Linear looks at each issue on it and asks one thing: is this issue in a closed state (Done/Canceled/Duplicate)? Closed issues stay on the completed release; any non-closed issue is moved to the next started release (creating one if none exists). That's the new release you saw appear ~0.4s into complete.
Rollover is meant to be paired with a release-completion status automation that marks shipped issues as Done at completion: those then stay, and only genuinely-unfinished work rolls forward. If no such automation is configured (or it didn't fire for the spilled issue), everything not already closed rolls over.