Skip to content

chore(ingest): make the EC2 fleet the default so MAPLE_INGEST_FLEETS can go - #967

Merged
Makisuo merged 3 commits into
mainfrom
chore/ingest-ec2-default
Sep 21, 2026
Merged

Makisuo merged 3 commits into
mainfrom
chore/ingest-ec2-default

Conversation

@Makisuo

@Makisuo Makisuo commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

prd has run the ingest gateway on the EC2 fleet alone since the 2026-09-21 cutover (#937, then MAPLE_INGEST_FLEETS=ec2). This makes that the default:

  • parseIngestFleets(undefined) is now { fargate: false, ec2: true }. The variable is only for bringing Fargate back (fargate,ec2 or fargate), so it can be deleted from Infisical prod after this merges.
  • PR previews follow the same default, so the preview:ingest-ec2 label and its MAPLE_INGEST_FLEETS line in deploy-pr-preview.yml are gone. A preview now exercises the same fleet shape as prd.
  • ingest-preview-verify.sh targets the EC2 service unless the job set MAPLE_INGEST_FLEETS=fargate.

Also, found while checking the cutover: every PR preview teardown has been failing since the stack started importing @maple-dev/alchemy/telemetry. alchemy:destroy:pr never ran alchemy:build-deps, so the destroy died on "Cannot find package" before touching a resource, and closed previews kept their VPC, ALB and hosts. The orphan sweep only covers Cloudflare, so nothing caught it; #937's preview (a c7gd host, an ALB, a VPC) was still running an hour after the merge. The destroy scripts now build deps first, same as deploy.

Tests updated; infra typecheck and the root alchemy tsconfig pass.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Changes
    • PR preview deployments now use EC2 ingest services by default.
    • Ingest fleet selection supports comma-separated, whitespace-insensitive configuration, including EC2-only, Fargate-only, or combined options.
    • Preview verification now selects the appropriate gateway service based on the configured fleet.
    • Resource destruction workflows now build required dependencies before cleanup.

…can go

prd has run on EC2 alone since the 2026-09-21 cutover. An unset
MAPLE_INGEST_FLEETS now means `ec2`, so the variable can be deleted from
Infisical; setting it is only for bringing Fargate back beside EC2 or alone.
Previews follow the same default, so the `preview:ingest-ec2` label and its
workflow plumbing go, and the verify script targets the EC2 service unless
the job asked for Fargate alone.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 09b36a4e-47ee-45ae-9907-3db583810ada

📥 Commits

Reviewing files that changed from the base of the PR and between 492ef66 and 74d586a.

📒 Files selected for processing (5)
  • .github/workflows/deploy-pr-preview.yml
  • package.json
  • packages/infra/src/aws/stage.test.ts
  • packages/infra/src/aws/stage.ts
  • scripts/ingest-preview-verify.sh
 ___________________________________________
< I am a verified code reviewer on Twitter. >
 -------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread scripts/ingest-preview-verify.sh Outdated
Makisuo and others added 2 commits September 21, 2026 20:11
`alchemy:destroy:pr` skipped `alchemy:build-deps`, so every PR teardown
since the stack started importing `@maple-dev/alchemy/telemetry` died on
"Cannot find package" before touching a resource, and closed previews kept
their VPC, ALB and hosts. The orphan sweep only covers Cloudflare, so nothing
caught it. PR #937's stack was still running an hour after the merge.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…e deploy does

Whitespace and comma membership, so a padded or combined value picks the
same service the stack actually ran.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Makisuo
Makisuo merged commit 89bba6b into main Sep 21, 2026
11 of 12 checks passed
@Makisuo
Makisuo deleted the chore/ingest-ec2-default branch September 21, 2026 18:14
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