Enforce shrink-only typecheck baselines

This commit is contained in:
Brennan Benson
2026-08-28 03:09:31 -07:00
parent 3c58b774c6
commit 12bc334bb5
6 changed files with 122 additions and 11 deletions
+14
View File
@@ -34,6 +34,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 2
- name: Load base mobile diagnostic baseline
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: |
set -euo pipefail
git cat-file -e "$BASE_SHA^{commit}"
if git cat-file -e "$BASE_SHA:mobile/typecheck-test-diagnostics.json" 2>/dev/null; then
base_baseline="$RUNNER_TEMP/typecheck-mobile-base.json"
git show "$BASE_SHA:mobile/typecheck-test-diagnostics.json" > "$base_baseline"
echo "TYPECHECK_BASELINE_BASE_PATH=$base_baseline" >> "$GITHUB_ENV"
fi
- name: Setup Node.js
uses: actions/setup-node@v6
+13
View File
@@ -209,8 +209,21 @@ jobs:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 2
persist-credentials: false
- name: Load base E2E diagnostic baseline
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: |
set -euo pipefail
git cat-file -e "$BASE_SHA^{commit}"
if git cat-file -e "$BASE_SHA:config/typecheck-e2e-diagnostics.json" 2>/dev/null; then
base_baseline="$RUNNER_TEMP/typecheck-e2e-base.json"
git show "$BASE_SHA:config/typecheck-e2e-diagnostics.json" > "$base_baseline"
echo "TYPECHECK_BASELINE_BASE_PATH=$base_baseline" >> "$GITHUB_ENV"
fi
- uses: ./.github/actions/install-node-dependencies
# Why: every project is `composite`, so tsc already writes a .tsbuildinfo that lets