Skip to content

03-docs: render the deployment record without PyYAML - #9

Merged
vijayakrishnans merged 1 commit into
mainfrom
claude/render-without-pyyaml
Nov 6, 2026
Merged

vijayakrishnans merged 1 commit into
mainfrom
claude/render-without-pyyaml

Conversation

@vijayakrishnans

Copy link
Copy Markdown
Contributor

What

The first console build to reach 03-docs (vijayakrishnans/blog-starter-kit-5) stopped there:

hook "render" (bash …/hooks/render-deployment-docs.sh . org_… …): exit status 1

The build box (apps/compute-worker/box/Dockerfile in orun-cloud, node:24-trixie-slim) installs python3 but not PyYAML. The hook imported yaml outside its try to read SITE_URL from intent.yaml, so the import failed silently. The site was live on stage and prod; only the record was missing. Local and CLI runs have PyYAML, which is why the CLI build of hired-in-the-ai-era passed this phase.

  • hooks/render-deployment-docs.sh: uses PyYAML when present, and otherwise reads environments.<env>.env.SITE_URL by indentation, with the standard library only.
  • testing/render.test.sh (new, in Baseline CI's contract tests): runs the hook under a python3 with no third-party packages and with the system one. Both must render the record and read a SITE_URL the same way.
  • Records risk BS-H.

Checked

  • The new test passes. Against the old hook it fails with the same ModuleNotFoundError: No module named 'yaml'.
  • The fixed hook, run on a clone of blog-starter-kit-5 under the bare python3, renders all four URLs as LIVE (200).
  • manifest, phases, coverage, rebrand, retouch, bootstrap-defer, leak and placement pass locally.

Not yet proven: a console build through 03-docs. That needs baseline-v5 and the registry bump.

portfolio-starter-kit carries the same hook (only its probe differs) and likely has the same bug.

🤖 Generated with Claude Code

The build box has python3 but not PyYAML, and render-deployment-docs.sh
imported yaml outside its try block to read SITE_URL. The import failed with
exit 1 and no message, so the first console build to reach 03-docs stopped
there with its site live. Local and CLI runs had PyYAML and passed.

The hook uses PyYAML when present and otherwise reads
environments.<env>.env.SITE_URL by indentation. testing/render.test.sh runs it
under a python3 with no third-party packages, and Baseline CI runs that test.
Records risk BS-H.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T02:39:17.476607Z 3bfa47e PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vijayakrishnans
vijayakrishnans merged commit 033692a into main Nov 6, 2026
5 checks passed
This was referenced Nov 6, 2026
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.

1 participant