Skip to content

[AISAGE-502] ci: build the ai-gateway app on relevant changes - #7105

Merged
chrarnoldus merged 2 commits into
mainfrom
ci/ai-gateway-build
Oct 5, 2026
Merged

chrarnoldus merged 2 commits into
mainfrom
ci/ai-gateway-build

Conversation

@chrarnoldus

Copy link
Copy Markdown
Contributor

Summary

Prep PR split out of #7052. Adds a build-ai-gateway CI job that runs next build for apps/ai-gateway, so a broken gateway build fails on the PR rather than at deploy time. The gateway is already on main (#6806) but CI never builds it.

  • The job uses the same dummy environment as the web build job. It also copies apps/web/.env and apps/web/.env.test into the app directory, because the gateway runs with the web app's environment (see apps/ai-gateway/scripts/dev.sh).
  • A new ai_gateway paths filter gates the job. It matches apps/ai-gateway/**, packages/**, the web env files, ci.yml, package.json and the lockfile. packages/** is broad on purpose: web-shared imports many workspace packages and their dependencies, and the build takes about a minute.
  • The filter is in both the first attempt and the retry, and scripts/changes-filter-retry.test.mjs now expects the new filter name.
  • Failures on main still notify Slack through notify-main-failure.yml, which watches the whole CI run.

Verification

Visual Changes

N/A

Reviewer Notes

This PR changes ci.yml, so the cloud-agent-next suite runs on it too. That suite flaked once on #7052 (a miniflare worker exited unexpectedly) and passed on rerun.

Run next build for apps/ai-gateway with the same dummy environment the web
build uses whenever the app, a workspace package, or the lockfile changes,
so a broken gateway build fails before it reaches a deploy.
@chrarnoldus chrarnoldus self-assigned this Oct 2, 2026
@kilo-code-bot

kilo-code-bot Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

CI-only change: the build-ai-gateway job mirrors the web build's dummy env setup, gates on the new ai_gateway output, and the ai_gateway filter is byte-identical in both the first and retry attempts, with scripts/changes-filter-retry.test.mjs pinning the new filter name. No defects found in the changed lines.

Files Reviewed (2 files)
  • .github/workflows/ci.yml
  • scripts/changes-filter-retry.test.mjs

Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0

Review guidance: REVIEW.md from base branch main

@chrarnoldus
chrarnoldus merged commit 9133f72 into main Oct 5, 2026
45 of 47 checks passed
@chrarnoldus
chrarnoldus deleted the ci/ai-gateway-build branch October 5, 2026 10:34
@chrarnoldus chrarnoldus changed the title ci: build the ai-gateway app on relevant changes [AISAGE-502] ci: build the ai-gateway app on relevant changes Oct 19, 2026
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