feat: replace deployment shell scripts with TS/Node alternatives (COW-977)#66
Merged
lgahdl merged 4 commits intoMay 28, 2026
Conversation
Deploy M3
feat: COW-970/972/973/969/922 — timestamp policy, candidate expiry, ownerAddressType, GQL docs, bootstrap retry queue
…ves (COW-977) Replace manage.sh, deploy-remotely.sh, and static/start-db.sh with tsx scripts and inline compose config. Adds deploy:up/down/remote pnpm scripts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
yvesfracari
approved these changes
May 28, 2026
There was a problem hiding this comment.
would add a comment that this file is only for bleu development context
Contributor
Author
There was a problem hiding this comment.
Good call, added a note at the top of the file clarifying this is specific to Bleu's internal deployment workflow.
There was a problem hiding this comment.
this is also specific for bleu deployment context, right?
Contributor
Author
There was a problem hiding this comment.
Yes, exactly. Added the same note to manage.ts as well.
Clarify that manage.ts and deploy-remotely.ts are tailored to Bleu's internal deployment workflow, as requested in PR review. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace the three
.shfiles indeployment/with TypeScript/Node alternatives and declarative compose config. Removes an unnecessary security surface area and makes the deploy tooling easier to maintain and test.Changes
deployment/manage.sh→deployment/manage.ts(tsx script, same CLI interface)deployment/deploy-remotely.sh→deployment/deploy-remotely.ts(tsx script, same behavior)deployment/static/start-db.sh→ inlinecommand:flags indeployment/docker-compose.yml(fixed values for 1G memory limit default)deploy:up,deploy:down,deploy:remotescripts topackage.jsontsxto devDependenciesHow to Test
pnpm deploy:up --env-file deployment/.env --revision <rev>— verify docker compose up runspnpm deploy:down --env-file deployment/.env— verify stack tears downpnpm typecheck && pnpm lint— should passChecklist
Breaking Changes
None — all previous script behaviors are preserved via pnpm scripts and TS equivalents.
Related Issues
COW-977