Skip to content

chore(scripts): move frontend/dev/*.sh into scripts/frontend-dev/ (#718) - #728

Merged
athvin merged 3 commits into
mainfrom
issue/718-frontend-dev-scripts
Nov 6, 2026
Merged

athvin merged 3 commits into
mainfrom
issue/718-frontend-dev-scripts

Conversation

@athvin

@athvin athvin commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Closes #718

What this does

Part of the scripts-consolidation program: the five dev-stack shell scripts move from frontend/dev/ to scripts/frontend-dev/ (mirroring scripts/ci/), so tracked shell lives under scripts/. compose.yaml, seed.mjs, create-users.mjs and the gitignored .state/ stay in frontend/dev/ — the scripts reach them via REPO_ROOT.

  • Moves (git mv, history preserved): env.sh, up.sh, run.sh, kill-servers.sh, update-baselines.sh.
  • Internal fixes: up.sh's compose ref goes through ${REPO_ROOT}/frontend/dev/compose.yaml; update-baselines.sh derives REPO_ROOT two levels up instead of treating its parent as frontend/. run.sh and env.sh needed no path changes (${SCRIPT_DIR}-relative chaining, .state via STATE_DIR).
  • Callers: Makefile targets run/frontend-dev/frontend-seed/frontend-baselines; test:e2e:fresh → bash ../scripts/frontend-dev/kill-servers.sh; stale-servers.ts prose + REMEDY string.
  • CI classification (gating): both copies of frontend.yml's path regex (the filter step's grep and the content-addressed key's include) gain scripts/frontend-dev/, so edits to these scripts still run the frontend gate after leaving frontend/. rust.yml's classifier (scripts/ci/detect-paths.sh) is a denylist and scripts/frontend-dev/ is not exempt — the backend gate keeps covering them with no change.
  • Prose/comment refs repointed in 16 files (docs, skills, workflow comments, rust doc comments, chart values, seed.mjs error strings). The historical note at Makefile:118 describes a past tree state and deliberately stays.

Verified

  • bash scripts/ci/detect-paths-test.sh — 27/27
  • bash scripts/skills-check.sh regen — no drift (the infra/k8s coverage generator's output is unchanged by these scripts)
  • make frontend — green (543 passed / 111 skipped in the Playwright tier)
  • make check — green
  • Functional: ER_DEV_WEB_PORT=3050 make run boots the whole stack from the new locations (container → migrations → er-server + er-dispatcher → 36 seed jobs → web ready), Ctrl+C teardown clean; bash ../scripts/frontend-dev/kill-servers.sh resolves from frontend/ (the test:e2e:fresh cwd)

Five dev-stack shell scripts move to scripts/frontend-dev/ so tracked
shell lives under scripts/ (the scripts-consolidation program; mirrors
scripts/ci/). compose.yaml, seed.mjs, create-users.mjs and .state/ stay
in frontend/dev/ — the scripts reach them via REPO_ROOT.

Internal fixes: up.sh's compose ref goes through REPO_ROOT;
update-baselines.sh derives REPO_ROOT two levels up instead of treating
its parent as frontend/. Callers (Makefile, package.json test:e2e:fresh,
stale-servers.ts remedy string) follow. frontend.yml's detect filter and
content-addressed key both gain scripts/frontend-dev/ so edits to these
scripts still run the frontend gate after leaving frontend/; rust.yml's
classifier is a denylist and keeps covering them unchanged.
@athvin
athvin marked this pull request as ready for review November 6, 2026 08:08
@athvin
athvin merged commit 2bdb336 into main Nov 6, 2026
42 checks passed
@athvin
athvin deleted the issue/718-frontend-dev-scripts branch November 6, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move frontend/dev/*.sh into scripts/frontend-dev/

2 participants