Repository navigation
Complete stable preview guards, runner bootstrap and version footer - #69
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. WalkthroughThe resolver now checks preview consent before package validation across manifest, ZIP and consent-entrypoint paths. Guide-site builds now return from the Dependencies stage before loading settings. Tests cover dependency installation and unapproved package resolution. ChangesPreview package consent
Guide-site dependency stage
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Possibly related PRs
Merge Risk:
|
There was a problem hiding this comment.
🔵 Needs a closer look
Required hosted Linux CI evidence is missing, and human verification is needed to confirm fresh-runner dependency bootstrap behavior and resolution of reported governance-test failures.
No open issues 🎉
What changed in this PR
This PR fixes dependency bootstrap ordering for fresh Linux consumer builds and moves preview-consent checks ahead of package-owned validation code.
Changes:
- Runs the Dependencies stage before settings parsing, after platform identity and consent validation, preserving the requested installation scope.
- Checks preview consent earlier for local directories, ZIP packages, and the dedicated consent entrypoint.
- Adds regression tests for dependency ordering and scope, and rejection before package validation executes.
| File | Description |
|---|---|
tests/Core/PreviewPlatformUsage.Tests.ps1 |
Adds package-validation tripwires for unapproved preview selections. |
tests/Core/CompleteGuideBuild.Tests.ps1 |
Verifies dependency installation uses CurrentUser before settings parsing. |
system/OpenGuidePlatform.PowerShell.GuideSiteBuild/GuideSiteBuild/Invoke-GuideSiteBuild.ps1 |
Moves settings parsing after the Dependencies-stage return. |
system/OpenGuidePlatform.PowerShell.GuideSiteAdoption/Resolve-OpenGuidePlatform.ps1 |
Moves preview-consent checks before package-owned validation and ZIP extraction. |
Review effort: Balanced
|
Prepare completed. Workflow evidence. This is the candidate assessment, not independent policy or deployment approval. Prepare: passCommit: 76320a5 · Platform: 0.0.0-local · Target: canary Selection: v0.0.0-local; resolved: v0.0.0-local; OGP ring: preview.
Guide statusNo guide fixes identified by these checks. Artifact and live-site checks run in later stages. |
|
Preview deployed for commit 7f19ada: https://blue-field-06cea8c03-69.westeurope.6.azurestaticapps.net/. Live verification follows in Actions. |
|
Preview deployed for commit 76320a5: https://blue-field-06cea8c03-69.westeurope.6.azurestaticapps.net/. Live verification follows in Actions. |
Fresh Linux consumer builds failed before Dependencies could install powershell-yaml with the runner's explicit CurrentUser scope: settings parsing invoked the AllUsers fallback first. Run dependency installation after platform identity/consent validation and before settings parsing, preserving the local AllUsers default.
Also reject unapproved local preview directories and ZIPs before executing package-owned validation scripts. Explicit, exact, expiring consent remains mandatory for temporary preview testing; production continues to reject previews.
Regression coverage exercises dependency ordering/scope and package-code tripwires for directory, ZIP and dedicated consent entrypoints. Publish a new stable patch only after Linux CI passes, then adopt it through the four existing site PRs. No preview consumer adoption is authorised.
Validation: focused Pester 5.7.1 suites passed (20 before the consent-order extension, then 16 covering the final changed paths). Independent review of the exact four-file diff found no substantive issues. Full Windows run: 652 passed, 28 failed, 3 skipped; 23 missing-GitVersion failures cleared after restoring the workspace tool. Five unchanged governance tests still reject linked trusted paths on the restored Windows environment. Per operator decision, passing full hosted Linux CI is mandatory before merge/publication; no acceptance check is waived or weakened.
The shared footer now implements the agreed one-paragraph wording: SITE_VERSION of this site was built by OpenGuidePlatform PLATFORM_VERSION · Design and theme by Martin Hinshelwood. Both names link to the approved URLs; the build injects platform and site versions separately. Rendered footer/SEO tests (6), updated Prepare overlay test (1), and both root sample targets passed. Exact footer diff independently reviewed without findings. The restored C: source path is a junction to D:; canonical D: checkout validation preserves all linked-path guards. Full final-revision Linux CI must pass.
The approved credit is exposed as components/site-build-credit.html so Kanban's bespoke homepage footer can use the identical text during adoption. Final shared partial independently reviewed; rendered tests and both sample targets passed. No bespoke footer is removed.