You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
• Add a branch-specific workflow to build a Windows x64 installer for Bipelc previews.
• Publish the installer and SHA-256 checksum as a GitHub prerelease with a production-use warning.
Merge Risk 🟡 Medium
Blast radius 🟢 Low💥 1 capability
1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
The workflow forms one bounded distribution capability: it builds, verifies, and publishes the Windows preview artifact.
Build and publication are producer and consumer hops of the same preview-release outcome, not independent application capabilities.
The workflow is branch-scoped and does not alter application runtime behavior.
Before: no Bipelc-specific preview workflow existed.
After: a branch push drives dependency installation, two builds, Windows packaging, artifact selection, checksum output, and GitHub release creation.
The new correctness condition is that the installer selected by the PowerShell verification step, its emitted path/name/hash outputs, the checksum file, the version-derived tag, and the target commit remain consistent across the build-to-publication handoff.
The workflow also serializes runs through a shared concurrency group, so queued branch pushes must preserve the intended release behavior.
graph TD
A["Branch push"] --> B["Preview workflow"] --> C["Frontend and Electron"] --> D["NSIS installer"] --> E["SHA-256 checksum"] --> F["GitHub prerelease"]
D --> F
Loading
High-Level Assessment
The following are alternative approaches to this PR:
1. Upload a GitHub Actions artifact instead
➕ Avoids creating a release tag on every preview run.
➕ Allows successive pushes at the same package version.
➖ Less discoverable than a prerelease.
➖ Artifacts have retention limits.
2. Reuse the production release workflow
➕ Shares established release verification and packaging infrastructure.
➖ Couples a branch preview to production tag, channel, and publication rules.
Recommendation: Keep the isolated workflow for a discoverable preview rather than relaxing production release rules. Before relying on push-based publishing, address the fixed preview tag: another push without a version change will cause gh release create to fail because the release already exists.
Files changed (1) +90 / -0
Other (1) +90 / -0
bipelc-windows-preview.ymlBuild and publish a branch-specific Windows preview+90/-0
Build and publish a branch-specific Windows preview
• Adds a Windows runner workflow triggered by pushes to the Bipelc branch. It installs dependencies with Node.js 22.22.1, builds the frontend and Electron process, packages an unsigned x64 NSIS installer, then publishes the installer and SHA-256 checksum as a GitHub prerelease with a production-use warning.
1. Later pushes cannot publish a preview 🐞 Bug≡ Correctness
Description
TAG is derived only from the package version and the fixed preview.1 suffix, but every branch
push calls gh release create without handling an existing release. After the first successful
publication at a given version, subsequent pushes attempt to create the same tag and fail instead of
publishing their installers.
The workflow runs on every push to the branch, while the current package version is 3.14.12. The
publication step always creates a release for the same version-derived tag and has no
existing-release branch.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
Every push at the same package version attempts to create the same preview release, so later builds cannot publish.
## Fix Focus Areas
- .github/workflows/bipelc-windows-preview.yml[73-74]
- .github/workflows/bipelc-windows-preview.yml[85-90]
## Recommended Fix
Derive a unique preview tag from the triggering commit or another monotonic build identifier. Keep the release title and notes consistent with that identity, and make reruns of the same commit handle an already-created release safely.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
The installer retains package.json’s FloCafe GitHub update provider and stable package version,
while this workflow publishes its preview to the triggering repository without updater metadata.
When an installed preview checks for updates, it uses the upstream stable feed rather than a Bipelc
preview feed, so a newer upstream build can be offered in place of a preview update.
The packaged configuration points to FreeOpenSourcePOS/FloCafe on the latest channel, and the
running app configures and checks its updater. This workflow instead uploads only the installer and
checksum to its own GitHub release; the existing Windows release workflow explicitly requires a
channel manifest and blockmap for updates.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
Installed preview builds use the upstream stable update feed rather than the repository and releases that publish these previews.
## Fix Focus Areas
- .github/workflows/bipelc-windows-preview.yml[46-49]
- .github/workflows/bipelc-windows-preview.yml[73-90]
- package.json[474-491]
## Recommended Fix
Give preview builds an explicit update policy. Either package them with an isolated preview provider and version/channel and publish the matching installer metadata and blockmap to that feed, or disable in-app updates for preview builds and document manual replacement.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Context sources
Review mode: Auto: ⚖️ Balanced: CI release automation and write permissions require careful security-sensitive review.
Tip of the day
💡 Did you know, you can commit Qodo's fix in one click with committable suggestions (GitHub & GitLab)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related work
Issue / Discussion:
Summary
Scope
Verification
Commands run:
Results:
Compatibility & data safety
Screenshots
Cross-cutting surfaces
Developer documentation
Contributor checklist