Repository navigation
Reorganize repository layout (#16) - #20
Merged
Merged
Conversation
This was referenced Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #16. Organization only: file moves plus path-string updates. No application logic, test assertion, workflow trigger or required-check change.
Final layout
Old to new
*.go,*_test.go(root, 267 files)cmd/simplenvr/(pure renames)cmd/simplenvr/testmain_test.gotemplates/web/templates/static/web/static/tests/*.cjs(23)tests/frontend/tests/*.py,tests/*.sh(31)tests/acceptance/tests/fixtures,tests/evidenceREADME.mddocs/compose/compose.yaml(README keeps theInstall with Docker Composeheading and points to it)The full moved-file inventory is the rename list in this PR (
git diff --name-status -M main...HEAD).Changes beyond moving files (path strings only)
main.go:template.ParseGlob("web/templates/*.html")andhttp.Dir("web/static")(approved exception; URL route/static/unchanged).Dockerfile: build target./cmd/simplenvr; runtime image layout is now/app/web/templatesand/app/web/static..air.toml: build target./cmd/simplenvr.cmd/simplenvr/testmain_test.go: runs every test from the repository root (findsgo.modby walking up; leaves the working directory unchanged when not inside the repository, for example in helper processes started in private fixture directories), so existing relative test paths and Node calls keep resolving.continuous_recording_health_test.goreadscmd/simplenvr/recorder.go;legacy_download_test.gowalksweb/staticandweb/templates.bash tests/...paths,unittest discover -s tests/acceptance,go test -c ... ./cmd/simplenvr,go list ./cmd/simplenvrincore-ci-evidence.sh. Triggers, job names and checks are unchanged..gitignore:/simplenvr,__pycache__/.recording_stamp_scan*.go,go2rtc_scan*.go) are byte-identical moves.Run the app from the repository root (
go run ./cmd/simplenvr): templates and static files are still found relative to the working directory.Validation
Required checkpoint CI on the exact head 5925d33 (label
run-checkpoint-ci): all 8 checks passed, https://github.com/mouldybread/SimpleNVR/actions/runs/46146640228 (Core build/race/storage/lifecycle, Chrome acceptance runs 1 and 2, ordered-content resource measurements, prepared_go, prepared_browser attempts 1 and 2, aggregate Required checks).An earlier run on 9994d03 failed in the isolated storage-failure step because TestMain exited when a helper process started outside the repository; fixed in 5925d33 and re-verified by the run above.
Local validation on 9994d03 (Ubuntu, Go 1.26, run as root): build, vet,
go test -race -count=1 ./..., 156 Python acceptance unit tests (baseline also 156), Docker build and runtime smoke (SIGTERM exit 0, shutdown marker), runtime browser acceptance 20/20 checks (baseline on 43f1645 also 20/20). Baseline on 6a6f014 before any move passed build, vet, race tests, Python tests and Docker build.Remaining follow-ups
docs/REPOSITORY_LAYOUT.mdstill says migration in progress and README developer commands are not yet added; to be finalized in a docs-only follow-up.Dockerfile.devusesgolang:1.23-alpinewhileDockerfileuses 1.26. This predates this PR and is unchanged.