unsloth/.github/workflows
Daniel Han 4e1f1e959a ci(windows): do not pre-create dist/node_modules before Defender exclusion
Run 25546676715 / job 74984469728 (Windows Studio UI CI / Chat UI Tests)
broke on the previous commit (2843e2a9). Symptom:

  install.log:  "frontend  up to date"
  studio.log:   FileNotFoundError:
                D:\\a\\unsloth\\unsloth\\studio\\frontend\\dist\\index.html
  Playwright:   TimeoutError waiting for "#new-password" (60s)

Root cause: the Pre-install Windows tweaks step's loop did

  if (-not (Test-Path $p)) { New-Item -ItemType Directory -Force -Path $p }
  Add-MpPreference -ExclusionPath $p

before install.ps1 ran. That created an empty studio/frontend/dist
directory whose mtime was newer than every source file. setup.ps1's
mtime-based "is the frontend stale?" check at studio/setup.ps1
line 1281-1296 then concluded "frontend up to date, skip rebuild",
so vite never wrote anything into dist. Studio booted with an empty
dist directory and crashed on GET /change-password (the static-file
handler at studio/backend/main.py:489 read_bytes()'d a non-existent
index.html).

The same trap broke the frontend-dist actions/cache attempt earlier
in this branch (commit d65f8b19 -> reverted in e1345d5f). Same root
cause: any process that puts a fresh-mtime directory at
studio/frontend/dist before the build silences the Vite rebuild.

Fix: drop the New-Item call. Add-MpPreference accepts paths that do
not yet exist; the exclusion is registered and applies when the path
materialises. The failure is bisected to this single line, and reverting
just that line restores green.

Applied identically to all 4 Windows workflows so api/ui/update/inference
jobs all stay green.
2026-05-08 09:08:46 +00:00
..
consolidated-tests-ci.yml ci(core): factor llama.cpp build out of consolidated matrix into its own job 2026-05-08 08:44:38 +00:00
lint-ci.yml CI: SHA-pin every action; fix 4 bugs in advisory-audit 2026-05-07 01:12:40 +00:00
mlx-ci.yml ci(mac): make Mac smoke tests robust to Metal output drift 2026-05-07 05:38:17 +00:00
notebooks-ci.yml CI(notebooks): api-introspect installs unsloth from local checkout 2026-05-07 12:58:34 +00:00
release-desktop.yml Fix Studio desktop tray installer and titlebar and bux fixes (#5179) 2026-04-30 08:40:39 -07:00
security-audit.yml CI: SHA-pin every action; fix 4 bugs in advisory-audit 2026-05-07 01:12:40 +00:00
stale.yml CI: SHA-pin every action; fix 4 bugs in advisory-audit 2026-05-07 01:12:40 +00:00
studio-api-smoke.yml CI(studio): fix 4 real failures surfaced by the new smoke jobs 2026-05-07 04:20:11 +00:00
studio-backend-ci.yml CI: SHA-pin every action; fix 4 bugs in advisory-audit 2026-05-07 01:12:40 +00:00
studio-frontend-ci.yml CI(studio): always-upload artifacts + gate /api/system + path/health plumbing 2026-05-07 04:09:09 +00:00
studio-inference-smoke.yml ci(inference): trim tool-calling test wall-time roughly 50% 2026-05-08 08:54:08 +00:00
studio-mac-api-smoke.yml ci(mac): add Mac Studio API/UI/GGUF CI workflows 2026-05-07 05:14:51 +00:00
studio-mac-inference-smoke.yml ci(inference): trim tool-calling test wall-time roughly 50% 2026-05-08 08:54:08 +00:00
studio-mac-ui-smoke.yml ci(mac): single-process Chromium + JSON.parse try/catch in pipeTransport 2026-05-07 11:05:32 +00:00
studio-mac-update-smoke.yml ci(mac): add Mac Studio Update CI 2026-05-07 05:08:43 +00:00
studio-tauri-smoke.yml CI(studio): always-upload artifacts + gate /api/system + path/health plumbing 2026-05-07 04:09:09 +00:00
studio-ui-smoke.yml CI(ui): add second Playwright job covering Compare/Recipes/Export/Studio/Settings 2026-05-07 04:09:09 +00:00
studio-update-smoke.yml CI(update-smoke): drop cache: 'pip' to avoid fatal post-step 2026-05-07 07:38:26 +00:00
studio-windows-api-smoke.yml ci(windows): do not pre-create dist/node_modules before Defender exclusion 2026-05-08 09:08:46 +00:00
studio-windows-inference-smoke.yml ci(windows): do not pre-create dist/node_modules before Defender exclusion 2026-05-08 09:08:46 +00:00
studio-windows-ui-smoke.yml ci(windows): do not pre-create dist/node_modules before Defender exclusion 2026-05-08 09:08:46 +00:00
studio-windows-update-smoke.yml ci(windows): do not pre-create dist/node_modules before Defender exclusion 2026-05-08 09:08:46 +00:00
wheel-smoke.yml CI: SHA-pin every action; fix 4 bugs in advisory-audit 2026-05-07 01:12:40 +00:00