Skip to content

chore: sync dev with main - #13

Merged
gerchowl merged 1 commit into
devfrom
chore/sync-main-to-dev-7-2
Apr 15, 2026
Merged

gerchowl merged 1 commit into
devfrom
chore/sync-main-to-dev-7-2

Conversation

@vig-os-release-app

Copy link
Copy Markdown
Contributor

Automated sync of main to dev found merge conflicts that require manual resolution.

How to resolve

git fetch origin chore/sync-main-to-dev-7-2:chore/sync-main-to-dev-7-2
git checkout chore/sync-main-to-dev-7-2
git merge origin/dev
# resolve conflicts
git commit -S
git push origin chore/sync-main-to-dev-7-2

Once pushed, this PR will update and become mergeable.

chore: bootstrap vigOS convention + CI debt cleanup
@gerchowl gerchowl changed the title chore: sync dev with main (conflicts) chore: sync dev with main Apr 15, 2026
@gerchowl
gerchowl merged commit db559d8 into dev Apr 15, 2026
17 of 18 checks passed
@gerchowl
gerchowl deleted the chore/sync-main-to-dev-7-2 branch April 15, 2026 09:13
gerchowl added a commit that referenced this pull request Apr 15, 2026
The previous `Detect merge conflicts` step ran
`git merge --no-commit --no-ff origin/main 2>/dev/null` and
branched on exit code to set `conflict=true|false`. Two problems:

1. `2>/dev/null` hid git's stderr entirely, so whenever the step
   misfired we got no diagnostic — just a `(conflicts)` label on
   a PR that was actually clean.
2. `git merge --no-ff` has degenerate behavior when one side is
   an ancestor of the other. After a dev→main merge PR, `main`'s
   tip is a merge commit whose second parent is `dev`'s old tip,
   so `dev` is an ancestor of `main`. `git merge --no-ff` in this
   configuration can exit non-zero without an actual conflict,
   which the workflow then mislabels.

This was observed live on PR #13 (the sync-back from the initial
dev→main bootstrap): the PR had 0 files changed and was fully
mergeable, but arrived labeled `merge-conflict` and titled
"(conflicts)".

Replace with `git merge-tree --write-tree origin/dev origin/main`,
which does an in-memory trial merge without touching the working
tree or index. Exit semantics:
- 0 = clean merge, output is the merged tree SHA
- 1 = conflicts, output contains conflict markers
- anything else = real error (propagate)

Stderr is now captured into a variable rather than dropped, so any
future misbehavior is visible in the run log.

This pattern is lifted from the current
`vig-os/devcontainer/assets/workspace/.github/workflows/sync-main-to-dev.yml`
upstream — confirming this isn't a novel fix but an
already-corrected upstream implementation that our stale scaffolded
copy never picked up.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
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.

1 participant