#50235: build: add patch conflict resolution workflow with CI artifacts
Description of Change
This PR adds documentation and CI automation to streamline the patch conflict resolution workflow when fixing conflicts on branches with open PRs.
Changes:
-
CLAUDE.md: Added a new section documenting how to use CI-generated patch artifacts to resolve conflicts faster than running a full local sync. Includes commands for finding and downloading the artifact from a failed Apply Patches run, and guidance on fallback procedures.
-
.github/workflows/apply-patches.yml: Added a new workflow step that uploads a
update-patches.patchartifact when the Apply Patches job fails. This artifact contains the resolved patch diff from CI's 3-way merge, allowing developers to quickly apply the fix without runninge sync --3locally.
The workflow improvement reduces friction in the patch management process by leveraging CI's already-computed merge resolution.
Checklist
- PR description included
- Documentation updated (CLAUDE.md and workflow comments)
-
npm testpasses (N/A - documentation and workflow configuration only) - tests are changed or added (N/A - no code logic changes)
- relevant API documentation updated (N/A)
Release Notes
Notes: none
Backports
Semver Impact
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron