Skip to content

Commit 31c3ce4

Browse files
author
DavidQ
committed
Adds runnable validation entry point for all repo validation scripts.
BUILD_PR_LEVEL_10_02_SCRIPT_VALIDATION_RUNNER
1 parent 66e943c commit 31c3ce4

8 files changed

Lines changed: 35 additions & 42 deletions

File tree

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
/*.zip
1515

1616
# Ignore specific files in the docs/dev directory
17-
/docs/dev/CODEX_COMMANDS.md
18-
/docs/dev/COMMIT_COMMENT.txt
19-
/docs/dev/NEXT_COMMANDS.txt
20-
/docs/dev/commit_comment.txt
17+
docs/dev/CODEX_COMMANDS.md
18+
docs/dev/COMMIT_COMMENT.txt
19+
docs/dev/NEXT_COMMANDS.txt
20+
docs/dev/commit_comment.txt
2121

docs/dev/CODEX_COMMANDS.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ MODEL: GPT-5.4
22
REASONING: high
33

44
COMMAND:
5-
- create deploy documentation covering full flow
6-
- include usage examples for scripts/PS/deploy/
7-
- include dry-run and validation usage
8-
- include monitoring + rollback guidance
9-
- commit format:
10-
description first line
11-
PR name last line
12-
- update roadmap status only
5+
- create Validate-All.ps1
6+
- call Validate-ScriptStructure.ps1
7+
- output pass/fail summary

docs/dev/COMMIT_COMMENT.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
Add full deploy operator handoff documentation with script examples, dry-run/validation workflows, monitoring artifacts, and rollback/abort guidance.
2-
BUILD_PR_LEVEL_09_32_DEPLOY_DOCUMENTATION_AND_HANDOFF
1+
Adds runnable validation entry point for all repo validation scripts.
2+
3+
BUILD_PR_LEVEL_10_02_SCRIPT_VALIDATION_RUNNER

docs/dev/NEXT_COMMAND.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
BUILD_PR_LEVEL_10_01_TRANSITION_TO_NEXT_PHASE
1+
BUILD_PR_LEVEL_10_03_VALIDATION_INTEGRATION
Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1 @@
1-
BUILD_PR_LEVEL_09_32_DEPLOY_DOCUMENTATION_AND_HANDOFF
2-
3-
Scope:
4-
- Docs-only deploy lane finalization and operator handoff.
5-
- No engine/runtime/tool UI/script behavior changes.
6-
7-
Implemented:
8-
- Expanded `docs/dev/CODEX_WEBSITE_REPO_DEPLOYMENT_SCRIPTING.md` to document:
9-
- full deploy flow across prep/update/clean scripts
10-
- script usage examples under `scripts/PS/deploy/`
11-
- `.env` config usage and normalized `DEPLOY_*` variables
12-
- dry-run workflow and validation usage
13-
- monitoring artifacts (`ops-state`, `ops-log`, `last-verify`)
14-
- rollback/abort expectations with practical command examples
15-
- Updated commit comment to required format:
16-
- description on first line
17-
- PR identifier on last line
18-
19-
Outcome:
20-
- Deploy lane now has a clear, end-to-end operator runbook aligned to the current deploy script surface.
1+
Adds executable validation runner script.
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
[x] Deploy documentation covers full prep/update/clean flow
2-
[x] Usage examples included for scripts under `scripts/PS/deploy/`
3-
[x] Dry-run and validation usage documented
4-
[x] Monitoring artifacts and operator triage guidance documented
5-
[x] Rollback/abort expectations documented with command examples
6-
[x] Commit comment format matches requirement (description first line, PR name last line)
7-
[x] Roadmap updated with status-only change
1+
[ ] run scripts/PS/validate/Validate-All.ps1
2+
[ ] PASS/FAIL output shown
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# BUILD_PR — LEVEL 10_02 — SCRIPT VALIDATION RUNNER
2+
3+
## Objective
4+
Add a unified runner script to execute all validation scripts (testable).
5+
6+
## What to Execute
7+
PowerShell:
8+
scripts/PS/validate/Validate-All.ps1
9+
10+
Expected:
11+
- runs Validate-ScriptStructure.ps1
12+
- outputs PASS/FAIL summary

scripts/PS/validate/Validate-All.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,18 @@ if (-not (Test-Path -LiteralPath $validatorPath)) {
1111
throw "Missing validation entrypoint: $validatorPath"
1212
}
1313

14+
$global:LASTEXITCODE = 0
1415
if ($Json.IsPresent) {
1516
& $validatorPath -Json
1617
}
1718
else {
1819
& $validatorPath
1920
}
21+
22+
$validatorExitCode = if ($null -eq $LASTEXITCODE) { 0 } else { [int]$LASTEXITCODE }
23+
$summary = if ($validatorExitCode -eq 0) { "PASS" } else { "FAIL" }
24+
Write-Host "Validate-All summary: $summary"
25+
26+
if ($validatorExitCode -ne 0) {
27+
exit $validatorExitCode
28+
}

0 commit comments

Comments
 (0)