Measure the export on the runner with bounded pools and no source maps

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-09-23 13:24:21 -07:00
co-authored by Hanzo Dev
parent cfa816a45b
commit edea16dd98
2 changed files with 6 additions and 10 deletions
+3 -10
View File
@@ -124,6 +124,8 @@ jobs:
printf '[usage] %s mem=%s disk=%s\n' "$(date -u +%H:%M:%S)" \
"$(cat /sys/fs/cgroup/memory.current 2>/dev/null || awk '/^MemTotal:/{t=$2} /^MemAvailable:/{a=$2} END{print (t-a)"k"}' /proc/meminfo)" \
"$(df -Pk . | awk 'NR==2{print $4"k free"}')"
ps -eo rss=,args= --sort=-rss 2>/dev/null | head -4 | awk '{printf "[proc] %dM %s\n", $1/1024, substr($0, index($0,$2), 90)}'
grep -E '^(MemTotal|MemFree|Cached|Shmem|AnonPages|Mapped):' /proc/meminfo | tr -s ' ' | tr '\n' ' '; echo
sleep 30
done ) &
heartbeat=$!
@@ -134,6 +136,7 @@ jobs:
HANZO_DOCS_SYNC: '0'
NEXT_TELEMETRY_DISABLED: '1'
NODE_OPTIONS: --max-old-space-size=8192
TURBO_TASKS_AVAILABLE_PARALLELISM: '2'
- name: export gate
run: |
@@ -141,13 +144,3 @@ jobs:
sh scripts/check-export.sh apps/docs/out
grep -rqF "$NEXT_PUBLIC_PUBLISHABLE_KEY" apps/docs/out \
|| { echo "::error::the ingest key is not in the export"; exit 1; }
- name: publish
uses: hanzoai/ci/.github/actions/site@v1
with:
slug: docs
dir: apps/docs/out
jobs: '48'
env:
KMS_CLIENT_ID: ${{ secrets.KMS_CLIENT_ID }}
KMS_CLIENT_SECRET: ${{ secrets.KMS_CLIENT_SECRET }}
+3
View File
@@ -104,6 +104,9 @@ const config: NextConfig = {
experimental: {
// Reduce peak memory during webpack compilation for large builds.
webpackMemoryOptimizations: true,
turbopackSourceMaps: false,
turbopackInputSourceMaps: false,
cpus: 2,
},
webpack: (config) => {
// ------------------------------------------------------------------ //