Skip to content

chore(ci): move examples/scripts to root scripts/ — it's CI tooling, not examples#81

Merged
wmadden merged 1 commit into
mainfrom
chore/move-ci-scripts-to-root
Jul 15, 2026
Merged

chore(ci): move examples/scripts to root scripts/ — it's CI tooling, not examples#81
wmadden merged 1 commit into
mainfrom
chore/move-ci-scripts-to-root

Conversation

@wmadden-electric

Copy link
Copy Markdown
Contributor

The last open #68 review comment: "Why does `examples` have a `scripts/` dir?"

It held shared e2e-deploy CI tooling — ci-cleanup, the FT-5226 cold-connect canary, destroy-guard — not example apps. Moved to root scripts/ beside the rest of the repo tooling.

Refs fixed:

  • e2e-deploy.yml: bun examples/scripts/cold-connect-canary.tsbun scripts/…
  • deploy-verify-destroy action: ../scripts/… (relative to the varying working-directory) → ${{ github.workspace }}/scripts/… (absolute, depth-independent)
  • test:scripts glob and a gotchas.md reference

Pure move + path updates; no script logic changed. pnpm test:scripts (111) and pnpm lint green.

🤖 Generated with Claude Code

@pkg-pr-new

pkg-pr-new Bot commented Jul 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@prisma/composer@81
npm i https://pkg.pr.new/@prisma/composer-prisma-cloud@81

commit: 4381de4

@wmadden-electric
wmadden-electric force-pushed the chore/move-ci-scripts-to-root branch from cf01425 to e5b6b5d Compare July 15, 2026 15:39
…not examples

`examples/scripts/` held shared e2e-deploy CI tooling (ci-cleanup, the
cold-connect canary, destroy-guard), not example apps. Move it to root
`scripts/` alongside the other repo tooling and fix the refs:

- e2e-deploy.yml: `bun examples/scripts/...` → `bun scripts/...`
- deploy-verify-destroy action: `../scripts/...` (working-dir-relative) →
  `${{ github.workspace }}/scripts/...` (absolute, so it's independent of the
  varying working-directory input)
- test:scripts glob and a gotchas.md reference

Addresses a #68 review comment ("Why does `examples` have a `scripts/` dir?").

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
@wmadden
wmadden force-pushed the chore/move-ci-scripts-to-root branch from e5b6b5d to 4381de4 Compare July 15, 2026 16:02
@wmadden
wmadden enabled auto-merge (rebase) July 15, 2026 16:02
@wmadden
wmadden merged commit 653f0d3 into main Jul 15, 2026
14 of 15 checks passed
@wmadden
wmadden deleted the chore/move-ci-scripts-to-root branch July 15, 2026 16:12
@wmadden-electric

Copy link
Copy Markdown
Contributor Author

Added a second commit: the Test failure here wasn't from moving the scripts — it's a pre-existing flake on main. The node-compat smoke test spawns a cold node bin.ts (type-strips + loads the whole CLI graph), which runs 5-6s on a slow runner, past bun test's 5s default; spawnSync is synchronous so bun marks it failed only after it returns. The rename made the graph heavier, so it's been red intermittently on main. Gave the two cases a 30s timeout. (Happy to split this into its own PR if you'd rather keep this one to just the move.)

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.

2 participants