cherry-pick-to-release
Skill4.8k starsChanged 7 months agoMITView on GitHub
Cherry-pick a merged main-branch PR onto a MsQuic release branch (release/X.Y).
- Commits and pushes
Trending
Quiet this year.about the whole repository
Who's talking about microsoft/msquic
- A Hacker News story“MsQuic – QUIC Implementation from Microsoft”Hacker News · Apr 29, 2020 · 153 points
- oven-sh/bun“[Feature Request] Add support for QUIC.”GitHub · Oct 10, 2024 · 34 reactions
- A Hacker News story“MsQuic: Cross-Platform QUIC Library”Hacker News · Sep 21, 2021 · 12 points
- Mbed-TLS/mbedtls“Expose QUIC API”GitHub · Jun 25, 2021 · 12 reactions
- ninenines/cowboy“QUIC and HTTP/3”GitHub · Nov 2, 2021 · 10 reactions
The biggest 5 of 27 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 27
Talked about on GitHub and Hacker News (27 times).
On GitHub · 22
- Oct 10, 2024[Feature Request] Add support for QUIC. — oven-sh/bun34 reactions · 5 comments
- Jun 25, 2021Expose QUIC API — Mbed-TLS/mbedtls12 reactions · 24 comments
- Nov 2, 2021QUIC and HTTP/3 — ninenines/cowboy10 reactions · 24 comments
- Apr 15, 2024[API Proposal]: Add sendmmsg and recvmmsg to Socket for Linux — dotnet/runtime7 reactions · 2 comments
- Aug 9, 2023[API Proposal]: QUIC stream priority support — dotnet/runtime6 reactions · 17 comments
17 more on GitHub
- Sep 17, 2025QUIC / HTTP3 support — pingooio/pingoo4 reactions · 2 comments
- Jul 2, 2025Implement spurious loss recovery — quinn-rs/quinn4 reactions · 6 comments
- Nov 24, 2023Question: any thoughts on reliable UDP or QUIC? And QoS? — Cysharp/MagicOnion4 reactions · 6 comments
- Feb 9, 2022Add QUIC (or HTTP/3) support — vpnhood/VpnHood4 reactions · 27 comments
- May 20, 2025Upgrade to msquic 2.5 — emqx/quic3 reactions · 8 comments
- Feb 8, 2023Quic should support OpenSSL 3.x — dotnet/runtime3 reactions · 3 comments
- Feb 10, 2022Build fails in NixOS — emqx/quic3 reactions · 5 comments
- Feb 2, 2022Create Artifact Container - Attempt 5 of 5 failed with error: connect ETIMEDOUT — actions/upload-artifact3 reactions · 7 comments
- Jun 5, 2025Performance issue on internet — quinn-rs/quinn2 reactions · 29 comments
- Jun 16, 2023Windows ASAN Build Regression in 20230612.1 — actions/runner-images2 reactions · 12 comments
- Mar 11, 2022Installing Driver Hangs on Windows 2022 [Regression in Last 24-Hours] — actions/runner-images2 reactions · 2 comments
- May 31, 2021QUIC: update status codes for unix platforms — dotnet/runtime2 reactions · 1 comment
- Nov 12, 2025Enable OpenSUSE Dockerfile — dotnet/dotnet-buildtools-prereqs-docker1 reaction
- Oct 22, 2025Port numasupport to remove lib dependency — microsoft/cxplat1 reaction · 7 comments
- Dec 12, 2024Use of test APIs — nibanks/msh31 reaction · 15 comments
- Jan 20, 2022Implement an egress-policy: warn-only mode — step-security/harden-runner1 reaction · 1 comment
- Feb 13, 2021While debugging a test failure with stub tls, we realized that loopback connections have increased potential for out of order packet receives. This manifested as a failure for stub tls, and a potential performance issue for proper TLS providers. — Anas198900/waledzaad1 reaction
On Hacker News · 5
- Apr 29, 2020MsQuic – QUIC Implementation from Microsoft153 points · 84 comments
- Sep 21, 2021MsQuic: Cross-Platform QUIC Library12 points
- Jul 24, 2023Msquic: Cross-platform C implementation of QUIC protocol for C, C++, C#, Rust2 points · 1 comment
- Apr 30, 2020MsQuic2 points
- May 4, 2020Msquic: Cross platform C implementation of the IETF QUIC protocol1 point
In this repository2 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- investigate-ci-failureSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
27 rules. About 0 are common, 14 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Before doing anything, make sure you know:
- Distinctive: line 33
If anything is missing, ask before proceeding.
- Distinctive: line 50
When the same fix targets multiple release branches, the title is identical across PRs.
- Very specific: line 56
Do not invent new prefixes.
- Distinctive: line 65
No additions or modification of the original description is acceptable.
- Distinctive: line 79
Use one branch per target release branch (do not try to land both release branches from a single branch / PR).
- Distinctive: line 88
Keep these tightly scoped to enabling the cherry-pick.
- Very specific: line 90
Do not add (cherry picked from commit X) trailers — the project doesn't use git cherry-pick -x.
- Distinctive: line 96
Follow these steps in order.
- Very specific: line 100
If given a PR number, find its squash-merge commit on origin/main:
- Very specific: line 104
Verify state == MERGED and baseRefName == main.
- Very specific: line 105
If given a SHA, confirm it is reachable from origin/main:
- Distinctive: line 116
Make sure the working tree is clean (git status).
- Distinctive: line 118
Create the branch from the tip of the release branch:
- Very specific: line 125
Run git cherry-pick <commit_sha> (no -x).
- Very specific: line 128
If the conflict is non-trivial, briefly summarize the resolution in the PR body under ## Description so reviewers know what differs from …
- Distinctive: line 129
If the fix depends on code that doesn't exist on the release branch, stop and ask the user how to proceed (skip, adapt, or pull in …
- Very specific: line 133
Check whether the cherry-pick touches things that require regeneration.
- Very specific: line 141
Commit any changes under src/generated/ and src/manifest/clog.sidecar as part of the same commit (or amend).
- Very specific: line 147
Commit any changes under src/cs/.
- Distinctive: line 149
If neither applies, skip this phase.
- Very specific: line 163
Run the tests that exercise the cherry-picked code: Use a GoogleTest --Filter to keep the runtime short:
- Distinctive: line 174
If the build or the relevant tests fail on the release branch but pass on main, stop and ask the user — do not push a broken cherry-pick.
- Distinctive: line 184
Stop here and show a summary of the cherry-pick to the user: original PR, target branch, branch name, PR title, build and test status.
- Very specific: line 202
If cherry-picking to multiple release branches, repeat phases 2–6 for each branch.
- Distinctive: line 206
Before telling the user the cherry-pick is ready:
- Very specific: line 223
Don't: use git cherry-pick -x — the project doesn't include (cherry picked from commit X) trailers in the final commit message.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cherry-Pick to MsQuic Release Branch
You are helping a maintainer back-port a fix from main to one or more
MsQuic release branches (release/2.4, release/2.5, etc.).
This skill encodes the patterns the project uses.
When This Skill Activates
The user asks to cherry-pick / back-port / "CP" a PR or commit from main
onto a release branch. Typical requests:
- "Cherry-pick #5942 to release/2.4 and release/2.5"
- "Back-port the ACK underflow fix to 2.5"
- "CP this commit to the 2.4 release branch"
Inputs You Need
Before doing anything, make sure you know:
- Source: a PR number on
main(preferred) or a commit SHA onorigin/main. - Target release branch(es): e.g.
release/2.4,release/2.5. If the user is ambiguous (e.g. "to the release branches"), ask whether they want one branch or both, and which. - Whether to push / open a PR. You must never push a branch or open a PR
without explicit permission. Stop and ask before any
git pushorgh pr create.
If anything is missing, ask before proceeding.
Project Conventions (must follow)
PR Title
[CP] <Original PR title> (#<original_pr_number>)Examples actually used on the release branches:
[CP] Fix underflow in ACK frame parsing #5942(→ PR #5943 on 2.5, #5944 on 2.4)[CP] Fix SAL annotation placement on function templates (#5895)[CP] Free AES 256 GCM algorithm handle on cleanup (#5526)[CP] Fix double deref in connection pool error path (#5597)
When the same fix targets multiple release branches, the title is identical
across PRs; only the target branch differs. After squash-merge, GitHub
appends the new PR number, producing commits like
[CP] Fix underflow in ACK frame parsing #5942 (#5943) on the release
branch — this is expected and required (it makes traceability trivial).
Do not invent new prefixes; stick to [CP] unless asked.
PR Body
Use the exact body of the original PR, verbatim, including the
## Description, ## Testing, and ## Documentation sections as the
original author wrote them. Do not rewrite, summarize, or augment them
with cherry-pick commentary.
No additions or modification of the original description is acceptable.
Branch Naming
Project convention (observed on most recent cherry-pick PRs):
<user>/cp_<short_description>_<target_version>_copilotThe <short_description> is a snake_case summary of the fix, mirroring
prior branches like cp_conn_pool_deref, cp_free_aes_256_gcm_handle,
underflow_fix_cp.
Use one branch per target release branch (do not try to land both release branches from a single branch / PR).
Commits Inside the PR
- Almost always one commit — the cherry-picked commit, with its original message preserved.
- Occasionally a second commit is acceptable if needed to make the release branch build/pass tests (merge conflict resolutions and build fixes). Keep these tightly scoped to enabling the cherry-pick; do not sneak in unrelated changes.
- Squash-merge erases the multi-commit structure on the release branch.
- Do not add
(cherry picked from commit X)trailers — the project doesn't usegit cherry-pick -x; traceability comes from the PR title containing the original PR number.
Workflow
Follow these steps in order. Do not skip a phase.
Phase 1 — Identify the source commit on main
- If given a PR number, find its squash-merge commit on
origin/main:
Verifygh pr view <orig_pr> --repo microsoft/msquic --json mergeCommit,state,title,body,baseRefNamestate == MERGEDandbaseRefName == main. If not merged, stop and tell the user — never cherry-pick an unmerged change. - If given a SHA, confirm it is reachable from
origin/main:git --no-pager log -1 --format="%H %s" <sha> git --no-pager branch -r --contains <sha> | Select-String "origin/main" - Capture the original PR title and body — you'll reuse them.
Phase 2 — Prepare the local branch
Repeat for each target release branch.
- Make sure the working tree is clean (
git status). If not, stop and ask. - Fetch latest refs:
git fetch origin --prune. - Create the branch from the tip of the release branch:
git checkout -b <user>/cp_<short_desc>_2_5_copilot origin/release/2.5
Phase 3 — Apply the cherry-pick
- Run
git cherry-pick <commit_sha>(no-x). - On conflicts:
- Resolve them, keeping the spirit of the original fix.
- If the conflict is non-trivial, briefly summarize the resolution in the PR body under
## Descriptionso reviewers know what differs frommain. - If the fix depends on code that doesn't exist on the release branch, stop and ask the user how to proceed (skip, adapt, or pull in additional commits) — do not silently rewrite the fix.
Phase 4 — Regenerate derived files (only if applicable)
Check whether the cherry-pick touches things that require regeneration. CI
will fail otherwise (check-clog.yml, check-dotnet.yml).
- Trace / log macro changes (
QuicTraceLogInfo,QuicTraceEvent, etc., or anything undersrc/manifest/):
Commit any changes under./scripts/update-sidecar.ps1src/generated/andsrc/manifest/clog.sidecaras part of the same commit (or amend). - Public C API surface changes (anything under
src/inc/, especiallymsquic.h):
Commit any changes under./scripts/generate-dotnet.ps1src/cs/.
If neither applies, skip this phase.
Phase 5 — Build and run tests locally (REQUIRED)
Build and run tests locally before pushing. This is required for every
cherry-pick, regardless of whether the git cherry-pick was clean or
required conflict resolution. Do not skip this phase.
- Build with the default TLS provider for the platform you're on:
./scripts/build.ps1 -Tls schannel # Windows pwsh ./scripts/build.ps1 -Tls openssl # Linux - Run the tests that exercise the cherry-picked code. Use a
GoogleTest
--Filterto keep the runtime short:
At minimum, run:./scripts/test.ps1 -Tls schannel -Filter '<TestSuite>.<TestPattern>*'- the tests that were added or modified by the cherry-pick, and
- the tests directly covering the changed code paths (e.g.
TlsTest.*forsrc/platform/tls_*,ApiTest.*forsrc/inc/surface changes,HandshakeTest.*forsrc/core/handshake logic).
- If the build or the relevant tests fail on the release branch but
pass on
main, stop and ask the user — do not push a broken cherry-pick. Likely causes: missing prerequisite commits, API drift between branches, or test infra changes that didn't get back-ported.
Capture the build and test outcome (pass/fail, number of tests run) to mention briefly when you ask for permission to push.
Phase 6 — Push and open the PR (gated on explicit user permission)
Stop here and show a summary of the cherry-pick to the user: original PR, target branch, branch name, PR title, build and test status. Confirm with the user before pushing. Then:
- Push the branch:
git push -u origin <user>/cp_<short_desc>_2_5_copilot - Open the PR as a draft (per the user's standing rule, unless they say otherwise):
gh pr create --repo microsoft/msquic ` --base release/2.5 ` --head <user>/cp_<short_desc>_2_5_copilot ` --draft ` --title "[CP] <Original title> (#<orig_pr>)" ` --body-file <path_to_body.md>--basemust be the release branch (release/2.4,release/2.5, …), notmain.
- If cherry-picking to multiple release branches, repeat phases 2–6 for each branch. Open one PR per branch; mention the sibling PR number in each body so reviewers can correlate them (e.g.
Companion PR for release/2.4: #5944).
Self-Verification Checklist
Before telling the user the cherry-pick is ready:
- PR
--baseis the correctrelease/X.Ybranch (nevermain). - PR title is
[CP] <orig title> (#<orig_pr>)(or an explicitly approved variant). - PR body uses the exact body of the original PR verbatim with no additions.
- Branch name follows
<user>/cp_<short_desc>_<X_Y>_copilot. - PR is opened as a draft.
- Only the cherry-picked commit (+ optional minimal build-fix commits) is on the branch — no unrelated changes.
- Local build succeeded on the release branch with the cherry-pick applied (Phase 5).
- Relevant tests were run locally and pass (Phase 5). The exact test filter and result are mentioned when asking the user for permission to push.
- If trace/log macros were touched →
scripts/update-sidecar.ps1was run and generated files committed. - If
src/inc/public headers were touched →scripts/generate-dotnet.ps1was run and generated files committed. - You obtained explicit user permission before pushing and opening the PR.
Anti-Patterns to Avoid
- Don't cherry-pick a PR that isn't merged on
mainyet. - Don't use
git cherry-pick -x— the project doesn't include(cherry picked from commit X)trailers in the final commit message. - Don't bundle unrelated fixes into the same cherry-pick PR. If you see a related-but-distinct issue, open a separate cherry-pick.
- Don't invent a new title prefix (e.g.
[BACKPORT 2.5]) — stick to[CP]to stay consistent with the last ~2 years of cherry-pick PRs. - Don't silently drop test changes.
- Don't rewrite, summarize, or paraphrase the original PR's description. The body must contain the original PR's body verbatim without additions.
- Don't skip the local build / test step (Phase 5), even when the cherry-pick applied with no conflicts. Auto-merged hunks can still produce subtly wrong code.
- Don't push or open a PR without explicit user permission.
- Don't bump the version number as part of a cherry-pick PR —
version bumps (
Bump version to v2.5.X) are separate PRs done at release time.
Non-Goals
- Triaging whether a fix should be cherry-picked. The user decides that; this skill just executes the cherry-pick cleanly.
- Releasing / tagging / publishing artifacts. Those are separate processes handled outside this skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

