Fix installer script merge and serve setup EXE from VM disk. - #9
Conversation
Remove large installer binaries from git (GitHub 100MB limit); build via scripts/build-installer.ps1 instead. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe installer’s RTSP validation scope is corrected, generated configuration is simplified around ChangesConnector installer configuration
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoFix installer wizard and serve generated EXE from VM disk
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1. Disk fallback mounts wrong directory
|
| Pilot__AlertVisibilityMode: ${ALERT_VISIBILITY_MODE} | ||
| ConnectorInstaller__Version: ${CONNECTOR_INSTALLER_VERSION:-1.1.5} | ||
| ConnectorInstaller__Path: /app/connector-dist | ||
| ConnectorInstaller__DownloadUrl: ${CONNECTOR_INSTALLER_URL:-} |
There was a problem hiding this comment.
1. Disk fallback mounts wrong directory 🐞 Bug ≡ Correctness
When CONNECTOR_INSTALLER_URL is unset, the backend uses disk fallback, but Compose mounts ./installer-site while the production workflow copies the generated EXE to /opt/onevo/connector/dist. Consequently, the installer metadata and download endpoints return 404 after an otherwise successful production deployment.
Agent Prompt
## Issue description
The disk-backed installer deployment copies the generated EXE to a different host directory than the one mounted into the backend container, leaving the backend unable to find the installer.
## Issue Context
The installer workflow uploads to `/opt/onevo/connector/dist`, while Compose mounts `./installer-site` at `/app/connector-dist`. Make these paths identical, either by changing the volume source or the workflow upload destination.
## Fix Focus Areas
- docker-compose.yml[86-103]
- .github/workflows/deploy-mvp.yml[180-192]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| "SizeBytes": 98067717, | ||
| "Sha256": "4612e540532d54ae5940e24e62d207a60e4d3d1cc74bcad14f91c6b5e86cb7c4" |
There was a problem hiding this comment.
2. External installer metadata disappears 🐞 Bug ≡ Correctness
The PR removes the configured size and SHA-256 while the new Compose override forwards only CONNECTOR_INSTALLER_URL. When that URL is configured without another provider supplying metadata, InstallerInfo returns size 0 and an empty hash, producing incorrect download metadata and removing the published integrity value.
Agent Prompt
## Issue description
External installer mode no longer supplies the configured artifact size and SHA-256 to the backend.
## Issue Context
The environment template already defines `CONNECTOR_INSTALLER_SIZE_BYTES` and `CONNECTOR_INSTALLER_SHA256`. Map these variables to the corresponding ASP.NET configuration keys alongside the external download URL.
## Fix Focus Areas
- docker-compose.yml[86-88]
- backend/appsettings.json[48-50]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Remove large installer binaries from git (GitHub 100MB limit); build via scripts/build-installer.ps1 instead.
Summary by CodeRabbit
New Features
Bug Fixes