From adef899a22de5d96a1d054a3201e08819003b868 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Sun, 22 Nov 2026 19:43:13 +0000 Subject: [PATCH 1/2] docs: explain merged-source 3rdparty PR flow Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- developer_manual/dependency-updates.rst | 33 ++++++++++++++++++------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/developer_manual/dependency-updates.rst b/developer_manual/dependency-updates.rst index e74bd1e9..8548f206 100644 --- a/developer_manual/dependency-updates.rst +++ b/developer_manual/dependency-updates.rst @@ -82,16 +82,31 @@ Follow :doc:`getting-started/tests` for the affected test matrix. When the source PR was merged early ----------------------------------- -A merged 3rdparty PR cannot reliably run the original PR-creation flow -again. Create a **separate, narrowly scoped** LibreSign PR targeting the -corresponding code branch. Its only change should be the ``3rdparty`` -gitlink pointing directly to the **source merge SHA**. - -Create a new cryptographically signed, DCO-compliant commit and run the -normal LibreSign CI. Do not try to reconstruct the old source PR, amend -reviewed commits or force-push to substitute a merge SHA. The prior +Once the merged-source-safe workflow is active in LibreSign/3rdparty, a +maintainer may post ``/libresign-pr`` on an **already merged** source PR. +The workflow resolves the **actual source merge commit SHA**, rather than +depending on the source branch still existing, and generates the Composer +diff relative to the merge's first parent. + +This route accepts a two-parent merge commit, verifies that the target +``3rdparty`` gitlink would advance rather than move backward or sideways, +and creates a matching LibreSign PR referencing the **merged SHA directly**. +Do not run ``/update-3rdparty`` again for that same SHA. Review the source +merge commit's signature and matching DCO sign-off separately: green +checks on the source PR head do not prove the merge commit is compliant. +The destination LibreSign PR must pass its own CI and normal review. + +If a destination branch or PR already exists, inspect and continue it +instead of creating a duplicate. If this automation is unavailable or +rejects the source (for example, it was squash-merged rather than merged +with two parents), follow the manual update instructions below: create a +**separate, narrowly scoped** LibreSign PR targeting the corresponding +code branch and update only the ``3rdparty`` gitlink to the source merge +SHA. Create a new verified signed/DCO commit, verify LibreSign CI, and do +not reconstruct the source PR, amend reviewed commits or force-push. +The prior `LibreSign integration PR #9590 `_ -illustrates this fallback. +illustrates the manual fallback. Manual update when automation is unavailable -------------------------------------------- From e92ac18a4c340a5607aaa1fc1f4fa81ef8b83382 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Sun, 22 Nov 2026 19:53:53 +0000 Subject: [PATCH 2/2] docs: remove transient pull request example from dependency guide Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- developer_manual/dependency-updates.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/developer_manual/dependency-updates.rst b/developer_manual/dependency-updates.rst index 8548f206..a534aba1 100644 --- a/developer_manual/dependency-updates.rst +++ b/developer_manual/dependency-updates.rst @@ -104,9 +104,6 @@ with two parents), follow the manual update instructions below: create a code branch and update only the ``3rdparty`` gitlink to the source merge SHA. Create a new verified signed/DCO commit, verify LibreSign CI, and do not reconstruct the source PR, amend reviewed commits or force-push. -The prior -`LibreSign integration PR #9590 `_ -illustrates the manual fallback. Manual update when automation is unavailable -------------------------------------------- @@ -157,7 +154,8 @@ Troubleshooting subsequent command only after confirming the revised commit. * **Destination branch or PR already exists:** Inspect and continue that PR rather than creating a duplicate or overwriting its branch. -* **Source PR already merged:** Use the direct gitlink PR procedure above. +* **Source PR already merged:** Use ``/libresign-pr`` if the merged-source + workflow is available; otherwise follow the manual gitlink procedure. * **Destination checks fail:** Diagnose the LibreSign integration independently of the successful 3rdparty Composer checks.