Skip to content

Fix nightly installation on Windows - #149

Merged
samdark merged 3 commits into
masterfrom
fix-powershell-nightly-installer
Aug 6, 2026
Merged

Fix nightly installation on Windows#149
samdark merged 3 commits into
masterfrom
fix-powershell-nightly-installer

Conversation

@samdark

@samdark samdark commented Aug 6, 2026

Copy link
Copy Markdown
Member

Summary

  • resolve YIIPRESS_VERSION=nightly through GitHub prereleases in the PowerShell installer
  • match the shell installer pagination limit and immutable nightly tag format
  • document PowerShell nightly installation and cover the behavior in the installer test

Tests

  • make test CLI_ARGS='tests/Unit/Packaging/InstallerTest.php' (10 tests, 155 assertions)

Summary by CodeRabbit

  • New Features

    • The Windows installer now supports selecting the latest available nightly release.
    • Nightly releases are identified automatically across GitHub release pages, searching up to ten pages.
    • Added PowerShell usage instructions for installing nightly versions.
  • Bug Fixes

    • The installer now reports a clear error when no matching nightly release is available.

Copilot AI lite review requested due to automatic review settings August 6, 2026 20:37
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@samdark, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 40 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 7e90368b-97e9-4857-b31a-4a7a1909a042

📥 Commits

Reviewing files that changed from the base of the PR and between feb6044 and 3ca7649.

📒 Files selected for processing (2)
  • install.ps1
  • tests/Unit/Packaging/InstallerTest.php
📝 Walkthrough

Walkthrough

The Windows installer now resolves nightly from GitHub prerelease pages. It selects matching immutable nightly tags, limits the search to ten pages, reports missing releases, and documents the PowerShell usage.

Changes

Windows nightly installation

Layer / File(s) Summary
Nightly release resolution and validation
install.ps1, tests/Unit/Packaging/InstallerTest.php, docs/binaries-phar-docker.md
The installer searches up to ten GitHub release pages for a matching prerelease tag. Tests cover pagination, tag selection, the search limit, and the unavailable-release error. Documentation adds PowerShell usage and resolution details.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

Suggested reviewers: copilot

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant WindowsInstaller
  participant GitHubReleases
  User->>WindowsInstaller: Request version nightly
  WindowsInstaller->>GitHubReleases: Search up to ten release pages
  GitHubReleases-->>WindowsInstaller: Return prerelease tags
  WindowsInstaller->>WindowsInstaller: Select matching nightly tag
  WindowsInstaller-->>User: Download resolved version or report unavailable release
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: support nightly installation on Windows.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-powershell-nightly-installer

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Windows PowerShell installer to correctly resolve YIIPRESS_VERSION=nightly by discovering the newest immutable nightly prerelease tag via the GitHub Releases API, aligning its behavior with the existing shell installer, and documenting the PowerShell nightly flow.

Changes:

  • Add nightly prerelease discovery (paginated GitHub Releases API lookup) to install.ps1.
  • Extend the installer unit test to assert the PowerShell script includes the nightly-resolution logic.
  • Document PowerShell nightly installation and clarify nightly tag/page-scanning behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
tests/Unit/Packaging/InstallerTest.php Adds assertions to ensure the PowerShell installer includes nightly-resolution logic.
install.ps1 Implements nightly tag discovery via GitHub prereleases with pagination.
docs/binaries-phar-docker.md Documents PowerShell nightly installation and clarifies nightly resolution rules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread install.ps1
Comment thread install.ps1 Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
tests/Unit/Packaging/InstallerTest.php (1)

259-267: 📐 Maintainability & Code Quality | 🔵 Trivial | 🏗️ Heavy lift

Add an executable test for the PowerShell nightly path.

These assertions only check literal text in install.ps1. The nightly behavior tests execute install.sh through runInstaller(), so they cannot detect regressions in PowerShell release parsing or pagination. Add PHPUnit coverage that invokes install.ps1 under Windows PowerShell or PowerShell 7 with controlled release responses.

🤖 Prompt for 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.

In `@tests/Unit/Packaging/InstallerTest.php` around lines 259 - 267, Add
executable PHPUnit coverage for the PowerShell nightly path in the installer
tests, alongside the existing assertions in the relevant test class. Invoke
install.ps1 through the available Windows PowerShell or PowerShell 7 executable,
stub controlled GitHub release responses, and verify nightly release parsing and
pagination behavior, including the no-release failure case.
🤖 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.

Nitpick comments:
In `@tests/Unit/Packaging/InstallerTest.php`:
- Around line 259-267: Add executable PHPUnit coverage for the PowerShell
nightly path in the installer tests, alongside the existing assertions in the
relevant test class. Invoke install.ps1 through the available Windows PowerShell
or PowerShell 7 executable, stub controlled GitHub release responses, and verify
nightly release parsing and pagination behavior, including the no-release
failure case.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d028b307-a6cb-4dbb-afeb-b6ba7657178f

📥 Commits

Reviewing files that changed from the base of the PR and between b093b72 and feb6044.

📒 Files selected for processing (3)
  • docs/binaries-phar-docker.md
  • install.ps1
  • tests/Unit/Packaging/InstallerTest.php

@samdark
samdark merged commit 18a92d1 into master Aug 6, 2026
1 check passed
@samdark
samdark deleted the fix-powershell-nightly-installer branch August 6, 2026 20:57
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.

2 participants