Skip to content

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

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

A console build of vijayakrishnans/astro-site stopped at 03-docs:

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

The build box has python3 but not PyYAML. The hook imported yaml outside its try to read SITE_URL from intent.yaml, so the import failed with no message. The site was live on stage and prod; only the deployment record was missing. This is the bug blog-starter fixed in sourceplane/blog-starter#9, and this PR ports that fix unchanged.

  • hooks/render-deployment-docs.sh: site_url() uses PyYAML when present, and otherwise reads environments.<env>.env.SITE_URL by indentation, with the standard library only. The function is byte-identical to blog-starter's.
  • 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 AB-L.

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 vijayakrishnans/astro-site under a bare python3, renders all four URLs (site and /ssr, stage and prod) as LIVE (200).
  • manifest, phases, coverage, rebrand, retouch, bootstrap-defer and render pass locally. leak and placement were not run locally (they need orun v2.88.0); Baseline CI runs them.

Not yet proven: a console build through 03-docs. That needs baseline-v7 tagged on the merge and the registry bump in orun-cloud.

🤖 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 a console build (vijayakrishnans/astro-site) stopped
at 03-docs with its site live on stage and prod. blog-starter hit the same bug
and fixed it in sourceplane/blog-starter#9; this ports that fix.

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 AB-L.

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-06T11:55:55.374068Z f836d56 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 0d93972 into main Nov 6, 2026
5 checks passed
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