DistroHopper/upstream
2026-12-06 01:35:56 +00:00
..
baseline chore(upstream): apply quickemu upstream afc32b3eb073 2026-12-06 01:35:56 +00:00
README.md ci: track and auto-sync upstream quickemu (#52) 2026-12-03 14:03:13 +01:00
stamp.json chore(upstream): apply quickemu upstream afc32b3eb073 2026-12-06 01:35:56 +00:00

Upstream quickemu sync

This directory is managed by .github/workflows/sync-upstream.yml and scripts/sync-upstream.sh. It records the upstream quickemu state that the vendored files are based on, so upstream changes can be applied automatically without losing DistroHopper's local patches.

Path Purpose
baseline/<file> Snapshot of the upstream file the current local vendored file is derived from.
stamp.json Last applied upstream repo, branch and commit sha, plus sync_at.

Vendored files that are kept in sync with upstream:

  • quickemu
  • quickget
  • chunkcheck
  • quickreport

How an upstream change is applied

For each vendored file the sync script compares three versions:

  1. the local file (may carry DistroHopper patches),
  2. the stored baseline snapshot (old upstream),
  3. the latest upstream file.
  • local == upstream — already in sync.
  • local == baseline — no local changes since the last sync, so the file is updated to the latest upstream untouched.
  • otherwise — a three-way merge applies the upstream delta on top of the local patches. A conflict leaves <<<<<<< ======= >>>>>>> markers.

Every change is opened as a pull request on the fixed branch ci/sync-upstream for review. If the PR is already open its branch is resumed and the new merge is appended as another commit, so manual conflict resolutions and review commits are preserved (never force-pushed over). Conflicts keep their <<<<<<< markers in the PR and are never committed to the default branch. A manual workflow_dispatch with direct_commit: true commits straight to the repository's default branch (resolved from the repo, regardless of the branch selected when dispatching), but only when the sync is conflict-free and no review PR is open.

The first run has no baseline, so it only records the current upstream snapshot (a baseline PR); subsequent runs merge real upstream changes.

Manual use

./scripts/sync-upstream.sh

The tracker snapshot of upstream activity (merged PRs, open PRs, open issues) lives in docs/upstream-quickemu.md, generated by scripts/track-upstream.sh.