Repository navigation
Audit fixes: disk retention, prep/train UI, shared uploads, telemetry redaction - #33
Merged
Merged
Conversation
… passthrough Add AUDIT_FIXES.md (full audit as instructions for coding agents) and fix its first items: - A1: 32_pick_model.py counts registered rig frames, not images, so the stitched registration floor works for perspective_* renders. New key term STITCHED_SFM (perspective renders only) so entries cached without the check are rebuilt; spherical and fisheye keys are unchanged. - A2: not a bug. LichtFeld scales steps with lround in float32, which recovers every iter from 100 to 300000 from the %g scaler; a test now pins that. - A3: retention evicts stage dirs left by failed or cancelled builds (no valid .done, no live lock, not protected, idle 10 min) before any cache entry, plus stale handoff staging dirs. QUEUE_RUN_KEEP_DAYS (30) prunes large tars in runs/ of jobs that ended long ago. - A4: web UI gets "Stop after" (run_until), defaulting to sfm on prep installs; the train image shows an import panel for handoff bundles; a prep job links its bundle. - A5: compose.yaml passes .env into the container (env_file), with PORT pinned to 8090 inside. - A6: estimates zero the stages after run_until. A1 is not yet run against pycolmap and A5 not checked with docker compose.
…ead code Broken: - A7: jobs resumed from a restore point get their stage rows at creation (new app/jobrows.py), so retention protects what they resume from. - A8: one 90 % rig registration threshold, passed from 88_fisheye_sfm.py to 85_fisheye_dataset.py, so 85-90 % fails before refinement. - A9: telemetry keeps only the flag names of train.extra_args; mask prompts go through the log redactor. - A10: worker.exclusive() clears its hold if the GPU probe raises. Inconsistent: - Stale two-pass SfM comments, docstrings and lab-notebook defaults fixed; the estimate's SfM seed is labelled as predating fisheye-sfm-4. - Script worker pools follow SPLAT_THREADS; one _flag() parser in config. - deploy.sh ships every test suite; deploy.sh and run_mac.sh mirror scripts/ with --delete; publish_image.sh shellcheck error fixed. - README presets match the UI; undocumented settings and routes added to queue/README.md. - Mask messages name the prompts, not "person". - app/osv.py loads the scripts/ .OSV readers and reports a failed import at startup and as a 400 instead of failing silently. - Telemetry reads cgroup memory (v1 and v2) and affinity from resources.py. - Debug bundles blank the camera serial in calibration.json; the GPS reference in alignment.json is documented. Inefficient: - app/uploads.py replaces four copies of the upload code; the result tar is hashed while written and streamed instead of read into memory. A damaged-ETag result upload now backs off between retries like the others. - GPU uuid map cached; VramSampler removed, the train VRAM peak comes from the resource sampler. - /api/jobs reads stages and metrics in two queries per page. - detect_camera reads only the start of the telemetry, cached by mtime. - The frames stage asks osv_meta.py for the calibration only (no telemetry.csv with GPS fixes). - Log streams end with their stage. Dead code removed. AUDIT_FIXES.md marks what is left as the owner's call.
…ve detect_camera.py - C5: 87_fisheye_masks.py deletes the panoramas it stitched for the detector once the masks are back on the fisheyes (success only). Nothing read them again; no cache key changes. - C7: the select key hashes the field its mode does not read at its default (target_panos in window mode, window in target mode). Window-mode jobs with the default target_panos, which is every UI job, keep their keys; target-mode API jobs move once. - scripts/detect_camera.py removed: nothing used it, and it printed the camera serial. The queue calls osv_meta.detect_camera directly. - AUDIT_FIXES.md records these, and B5, B6 and B13 as decided.
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.
A full audit of the repository, written up as
AUDIT_FIXES.md(instructions for coding agents), and the fixes for everything in it that did not need an owner's decision. Two commits.Broken
.done, no live lock, not protected, idle 10 min).QUEUE_RUN_KEEP_DAYS(30) prunes the large tars inruns/of jobs that ended long ago.32_pick_model.pycounted images (12 per panorama), so the 50 % registration floor never fired. It now counts rig frames. New key termSTITCHED_SFM, onperspective_*renders only; spherical and fisheye keys are unchanged.run_until), defaulting tosfmon a prep install or a Mac; the train image shows an import panel for handoff bundles; a prep job links its bundle.compose.yamlpasses.envinto the container (env_file, Compose 2.24+), withPORTpinned to 8090 inside.run_until.88_fisheye_sfm.pyand85_fisheye_dataset.py.train.extra_args, never their values.worker.exclusive()clears its hold if the GPU probe raises.Checked, not a bug
--steps-scalerprinted with%g: LichtFeld 09d33818 scales withlroundin float32, which gives back everyiterfrom 100 to 300000 exactly. A test now pins that.Inconsistent
SPLAT_THREADS; one_flag()parser.deploy.shships every test suite;scripts/is mirrored with--delete.app/osv.pyloads thescripts/.OSVreaders and reports a failed import instead of failing silently.alignment.jsonis documented.Inefficient
app/uploads.pyreplaces four copies of the upload code. The result tar is hashed while written and streamed, no longer read into memory.VramSamplerremoved, the VRAM peak comes from the resource sampler./api/jobsreads stages and metrics in two queries per page.detect_camerareads only the start of the telemetry, cached.telemetry.csv(GPS fixes).Not verified here (no GPU, pycolmap or Docker on the machine that made this)
perspective_*stitched job end to end (the32_pick_model.pychange).docker compose config/upwith settings in.env.All 17 suites from AGENTS.md pass locally, as do the
queue/appheavy-import guardrail and shellcheck. The web UI was checked in a browser against services started as the prep and train images.Owner's call (left open, listed in
AUDIT_FIXES.md)B5 version text in the README, B6 measurements on LichtFeld 0.5.4, B13 the GPS reference in debug bundles, B14 the
numpypin, C5 and C7 (cache contents and keys), and whetherscripts/detect_camera.pyandQUEUE_MASK_PYstay.