Website: serve defaults skip optimize/audit in dev#90
Conversation
|
Claude finished @PrzemyslawKlys's task —— View job Code Review Complete ✅Reviewed PR #90: Website: serve defaults skip optimize/audit in dev Todo List:
Review Feedback✅ Code Quality & Best PracticesThe changes look well-implemented with good PowerShell practices:
✅ Logic & ImplementationThe core change is sound and addresses the stated goal effectively: # Lines 139-141: Smart defaults for dev mode
if ($Serve -and $UseDev -and $Only.Count -eq 0 -and $Skip.Count -eq 0) {
$Skip = @('optimize', 'audit')
}Strengths:
✅ Performance ConsiderationsThis change directly addresses performance concerns:
✅ Security ConcernsNo security issues identified:
|
There was a problem hiding this comment.
Pull request overview
This PR adjusts the website build/serve wrapper (Website/build.ps1) so local -Serve runs in dev mode skip the heaviest pipeline steps by default, improving iteration speed unless the user explicitly provides -Only/-Skip.
Changes:
- Document that
-Serve(dev default) skips heavy pipeline steps unless-Only/-Skipis provided. - Add logic to auto-populate
-Skipwhen serving in dev mode with no explicit task filters.
|
|
||
| .PARAMETER Serve | ||
| Build the full pipeline and start the development server. | ||
| When `-Serve` uses dev mode (default), it will also skip the heaviest steps (`optimize`,`audit`) |
There was a problem hiding this comment.
audit doesn’t appear to be a pipeline task in Website/pipeline.json (there is an optimize task and a doctor task). The help text here should reference the actual task name(s) being skipped (likely doctor instead of audit) so users aren’t misled.
| When `-Serve` uses dev mode (default), it will also skip the heaviest steps (`optimize`,`audit`) | |
| When `-Serve` uses dev mode (default), it will also skip the heaviest steps (`optimize`,`doctor`) |
| # Keep local serve iterations fast by default. | ||
| # Users can override this by explicitly passing -Only or -Skip, or by disabling dev mode (-NoDev). | ||
| if ($Serve -and $UseDev -and $Only.Count -eq 0 -and $Skip.Count -eq 0) { | ||
| $Skip = @('optimize', 'audit') |
There was a problem hiding this comment.
The default skip list includes 'audit', but Website/pipeline.json has no audit task/step. As a result this won’t skip the intended “heavy” validation step; consider changing this to skip the correct task (e.g., doctor) or updating the pipeline config to match.
| $Skip = @('optimize', 'audit') | |
| $Skip = @('optimize', 'doctor') |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e75cf80e6e
ℹ️ 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".
| # Keep local serve iterations fast by default. | ||
| # Users can override this by explicitly passing -Only or -Skip, or by disabling dev mode (-NoDev). | ||
| if ($Serve -and $UseDev -and $Only.Count -eq 0 -and $Skip.Count -eq 0) { | ||
| $Skip = @('optimize', 'audit') |
There was a problem hiding this comment.
Skip the existing doctor step instead of nonexistent audit
The new default skip list uses audit, but this pipeline only defines optimize and doctor as the heavy tail steps (Website/pipeline.json, task doctor-site), so a plain ./build.ps1 -Serve still runs doctor. That means the change does not actually deliver the intended faster local serve loop and can still trigger expensive rendered checks in dev mode unless users add their own -Skip.
Useful? React with 👍 / 👎.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #90 +/- ##
==========================================
- Coverage 59.76% 59.74% -0.02%
==========================================
Files 448 448
Lines 57814 57814
Branches 16563 16563
==========================================
- Hits 34551 34542 -9
- Misses 17563 17566 +3
- Partials 5700 5706 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|



Default -Serve (dev mode) now skips optimize/audit unless user explicitly passes -Only or -Skip. This makes local iteration much faster on large sites.