Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/actions/lint-format-verify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ description: >
runs:
using: composite
steps:
- name: Typecheck application
shell: bash
run: pnpm typecheck

- name: Verify lint and format
shell: bash
run: |
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/release-branch-ci-alert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Alerts the release owners when a post-merge release branch no longer
# typechecks or passes the shared lint/format invariants.
name: 'Release branch CI alert'

on:
workflow_run:
workflows: ['CI: Lint Format']
types: [completed]
branches:
- 'cloud/**'
- 'core/**'

permissions:
contents: read

jobs:
notify:
if: >-
github.event.workflow_run.event == 'push' &&
github.event.workflow_run.conclusion == 'failure'
runs-on: ubuntu-latest
steps:
- name: Post failure to frontend releases
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_CHANNEL_ID: ${{ vars.SLACK_FRONTEND_RELEASES_CHANNEL_ID }}
BRANCH: ${{ github.event.workflow_run.head_branch }}
RUN_URL: ${{ github.event.workflow_run.html_url }}
SHA: ${{ github.event.workflow_run.head_sha }}
run: |
if [ -z "$SLACK_CHANNEL_ID" ]; then
echo "::warning::SLACK_FRONTEND_RELEASES_CHANNEL_ID is unset — skipping Slack notification."
exit 0
fi

TEXT="Post-merge CI failed on ${BRANCH} at ${SHA:0:7}. ${RUN_URL}"
BODY=$(jq -n --arg ch "$SLACK_CHANNEL_ID" --arg text "$TEXT" \
'{channel: $ch, text: $text}')
RESPONSE=$(curl -sS -X POST \
--connect-timeout 10 --max-time 30 \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H 'Content-Type: application/json' \
-d "$BODY" \
https://slack.com/api/chat.postMessage)
if ! jq -e '.ok == true' <<<"$RESPONSE" >/dev/null; then
echo "Slack rejected the notification: $(jq -r '.error // "unparseable response"' <<<"$RESPONSE")"
exit 1
fi
13 changes: 13 additions & 0 deletions docs/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ All releases use `release-version-bump.yaml`. Effects differ by bump type:
| Patch | `core/X.Y` | No | **Draft** (uncheck "latest") |
| Prerelease | any | No | Draft + prerelease |

## Generated API types on release branches

Never hand-edit files under `packages/ingest-types/src`, including in a
backport. The Cloud repository owns the source OpenAPI contract and generates
the frontend package for `main` and every active `cloud/x.y` line named in its
`frontend-version.json`. A release branch must accept that generated contract
or a newer one; unrelated generated changes are expected when a release line
has fallen behind.

If a backport needs a generated type, update the Cloud OpenAPI source and use
the typegen automation. Do not copy or recreate one declaration in a generated
file.

**Minor bump** (e.g. 1.41→1.42): freezes the previous minor into `core/1.41`
and `cloud/1.41`, branched from the commit _before_ the bump. Nightly patch
bumps on `main` are convenience snapshots — no branches created.
Expand Down
Loading