Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Tighten artifact uploads: dist on failure only, honest retention (#7939)

Daniel Han638cd7af390a
diff --git a/.github/workflows/studio-frontend-ci.yml b/.github/workflows/studio-frontend-ci.yml
index 26e3652db88..816b83910b7 100644
--- a/.github/workflows/studio-frontend-ci.yml
+++ b/.github/workflows/studio-frontend-ci.yml
@@ -172,13 +172,20 @@ jobs:
run: npm run biome:check
- name: Upload built dist
- # Always upload so a green run is reviewable too -- the dist
- # output catches "tests passed but bundle changed unexpectedly"
- # regressions that would be invisible if we only kept artifacts
- # on failure.
- if: always()
+ # Failures only. This uploads a whole build directory (~35MB), and
+ # keeping it from green runs too made it the second-largest artifact
+ # family in the repo at ~3.5GB. Actions storage is not free on public
+ # repos, and exceeding the account allowance silently stops GitHub
+ # scheduling jobs org-wide, so a build tree retained purely for review
+ # is not worth that risk.
+ #
+ # The "bundle changed unexpectedly" check this previously enabled is
+ # better served by asserting on the build inside the job -- the size
+ # gate in build.sh is the existing precedent -- rather than by keeping
+ # every green run's output for inspection.
+ if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: studio-frontend-dist
path: studio/frontend/dist
- retention-days: 3
+ retention-days: 1
diff --git a/.github/workflows/studio-mac-ui-smoke.yml b/.github/workflows/studio-mac-ui-smoke.yml
index 3bed2fcdff4..09969ac01db 100644
--- a/.github/workflows/studio-mac-ui-smoke.yml
+++ b/.github/workflows/studio-mac-ui-smoke.yml
@@ -352,4 +352,7 @@ jobs:
logs/playwright-permissions-*
logs/playwright_extra
logs/studio-permissions-*.log
- retention-days: 7
+ # 1 day, matching the repository-wide cap. A larger value here is
+ # silently clamped to that cap today, so stating 7 only invites the
+ # artifacts to re-inflate if the cap is ever raised.
+ retention-days: 1
diff --git a/.github/workflows/studio-ui-smoke.yml b/.github/workflows/studio-ui-smoke.yml
index e04b7ce4c7a..2c4e143f493 100644
--- a/.github/workflows/studio-ui-smoke.yml
+++ b/.github/workflows/studio-ui-smoke.yml
@@ -370,4 +370,7 @@ jobs:
logs/playwright_modelcfg
logs/playwright_ime
logs/studio-permissions-*.log
- retention-days: 7
+ # 1 day, matching the repository-wide cap. A larger value here is
+ # silently clamped to that cap today, so stating 7 only invites the
+ # artifacts to re-inflate if the cap is ever raised.
+ retention-days: 1
diff --git a/.github/workflows/studio-windows-ui-smoke.yml b/.github/workflows/studio-windows-ui-smoke.yml
index d23cca323f3..894672a85a2 100644
--- a/.github/workflows/studio-windows-ui-smoke.yml
+++ b/.github/workflows/studio-windows-ui-smoke.yml
@@ -411,4 +411,7 @@ jobs:
logs/playwright-permissions-*
logs/playwright_extra
logs/studio-permissions-*.log
- retention-days: 7
+ # 1 day, matching the repository-wide cap. A larger value here is
+ # silently clamped to that cap today, so stating 7 only invites the
+ # artifacts to re-inflate if the cap is ever raised.
+ retention-days: 1