Skip to content

[PR] ci(backport): rich receipt on the PR — picked commits, train links, ship pointer - #4473

Merged
ranxianglei merged 1 commit into
masterfrom
2026-10-24_backport-rich-receipt
Oct 24, 2026
Merged

ranxianglei merged 1 commit into
masterfrom
2026-10-24_backport-rich-receipt

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

Follow-up to #4472 (patch-train bot), owner-requested in-session 2026-10-24: the success receipt was a single bare line — too thin to read as a 回执. This renders it in the house style of the Merged-Build-Published receipt (example):

🚂 Backported to the Patch Train

This fix was cherry-picked onto the open patch train bugfix-release/v0.1.206-train — head 466fc281.
Picked commits: 466fc281 — fix: …
CI is running on the train head — runs.
What ships when this train departs: the next patch release (v0.1.206) containing ONLY tag-based fixes — master's unreleased work stays out. To ship it now: Release (one-click) → tick train.

Mechanics: the cherry-pick step exports picked (commit list captured BEFORE the push — after it origin/$TRAIN == HEAD and the range would be empty, caught in local simulation) + head_sha; the audit step builds the markdown body (10-commit cap) and keeps the || true best-effort contract.

Verification: YAML parses (9 steps); both touched run blocks pass bash -n; the body-generation shell logic rendered end-to-end against the real train ref (picked list + markdown + URL encoding for the branch-with-slash CI filter link).

Rendered example above was generated locally with the exact same sed/printf pipeline the workflow runs.

No behavior change to gating, picking, or shipping — comment-only (plus the two step outputs feeding it).$(printf '

')

The one-line audit comment proved too thin to read as a receipt
(owner: 'success has no receipt'). Render it in the house style of the
Merged-Build-Published receipt (see PR #4472 comment 6378977384):
train branch link, pushed head sha, the picked commits as a list, a
link to the CI runs on the train head, and the exact ship action
(Release one-click, tick train) plus the version the train will
publish.

The pick step now exports picked + head_sha outputs; the range is
captured BEFORE the push (after it origin/$TRAIN == HEAD and the
range would be empty — caught in local simulation).
@ranxianglei ranxianglei added the backport merge onto the patch train (bugfix-release/**) via the backport bot — set BEFORE merging label Oct 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-10-24_backport-rich-receipt (09f840d)

Latest build — install this exact version

npm install -g billion-context@0.0.5375-pr.4473.c5e8c63

This exact version is immutable and reproducible. The rolling pr tag tracks the newest test build across all PRs.

Recent builds (commit → version)

commit version build
09f840d billion-context@0.0.5375-pr.4473.c5e8c63 build

Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf billion-context-pr4473.tgz
npm install -g package

Install instructions are refreshed on each push.

@ranxianglei
ranxianglei merged commit f979acd into master Oct 24, 2026
52 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Backport to bugfix-release/v0.1.206-train did not complete — either the cherry-pick conflicts (the fix is NOT independent of master's unreleased work), the run is a duplicate rerun, the train branch is stale/misconfigured, or the CI dispatch failed AFTER a successful push (check the train log before retrying anything — see the job log). The fix stays on the master (slow) lane either way. To force it onto the train, resolve manually: git checkout bugfix-release/v0.1.206-train && git cherry-pick -x $(git rev-list --reverse --no-merges f979acd7742bb6e980425f0ee274d8c12ef80c60^1..f979acd7742bb6e980425f0ee274d8c12ef80c60^2).

@github-actions

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.784-master.f979acd (rolling master tag).

npm install -g billion-context@0.0.784-master.f979acd  # this exact build
npm install -g billion-context@master  # always the newest merged build

npm view billion-context@master prints the current version at any time.

@ranxianglei ranxianglei removed the backport merge onto the patch train (bugfix-release/**) via the backport bot — set BEFORE merging label Oct 24, 2026
ranxianglei pushed a commit to Chrockution/billion-context that referenced this pull request Oct 24, 2026
… the train (ranxianglei#4474)

A conflicted backport leaves only a PR comment; CI green on the train
head says nothing about fixes that are ABSENT. Before opening the ship
PR, reconcile every backport-labeled merge since the train's base tag
(merge-commit ranges + squash-shape subjects) against the cherry-pick
-x trailers on the train; any no-show renders as a prominent warning
section at the top of the ship PR body. Never fails the run — the owner
may ship without the straggler, but must see it first.

Verified end-to-end against the live repo: stale train (missing the
ranxianglei#4470 pick) -> flags {ranxianglei#4473, ranxianglei#4470}; real train (pick present) -> flags
{ranxianglei#4473} only, both directions.
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.

1 participant