Repository navigation
Fix release branch version conflict handling - #1666
David Pine (IEvangelist) wants to merge 3 commits into
Conversation
Treat the Aspire version configuration as release-owned so automated main-to-release merges preserve the release branch metadata. Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved issues were identified, and validation confirms the intended conflict handling.
Pull request overview
Updates automated release-branch merges to preserve release-specific version metadata.
Changes:
- Classifies
aspire-versions.mjsas release-owned. - Clarifies conflict-resolution comments without broadening curated paths.
File summaries
| File | Description |
|---|---|
.github/workflows/update-release-branch.yml |
Preserves release version metadata during automated merges. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Merge the version config from main while retaining the release branch's stable documentation pins, so new preview exports and placeholders remain available. Co-authored-by: Copilot App <[email protected]>
Retain a release branch preview assignment when present while still accepting the newly introduced preview structure from main for older release files. Co-authored-by: Copilot App <[email protected]>
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
| while IFS= read -r f; do | ||
| [ -z "$f" ] && continue | ||
| if is_generated "$f"; then | ||
| if [ "$f" = "src/frontend/config/aspire-versions.mjs" ]; then |
There was a problem hiding this comment.
How often do you think this file is going to change? Is it worth this?
There was a problem hiding this comment.
Every time we ship a new rev of Aspire, patches included.
| main_version_count++ | ||
| next | ||
| } | ||
| /^export const currentAspirePreviewVersion = / { |
There was a problem hiding this comment.
Does this need to be updated every time we add a line to the versions.mjs file?
## Summary `Update Release Branch` currently fails on every push to `main` once a merge into `release/X.Y` has a real conflict that the helper can't auto-resolve (e.g. runs 38433783235 and 38436114463 on `component-props.contracts.ts`). It stays red until someone notices and repairs the branch by hand. - The merge helper now exits `3` for "conflicts need human review" (merge aborted, release untouched) instead of a generic failure. - A new `--commit-conflicts` mode commits the merge with conflict markers left in the unresolved files, keeping both parents, and writes the conflicted paths to `$RELEASE_SYNC_CONFLICTS_FILE`. - On exit `3` the workflow pushes a rolling `release-sync/X.Y` branch and opens a **draft** PR into `release/X.Y` that lists the conflicts and the "Create a merge commit, never squash" instructions. The run finishes green with a warning and summary link. - Before doing any work, the workflow checks for an open PR from `release-sync/X.Y`. If one exists it skips the sync, so pushes to `main` no longer repeat the same failure while a human resolves it. After the repair merges, the next push resumes syncing. - The app token now requests `pull-requests: write` (already granted for `update-integration-data.yml`). Non-conflict failures (push rejection, fatal git errors) still fail the job as before. This is independent of #1701 (push-race retry) and #1666 (version config conflicts) and composes with them. ## Third-party links and affiliations None ## Validation - `bash .github/scripts/test-merge-main-into-release.sh`: all cases pass, including new exit-code `3`, `--commit-conflicts` with conflicts, and `--commit-conflicts` on a clean merge. - `bash -n` on the three workflow `run` blocks (extracted from the YAML): passed. - `prettier --check` on the workflow: passed after `--write`. - Dry run against the real `origin/release/17.0` and `origin/main` in a temporary worktree: the default mode aborts with exit `3`, and `--commit-conflicts` produces a two-parent merge listing `src/frontend/tests/typecheck/component-props.contracts.ts` with a clean working tree. - Not run: the workflow end-to-end (PR creation and the skip check need Actions with the app token). --------- Co-authored-by: David Pine <[email protected]> Co-authored-by: Copilot App <[email protected]>
Project docs-review applicabilityReviewed PR #1666 targeting Phase A - claim verification: not applicable. The complete change set is one workflow, Phase B - documentation testing: not applicable. No affected documentation routes or rendered content exist in this diff. No docs server, browser, Aspire application, or site build was started; this is not a claim that documentation runtime tests passed. Workflow merge/conflict behavior belongs to the separate code review that follows. This records the once-per-PR docs stage only; it is not an approval or request-changes verdict. |
Project code reviewReviewed the complete workflow change at Medium
Why it matters: this adds a new automated conflict-resolution policy that decides which version assignments are published on release. The important branches are materially different: preserve an existing release preview, introduce a missing preview from main, retain main's new exports/placeholders, or reject missing/duplicate assignments. The changed-file list contains only the workflow, and the checks/workflow tree at this exact head do not contain a release-merge fixture suite. Green site CI therefore does not exercise this policy. Suggested fix: add a small disposable-Git-repository shell fixture test and run it in CI. Cover those resolver branches, unsuccessful file reads/staging, and verify that failures leave the release tip unchanged with no merge in progress; successful cases should retain both merge parents and import a working placeholder map. This is internal-logic coverage, not a request for site E2E or accessibility tests. Behavior verified and scope limitsThe normal text-conflict path preserves release stable/major-minor/preview assignments, accepts main's new structure, and supplies main's preview when release has none. Importing the resolved module confirmed functional stable/preview placeholders and the new export. Malformed conflicting assignments and injected A clean main-only version bump bypasses this conflict-only helper and takes main's pins. The exact base does the same, so this is an inherited policy limit, not an introduced regression or a second finding. No new production correctness defect was established beyond the missing durable coverage above. Existing maintenance-cadence discussion and release-package alignment caveats in the PR body were not duplicated as findings. Test coverage
|
docs-pr-reviewer report — [partial — phase A: key claims evaluated; phase B: not run (docs site was not served in this automated run)]Recommendation: needs human Source used: n/a — workflow/script change ( Phase A — claims
Phase B — doc-testerNot run; rendering of the changed pages is not browser-checked. 🤖 Posted by aspire.dev - squad (AI Agent) |
Summary
src/frontend/config/aspire-versions.mjsby taking main's config structure while retaining version assignments already owned by the release branchcurrentAspirePreviewVersionand%ASPIRE_VERSION_PREVIEW%Semantic consumers verified
The simulated merged tree contains functional preview-version consumers in:
src/frontend/src/content/docs/integrations/cloud/azure/azure-ai-foundry/azure-ai-foundry-host.mdxsrc/frontend/src/content/docs/integrations/cloud/azure/azure-data-explorer.mdxsrc/frontend/src/content/docs/integrations/devtools/browser-logs.mdxsrc/frontend/src/content/docs/reference/cli/commands/aspire-doctor.mdxsrc/frontend/tests/unit/aspire-version-placeholders.vitest.test.tsRelease pin disposition
The incoming unit test intentionally asserts that the stable and preview config constants match the site AppHost SDK and FrontDoor package. Repository release guidance requires the same alignment and classifies stale or nonexistent values as critical.
release/13.6currently hascurrentAspireVersion = 13.6.0, while its AppHost remains on stable13.5.3and FrontDoor13.5.3-preview.1.26425.3. As of September 15, 2026, public NuGet lists no 13.6 AppHost SDK or FrontDoor preview package. Therefore the branch is in a pre-release inconsistent state; this PR does not establish or change those pins, and should not by itself be treated as evidence that release/13.6 is ready to sync.The smallest final policy-compliant release fix is to update the AppHost SDK, FrontDoor package, stable config assignment, and preview config assignment together once matching published 13.6 versions exist. If the branch must be made internally consistent before then, the release owner must explicitly choose whether to retain the currently published 13.5.3 pair instead of advertising 13.6 package versions.
Validation
bash -ngit merge-tree --write-tree upstream/release/13.6 upstream/mainreports exactly the version config and two dashboard documentation conflictsrelease/13.6