Skip to content

ci: add opt-in conflict source export - #856

Merged
GraciousGazelles merged 2 commits into
mainfrom
ci/upstream-conflict-source-20260916
Sep 16, 2026
Merged

GraciousGazelles merged 2 commits into
mainfrom
ci/upstream-conflict-source-20260916

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • Add an explicit manual option to preserve conflict-stage and provisional-result source blobs alongside an exact-commit merge preview.
  • Keep the default output metadata-only. Source content is written to a separate bounded, deterministic artifact and is never included in ordinary preview stdout.
  • Retain read-only workflow permissions, exact public input identities and no ref or merge-commit writes.

Validation

Hosted synthetic fixtures and scoped review are pending. The added fixtures cover full staged-record parsing, source-byte preservation, bounded blob reads and metadata-only stdout. No local tests were run.

This change does not perform an upstream integration or claim that the unresolved result tree is a completed merge. Source export is manual and opt-in; public-repository artifacts are treated as publication surfaces.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the ability to export a content-bearing conflict source artifact during upstream merge previews, adding staged record parsing, blob validation, and atomic artifact writing along with corresponding unit tests. The code review identified three valuable improvement opportunities: optimizing the retrieval of provisional result tree entries by running git ls-tree once instead of in a loop, batching blob reads using git cat-file --batch to avoid spawning multiple subprocesses per blob, and ensuring the parent directory of the output path is created before writing the temporary file to prevent potential FileNotFoundError exceptions.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 16, 2026
Merged via the queue into main with commit f12747c Sep 16, 2026
78 of 79 checks passed
@GraciousGazelles
GraciousGazelles deleted the ci/upstream-conflict-source-20260916 branch September 16, 2026 00:33
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.

2 participants