fix(devenv): repair the shell; one-command setup with devenv up or npm run dev #99
No reviewers
Labels
No labels
bug
chore
data
feature
frontend
good first issue
intermediate
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/cal!99
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/devenv-up"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Makes local setup one step for everyone, and fixes devenv/CI on main.
devenv shelland CI run failed with "git-hooks.hooks.gitleaks.entrywas accessed but has no value defined": kennel enables the gitleaks hook git-hooks.nix added on Oct 13, but our lock kept git-hooks on Sep 27. Only that input moves. The newer formatters then normalize some files:api/pyproject.tomlis whitespace-only (git diff -wis empty); the Markdown gets mdformat normalization (list numbering,---dividers, one*bullet, and a link that had been split across lines, now fixed). Needed because CI runsprek run --all-filesand devenv formats on shell entry.devenv upruns the API, the web app (npm run dev:next) and kennel's Ricochet module on :8090, with the dev secrets from OpenBao.npm run devstarts a local sign-in relay (web/scripts/dev-relay.js), a stand-in for Ricochet's dev mode: 127.0.0.1:8090, unpadded base64url JSONstate, loopback http(s)return_toonly, 302 withstate/code/session_state/iss/error/error_description, else400 invalid state. Skipped when 8090 is taken.dev.jsforwards SIGINT/SIGTERM/SIGHUP to next so it never outlives the script. No Rust or third terminal for the manual setup.secretspec runon any OS;devenv upwith Nix). The api and web READMEs drop pip/venv, Vercel, Railway and old-repo instructions, and the api README no longer shows running migrations against production. Scraper and course agent READMEs useuvand port 8080.Tested:
devenv upand the manual path (API plusnpm run dev, no Ricochet installed) both signed in through Keycloak and loaded courses; SIGTERM tonpm run devfrees :3000 and :8090; relay refusals cover non-local, lookalike and userinfo hosts, non-http schemes and malformed state (independent review tried ~25 hostname tricks). Web tests 34/34, tsc clean, no new eslint errors;prek run --all-filespasses, gitleaks included. kennel/build and nixbot pass; the CI runners have not picked up jobs since Oct 22.fix(devenv): repair the shell, and start everything with devenv upto fix(devenv): repair the shell; one-command setup with devenv up or npm run devSuperseded by #105, which removes the Ricochet step without a relay and carries the devenv lockfile fix.
Pull request closed