Skip to content

refactor(scripts): move repository orchestration to Bun - #1554

Merged
FelixTJDietrich merged 1 commit into
mainfrom
1552-tooling-repository-orchestration
Aug 28, 2026
Merged

refactor(scripts): move repository orchestration to Bun#1554
FelixTJDietrich merged 1 commit into
mainfrom
1552-tooling-repository-orchestration

Conversation

@FelixTJDietrich

Copy link
Copy Markdown
Collaborator

Description

Replace the six substantive shell orchestration scripts under scripts/ with typed Bun entry points, so repository policy is linted, type-checked, and directly tested alongside the existing TypeScript tooling. Package commands, Jean hooks, CI workflows, and contributor documentation move with the implementations, while the nginx runtime entrypoint remains an explicit shell boundary because the final image does not contain Bun.

The migration uses structured process, filesystem, HTTP, JSON, SQL, hashing, and crypto APIs rather than shell interpolation. It also hardens destructive cleanup and interruption handling, keeps credentials out of process arguments and public files, and adds planted failure tests for database restoration and public-test input validation.

Fixes #1552

How to test

Automated checks run for this branch:

  • bun run format
  • bun run check
  • bun run test:webapp

Targeted smoke checks:

  • POSTGRES_PORT=65431 SERVER_PORT=65431 WEBAPP_PORT=65431 bun run check:ports -- --quiet exits with status 1.
  • bun run jean:public-test -- help lists start, stop, status, smoke, and seed-status.
  • bun scripts/db-utils.ts --help lists the database commands.

The credentialed E2E and internet-facing public-test flows require machine-local SCM/LLM credentials, Docker, PostgreSQL, and Coolify/Traefik, so they were not started in this checkout. Their configuration validation, cleanup, interruption, and secret-safe diagnostic paths are covered by bun run test:tooling.

Checklist

  • No changeset is required: this PR changes repository tooling, CI, and contributor documentation, not shipped application code.
  • No operator action or migration is required.

@FelixTJDietrich
FelixTJDietrich requested a review from a team as a code owner August 28, 2026 14:17
@coderabbitai

coderabbitai Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 53 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: cbef5b17-9a56-4510-acff-836db5f90242

📥 Commits

Reviewing files that changed from the base of the PR and between ca0c5af and 0149897.

📒 Files selected for processing (24)
  • .github/workflows/ci-quality-gates.yml
  • .github/workflows/cicd.yml
  • .github/workflows/qualify-bun-lockfile.yml
  • docs/contributor/e2e-testing.md
  • docs/contributor/local-development.mdx
  • jean.json
  • package.json
  • scripts/README.md
  • scripts/check-ports.sh
  • scripts/check-ports.ts
  • scripts/db-utils.sh
  • scripts/db-utils.ts
  • scripts/e2e-setup.sh
  • scripts/e2e-setup.ts
  • scripts/jean-public-test.sh
  • scripts/jean-public-test.ts
  • scripts/jean-setup.sh
  • scripts/jean-setup.ts
  • scripts/lib/env.ts
  • scripts/lib/process.ts
  • scripts/qualify-bun-lockfile.sh
  • scripts/qualify-bun-lockfile.ts
  • scripts/tooling-orchestration.test.ts
  • scripts/tsconfig.json

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added documentation Improvements or additions to documentation ci GitHub Actions, workflows, build pipeline changes dependencies Package updates, version bumps, lock file changes size:XXL This PR changes 1000+ lines, ignoring generated files. refactor Code restructuring without changing behavior labels Aug 28, 2026
@FelixTJDietrich
FelixTJDietrich force-pushed the 1552-tooling-repository-orchestration branch from 45fd553 to 0149897 Compare August 28, 2026 14:19
@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

📚 Documentation Preview

Preview has been removed (PR closed)

@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

🧩 Storybook Preview

Preview has been removed (PR closed)

@FelixTJDietrich
FelixTJDietrich merged commit 5728244 into main Aug 28, 2026
40 checks passed
@FelixTJDietrich
FelixTJDietrich deleted the 1552-tooling-repository-orchestration branch August 28, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci GitHub Actions, workflows, build pipeline changes dependencies Package updates, version bumps, lock file changes documentation Improvements or additions to documentation refactor Code restructuring without changing behavior size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(tooling): move repository orchestration from shell to typed Bun scripts

1 participant