Website: dev pipeline mode + task filters#89
Conversation
|
Claude finished @PrzemyslawKlys's task —— View job PR Review: Website dev pipeline mode + task filtersReviewing the changes to add development mode and task filtering capabilities to the website build script. Todo List:
Review FeedbackThis PR adds useful development workflow features to the build script. The implementation is well-structured and follows PowerShell best practices. Here's my detailed analysis: ✅ StrengthsCode Quality & Best Practices:
Feature Design:
🔍 Minor ObservationsParameter Logic (lines 132-139): $UseDev = ($Dev -or ($Serve -and -not $NoDev))
$UseFast = ($Fast -or ($Serve -and -not $NoFast))This correctly prioritizes explicit flags while providing sensible defaults for serve mode. Array Handling (lines 140-145): if ($Only -and $Only.Count -gt 0) {
$pipelineArgs += @('--only', ($Only -join ','))
}🛡️ Security AssessmentLow Risk: The script safely handles user input:
⚡ Performance ConsiderationsEfficient Implementation:
🧪 Testing ConsiderationsMissing but Acceptable:
Suggested Testing:
📋 Minor Suggestions
✅ Overall AssessmentThis is a high-quality PR that adds valuable development workflow improvements. The implementation is:
The features directly address the stated goal of "improving local iteration by allowing selective pipeline execution" and follow established patterns in the existing codebase. Recommendation: ✅ Approve - Ready to merge. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 932567a369
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
|
|
||
| try { | ||
| $UseDev = ($Dev -or ($Serve -and -not $NoDev)) |
There was a problem hiding this comment.
Honor -NoFast when serving with default dev mode
When -Serve is used, $UseDev becomes true unless -NoDev is set, so the script always appends --dev before it ever considers $UseFast. Since this script documents --dev as implying fast mode, ./build.ps1 -Serve -NoFast still runs in fast mode, which breaks the documented contract that -NoFast disables fast mode in serve flows.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Pull request overview
Updates the website build script to support a “dev pipeline mode” and task-level filtering, improving local iteration by letting developers run only parts of the PowerForge.Web pipeline.
Changes:
- Add
-Dev/-NoDevswitches and default dev behavior when-Serveis used. - Add
-Onlyand-Skiptask filters and pass them through topowerforge-web pipeline(--only/--skip). - Refactor pipeline invocation to a single
$pipelineArgsargument list.
| Run only the specified pipeline tasks (comma/semicolon separated), for example: build,verify. | ||
|
|
||
| .PARAMETER Skip | ||
| Skip the specified pipeline tasks (comma/semicolon separated), for example: optimize,doctor. |
There was a problem hiding this comment.
The help text says -Only/-Skip accept comma/semicolon-separated values, but semicolons won’t work as a separator in PowerShell invocation (they terminate the statement unless quoted), and the script does not split ; when building --only/--skip (it just joins the array with ,). Please either remove the semicolon mention from the parameter docs or add parsing that splits incoming strings on ; (and possibly ,) into task names before joining/passing through.
| Run only the specified pipeline tasks (comma/semicolon separated), for example: build,verify. | |
| .PARAMETER Skip | |
| Skip the specified pipeline tasks (comma/semicolon separated), for example: optimize,doctor. | |
| Run only the specified pipeline tasks (comma-separated), for example: build,verify. | |
| .PARAMETER Skip | |
| Skip the specified pipeline tasks (comma-separated), for example: optimize,doctor. |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #89 +/- ##
=======================================
Coverage 59.75% 59.75%
=======================================
Files 448 448
Lines 57814 57814
Branches 16563 16563
=======================================
Hits 34548 34548
- Misses 17565 17566 +1
+ Partials 5701 5700 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|



Website/build.ps1: add -Dev/-NoDev, -Only, and -Skip and pass through to powerforge-web pipeline (--dev/--fast/--only/--skip).
This improves local iteration by allowing selective pipeline execution (e.g. -Dev -Skip optimize,doctor).