Skip to content

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

Closed

Description

@athvin

Part of the scripts-consolidation program: every shell script lives under scripts/, so shell is reused instead of rewritten. Program order: this → the hook move → the location gate, then the workflow-extraction tickets.

What moves

git mv the five shell scripts to a new scripts/frontend-dev/ (mirrors the scripts/ci/ precedent; they stay siblings because run.sh → up.sh → env.sh are chained):

  • frontend/dev/env.sh → scripts/frontend-dev/env.sh
  • frontend/dev/up.sh → scripts/frontend-dev/up.sh
  • frontend/dev/run.sh → scripts/frontend-dev/run.sh
  • frontend/dev/kill-servers.sh → scripts/frontend-dev/kill-servers.sh
  • frontend/dev/update-baselines.sh → scripts/frontend-dev/update-baselines.sh

compose.yaml, seed.mjs and the gitignored .state/ stay in frontend/dev/ — the scripts reach them via REPO_ROOT.

Internal fixes

  • run.sh / up.sh: REPO_ROOT="${SCRIPT_DIR}/../.." stays correct (same depth). up.sh's compose.yaml ref becomes ${REPO_ROOT}/frontend/dev/compose.yaml; the env.sh source and up.sh call stay ${SCRIPT_DIR}-relative.
  • update-baselines.sh: FRONTEND_DIR="${SCRIPT_DIR}/.." currently resolves frontend/ — must become ${REPO_ROOT}/frontend (derive REPO_ROOT two levels up).
  • env.sh: unchanged (caller exports REPO_ROOT; STATE_DIR stays frontend/dev/.state).

Callers to update

  • Makefile targets run, frontend-dev, frontend-seed (the source), frontend-baselines (lines ~127/131/138/149).
  • frontend/package.json test:e2e:fresh: bash dev/kill-servers.sh → bash ../scripts/frontend-dev/kill-servers.sh (cwd is frontend/).
  • frontend/tests/support/stale-servers.ts:11,117 — prose + the user-facing remediation string.

CI classification (gating inputs, not cosmetics)

  • .github/workflows/frontend.yml detect block (~line 92): add scripts/frontend-dev/ so edits to these scripts still run the frontend gate after they leave frontend/.
  • Run bash scripts/ci/detect-paths-test.sh and bash scripts/skills-check.sh regen — the infra/k8s coverage generator greps the whole scripts/ tree and the drift check byte-compares coverage.md.

Prose/comment references

frontend.yml:22 + .github/dependabot.yml:35 (image-pin mirror comments), .claude/skills/frontend-testing/SKILL.md:170, .claude/skills/security/references/secrets-iac.md:46, docs/infrastructure.md:56,385,655, docs/infrastructure-decisions.md:55, docs/batch-orchestration-design.md:1124, docs/frontend-testing.md:561, docs/parity-roadmap.md:2755, frontend/dev/seed.mjs:14,28 error strings, comments in infra/k8s/charts/er-platform/values.yaml:4, rust/crates/er-server/src/main.rs:122,193, rust/crates/er-server/src/provision.rs:5, scripts/dev_env.sh:13, frontend/src/components/settings/settings-nav.tsx:37.

Verify

make check, make frontend; then make run boots the dev stack and corepack pnpm test:e2e:fresh (from frontend/) still kills stale servers.

Activity

  1. added
    followup
    on Nov 6, 2026
  2. self-assigned this
    on Nov 6, 2026
  3. athvin commented on Nov 6, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #728 (draft). Closing that PR releases the claim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

followup

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions