Repository navigation
Patch support - #717
Draft
rhubert wants to merge 4 commits into
Draft
Patch support#717rhubert wants to merge 4 commits into
rhubert wants to merge 4 commits into
Conversation
Apply recipe-local unified diffs with exact context and bounded unique hunk matching. Validate targets and include patch and series contents in checkout identities and the recipe cache. Prepare complete overlays before writing and restore originals on write failures. Persist old patch bytes and tree fingerprints for safe reverse updates, verified-base retries, and attic recovery of unverified failures. Integrate overlay status and clean-checkout handling through explicit SCM capabilities and a shared fingerprint policy. Cover parser, rollback, and recovery behavior through unit tests and real Git and URL checkouts.
Delegate Jenkins plugin SCM generation through patch overlays and schedule a serialized patch-only command after plugin checkout. Keep the overlay bytes self-contained for that command.
Record resolved overlay manifests and patched-tree fingerprints in SCM audit records using the shared overlay fingerprint policy. Accept these optional fields in audit schemas, including Git, while retaining support for records without overlay metadata. Cover patched URL fingerprints and a real Git audit serialization round trip. Keep audit fields out of Git SCM defaults.
Document recipe-local patch files and series manifests, checkout identity semantics, validation rules, and bounded hunk matching. Explain safe inline updates, transactional failure recovery, verified base retries, creation collisions, and symlink rules.
Contributor
Author
|
I'm still in process of reviewing / testing... The regular build with
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #717 +/- ##
==========================================
- Coverage 89.89% 89.56% -0.33%
==========================================
Files 50 51 +1
Lines 16897 17422 +525
==========================================
+ Hits 15189 15604 +415
- Misses 1708 1818 +110 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add scm-patch support.
Fixes #347.