fix(release): preserve Windows source immutability - #53
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe changes redirect exact-provenance route-tree generation to a cache path, wire that path through web and desktop builds, report tracked worktree paths during cleanliness checks, and enforce ordered preflight cleanliness verification in the prerelease workflow. ChangesRoute tree provenance and release cleanliness
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant DesktopBuild as build-desktop-artifact.ts
participant Environment as desktop-source-build-environment
participant WebBuild as apps/web/vite.config.ts
participant RouteTree as generated route-tree cache
DesktopBuild->>Environment: create exact-provenance build environment
Environment->>RouteTree: provide SYNARA_GENERATED_ROUTE_TREE
WebBuild->>RouteTree: resolve and alias routeTree.gen
DesktopBuild->>RouteTree: remove generated route-tree root
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Comment |
7d8eb1c to
1da9eb0
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@scripts/build-desktop-artifact.ts`:
- Around line 975-981: Update the environment passed by the desktop build flow
around createDesktopSourceBuildEnvironment so non-exact builds cannot inherit
SYNARA_GENERATED_ROUTE_TREE from process.env. Remove or override that key before
passing baseEnvironment, while preserving its use when exactProvenanceRequested
is true.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 9e4b9d4c-5df0-4a0e-864b-f4da0dab0015
📒 Files selected for processing (12)
.github/workflows/super-synara-prerelease.ymlapps/web/vite.config.tsapps/web/viteRouteGeneration.test.tsapps/web/viteRouteGeneration.tsscripts/build-desktop-artifact.tsscripts/lib/desktop-source-build-environment.test.tsscripts/lib/desktop-source-build-environment.tsscripts/lib/release-worktree-cleanliness.test.tsscripts/lib/release-worktree-cleanliness.tsscripts/lib/super-synara-workflow-contract.test.tsscripts/lib/super-synara-workflow-contract.tsturbo.json
🚧 Files skipped from review as they are similar to previous changes (10)
- scripts/lib/desktop-source-build-environment.ts
- apps/web/viteRouteGeneration.test.ts
- turbo.json
- scripts/lib/desktop-source-build-environment.test.ts
- apps/web/viteRouteGeneration.ts
- .github/workflows/super-synara-prerelease.yml
- scripts/lib/super-synara-workflow-contract.test.ts
- apps/web/vite.config.ts
- scripts/lib/super-synara-workflow-contract.ts
- scripts/lib/release-worktree-cleanliness.ts
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 4 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
97b2497 to
bea4522
Compare
|
Tick the box to add this pull request to the merge queue (same as
|
Why
Windows-only prerelease run 29788640616 successfully built the unsigned installer, passed packaged startup, and passed native Windows qualification (Authenticode inspection, fresh install/launch, exact stable-upstream selection, side-by-side overlap, and uninstall). Publication then stopped at the final source-cleanliness gate because TanStack regenerated
apps/web/src/routeTree.gen.tsin Windows-specific ordering.What
Verification
The branch is based on current downstream
mainat720075a834b40461f11e4e24127f2c8d4f21de34, including the merged desktop provider-session persistence and secure local file-preview work. Release scope remains Windows x64 only; macOS is kept as a non-regression CI lane and is not part of the release.Summary by CodeRabbit
Build Improvements
SYNARA_GENERATED_ROUTE_TREE(build-time routing aliasing).Release Reliability
Tests