Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
643 commits
Select commit Hold shift + click to select a range
396bc58
feat(sqm): recalibrate hq sqm_band_offset from 4 referenced sweeps
mrosseel Jul 16, 2026
c3bed19
fix(sqm): reject noise-collapsed wing boundaries; recalibrate band of…
mrosseel Jul 16, 2026
0d2edf0
feat(ui): software update screen polish
mrosseel Jul 16, 2026
5bc35d3
feat(ui): software update screen polish
mrosseel Jul 16, 2026
552b198
merge: sqm-fix into nixos (wing-boundary floor, band offset recalibra…
mrosseel Jul 16, 2026
22a1f64
merge: nixos into deepchart (wing-boundary floor, band offset recalib…
mrosseel Jul 16, 2026
6aed601
fix(ui): lift update status line 2px clear of the screen edge
mrosseel Jul 16, 2026
adc440a
fix(ui): lift update status line 2px clear of the screen edge
mrosseel Jul 16, 2026
e14251a
chore: retrigger build (built_at manifest stamp)
mrosseel Jul 16, 2026
d987aab
chore: retrigger build (built_at manifest stamp)
mrosseel Jul 16, 2026
90ad7c7
fix(software): disable migration unlock on NixOS systems
mrosseel Jul 16, 2026
720cdb2
fix(software): disable migration unlock on NixOS systems
mrosseel Jul 16, 2026
0e10a6b
refactor(ui): replace 7x-square gestures with Dev Mode menu toggle
mrosseel Jul 16, 2026
1b1fdc3
refactor(ui): replace 7x-square gestures with Dev Mode menu toggle
mrosseel Jul 16, 2026
8090ec9
feat(ui): software update screen polish
mrosseel Jul 16, 2026
fdac4d1
merge: sqm-fix into observable-asteroids (wing-boundary floor, band o…
mrosseel Jul 16, 2026
190ac91
chore: retrigger build (built_at manifest stamp)
mrosseel Jul 16, 2026
a6e8f26
refactor(software): delete the NixOS migration UI flow
mrosseel Jul 16, 2026
56e0a5f
refactor(software): delete the NixOS migration UI flow
mrosseel Jul 16, 2026
812f9b4
chore: retrigger build (built_at manifest stamp)
mrosseel Jul 16, 2026
39cf68c
chore: retrigger build (built_at manifest stamp)
mrosseel Jul 16, 2026
6d009dc
chore: retrigger build (built_at manifest stamp)
mrosseel Jul 16, 2026
aac1347
fix(sqm): derotate centroids onto the raw; growth-curve aperture corr…
mrosseel Jul 17, 2026
2d8bbb8
merge: sqm-fix into nixos (SQM rotation fix, growth-curve aperture co…
mrosseel Jul 17, 2026
43c9e9d
merge: nixos into deepchart (SQM rotation fix, growth-curve aperture …
mrosseel Jul 17, 2026
b4088f9
merge: sqm-fix into observable-asteroids (SQM rotation fix, growth-cu…
mrosseel Jul 17, 2026
57b0a9d
feat(sqm): refit imx296 band offset for the growth-curve pipeline
mrosseel Jul 17, 2026
e3cd1cb
merge: sqm-fix into nixos (imx296 band offset refit)
mrosseel Jul 17, 2026
3d743e0
merge: nixos into deepchart (imx296 band offset refit)
mrosseel Jul 17, 2026
fbe42b9
merge: sqm-fix into observable-asteroids (imx296 band offset refit)
mrosseel Jul 17, 2026
ac9d581
fix(sqm): exposure-invariant zero point; wing-safe annulus; sensor te…
mrosseel Jul 17, 2026
88dd132
merge: sqm-fix into nixos (exposure-invariant zero point, wing-safe a…
mrosseel Jul 17, 2026
af023f1
merge: nixos into deepchart (exposure-invariant zero point, wing-safe…
mrosseel Jul 17, 2026
40a4e6d
merge: sqm-fix into observable-asteroids (exposure-invariant zero poi…
mrosseel Jul 17, 2026
0e40dce
refactor(sqm): port orthogonal measurement fixes onto deepchart
mrosseel Jul 17, 2026
6c886bc
feat(sqm): black-level tracking + cloud/dew guard
mrosseel Jul 17, 2026
7487cee
feat(nixos): boot and display support for CM4-based PiFinder v4
mrosseel Jul 17, 2026
a4d87bc
feat(sqm): radiometer-first architecture with star-maintained calibra…
mrosseel Jul 17, 2026
f16dbde
merge: upstream main into sqm-fix (SCREEN_ROTATE_AMOUNTS x solve_rota…
mrosseel Jul 17, 2026
7e85d48
merge: sqm-fix into nixos (radiometer-first SQM, black-level tracking…
mrosseel Jul 17, 2026
fd75708
merge: nixos into deepchart (radiometer-first SQM, black-level tracki…
mrosseel Jul 17, 2026
be8b7b6
merge: sqm-fix into observable-asteroids (radiometer-first SQM + upst…
mrosseel Jul 17, 2026
95a4e59
feat(sqm): per-image sweep metadata JSON with radiometry and sensor temp
mrosseel Jul 17, 2026
be8aa92
merge: sqm-fix into nixos (per-image sweep metadata JSON)
mrosseel Jul 17, 2026
f13c527
feat(sqm): dump full rolling-window tracker state into sweep metadata
mrosseel Jul 17, 2026
85e898a
merge: sqm-fix into nixos (tracker window dumps in sweeps)
mrosseel Jul 17, 2026
ce1f5eb
fix(nixos-upgrade): decide camera boot entry against the new build, n…
mrosseel Jul 17, 2026
c09248d
fix(sqm): black-level lease + calibration evidence for imx296 charact…
mrosseel Jul 18, 2026
8829538
merge: sqm-fix into nixos (black-level lease, calibration evidence, s…
mrosseel Jul 18, 2026
b12bf46
fix(sqm): CI green — mypy Optional narrowing in color_index, ruff-for…
mrosseel Jul 18, 2026
72d8fe1
feat(telemetry): record radiometer samples as radio events
mrosseel Jul 18, 2026
1c99851
feat(sqm)!: remove SQM Correct; SWEEP takes the down menu slot
mrosseel Jul 18, 2026
4730924
merge: sqm-fix into nixos (radio telemetry, SQM Correct removal, SWEE…
mrosseel Jul 18, 2026
e9a16a9
chore(sqm): drop editorializing marking-menu comment
mrosseel Jul 18, 2026
6cfdb75
merge: sqm-fix into nixos (comment cleanup)
mrosseel Jul 18, 2026
f711f27
chore(nixos): untrack nix build result symlinks
mrosseel Jul 18, 2026
7a550fd
fix(test): drop stale UIMigration refs from test_ui_modules
mrosseel Jul 18, 2026
5544391
merge: nixos into deepchart (untrack result symlinks)
mrosseel Jul 18, 2026
1e834f9
merge: nixos into observable-asteroids
mrosseel Jul 18, 2026
0851ca5
fix(test): match test_radec_entry to current radec_entry API
mrosseel Jul 18, 2026
84a2ec3
fix(test): match test_radec_entry to current radec_entry API
mrosseel Jul 18, 2026
d7823a0
fix(test): match test_radec_entry to current radec_entry API
mrosseel Jul 18, 2026
4f195af
feat(sqm): per-frame optical-black pedestal for IMX290/IMX462
mrosseel Jul 18, 2026
6c4db85
docs(sqm): document per-frame optical-black pedestal (IMX290/462)
mrosseel Jul 18, 2026
fa9b1a2
build(nixos): drop dev caches from the runtime source closure
mrosseel Jul 18, 2026
5e8f0b1
merge: optical-black SQM into deepchart
mrosseel Jul 19, 2026
7ca99df
merge: optical-black SQM into observable-asteroids
mrosseel Jul 19, 2026
06bcd47
chore(sqm): disable black-level tracker to isolate optical-black pede…
mrosseel Jul 19, 2026
8b7d664
fix(sqm): scale photometry and wing geometry to the photometry image
mrosseel Jul 19, 2026
47f088a
fix(sqm): tracked black level supersedes static bias, wizard or profile
mrosseel Jul 19, 2026
2a9c94d
fix(sqm): wizard captures gate on actual exposure and skip clamp settle
mrosseel Jul 19, 2026
2354693
fix(nixos): content-address the kernel OB patch to stop repo-wide reb…
mrosseel Jul 19, 2026
e8ae101
feat(sqm): correct IMX462 dark-sky spectral excess
mrosseel Jul 19, 2026
53a124d
Merge pull request #30 from mrosseel/sqm-optical-black
mrosseel Jul 21, 2026
20267a1
merge: IMX462 dark-sky correction into observable-asteroids
mrosseel Jul 21, 2026
6d68b5a
merge: sync deepchart after IMX462 SQM integration
mrosseel Jul 21, 2026
2d875f9
ci(nixos): ARM-primary testable build (ubuntu-24.04-arm first, pi5 la…
mrosseel Jul 21, 2026
2bbdd5c
ci(nixos): ARM-primary testable build (ubuntu-24.04-arm first, pi5 la…
mrosseel Jul 21, 2026
9ef18cc
ci(nixos): ARM-primary testable build (ubuntu-24.04-arm first, pi5 la…
mrosseel Jul 21, 2026
fa09f51
feat(telemetry): section checklist, size cap, recomputable radio event
mrosseel Jul 22, 2026
f4a59a3
feat(telemetry): section checklist, size cap, recomputable radio event
mrosseel Jul 22, 2026
3d709e7
feat(telemetry): section checklist, size cap, recomputable radio event
mrosseel Jul 22, 2026
53784be
merge: sync nixos into deepchart (IMX462 dark-sky SQM/airglow + telem…
mrosseel Jul 23, 2026
5e950cb
merge: sync deepchart (gaia charts + SQM/airglow) into observable-ast…
mrosseel Jul 23, 2026
1ca2fe5
merge: upstream/main into nixos
mrosseel Jul 24, 2026
5fb9e03
merge: nixos (upstream/main sync) into deepchart
mrosseel Jul 24, 2026
846fd2e
merge: deepchart (upstream/main sync) into observable-asteroids
mrosseel Jul 24, 2026
e7f7a43
merge: upstream/main into nixos (full-sensor sweeps, PR #544)
mrosseel Jul 29, 2026
ab64863
merge: nixos (upstream sync, full-sensor sweeps) into deepchart
mrosseel Jul 29, 2026
ea6c0c2
merge: deepchart (upstream sync, full-sensor sweeps) into observable-…
mrosseel Jul 29, 2026
4de3901
fix(ci): manifest job checks out the PR base, not the default branch
mrosseel Jul 29, 2026
d51ae62
merge: nixos (CI manifest-checkout fix) into deepchart
mrosseel Jul 29, 2026
67b8cd2
merge: deepchart (CI manifest-checkout fix) into observable-asteroids
mrosseel Jul 29, 2026
7165024
chore(nixos): retire the preview label and correct stale channel docs
mrosseel Aug 15, 2026
b485e3b
Pausing 2.6.2 updates until migration for rev4 lensing can be sorted
brickbots Aug 17, 2026
1a4e718
Merge pull request #35 from mrosseel/nixos-retire-preview
mrosseel Aug 17, 2026
b8230c0
fix(nearby): rank against true angular distance, in a bounded window
mrosseel Aug 17, 2026
7567a65
Merge pull request #38 from mrosseel/fix/nearby-ranking
mrosseel Aug 17, 2026
11ff5f2
merge: current nixos into deepchart
mrosseel Aug 17, 2026
5ebd13f
perf(observations): resolve logged identities once and share the cache
mrosseel Aug 18, 2026
1937756
merge: current nixos into deepchart
mrosseel Aug 18, 2026
dc7b527
merge: current upstream/main into nixos
mrosseel Aug 18, 2026
2d8ac58
fix: skip image regeneration in non-image display modes
mrosseel Mar 18, 2026
c7ad04f
merge: current deepchart into observable-asteroids
mrosseel Aug 18, 2026
b38ba63
merge: upstream/main into nixos (v2.6.3 wave)
mrosseel Aug 22, 2026
efc75c2
Release 2.6.3
brickbots Aug 27, 2026
1b45a32
Merge branch 'main' into release
brickbots Aug 27, 2026
31c900c
Merge branch 'main' into release
brickbots Aug 27, 2026
d774bb1
merge: nixos-cm4 into nixos (CM4 boot and display for v4)
mrosseel Aug 27, 2026
9361d77
fix(nixos): apply the power-off latch to the CM4 device tree only
mrosseel Aug 27, 2026
5dcac25
test(db): point the observed-cache tests at the query that runs
mrosseel Aug 27, 2026
b239836
merge: upstream/main into nixos (2.6.3 release wave)
mrosseel Aug 27, 2026
d0c7d27
Merge branch 'main' into release
brickbots Aug 28, 2026
86d9c2a
docs(bom): warn against the similar but incompatible Adafruit 2472 BN…
brickbots Sep 3, 2026
5161deb
fix(object-chart): restore fixed eyepiece orientation baseline (#40)
mrosseel Sep 4, 2026
d07144d
fix(object-chart): restore fixed eyepiece orientation baseline (#41)
mrosseel Sep 4, 2026
5d4fbb1
ci(nixos): free GitHub ARM primary, Pi5 self-hosted as last-resort fa…
mrosseel Sep 4, 2026
4d3adee
feat(nixos): delta prefetch for upgrades via pifinder-differ (#42)
mrosseel Sep 4, 2026
6843b0d
feat(web): add Data page to browse the PiFinder data folder (#43)
mrosseel Sep 4, 2026
0443d20
feat(web): observing nights, object pages, and SQM in the log (#37)
mrosseel Sep 4, 2026
f1b969a
Merge branch 'main' into release
brickbots Sep 23, 2026
6cb9f76
chore(nixos): bump nixpkgs to the last nixos-25.11 commit (#46)
mrosseel Sep 24, 2026
1fc7127
fix(nixos): root only through sudo, and keep rollback generations
mrosseel Sep 24, 2026
e6ad8e1
fix(web): login for the /api control and camera endpoints
mrosseel Sep 24, 2026
64ae6e7
fix(upgrade): trust only the cache keys in the Nix config
mrosseel Sep 24, 2026
5cd635d
fix(nixos): first boot waits for the clock, then retries
mrosseel Sep 24, 2026
f1aafb0
ci(release): current dev cache key, read-only default permissions
mrosseel Sep 24, 2026
e12bd8d
Merge pull request #47 from mrosseel/fix/nixos-hardening
mrosseel Sep 25, 2026
92791b3
fix(nixos): first boot boots the camera from before the migration (#48)
mrosseel Sep 25, 2026
eda3622
feat(nixos): move nixpkgs to NixOS 26.05 (#49)
mrosseel Sep 25, 2026
fb59bdc
fix(delta): import patched paths only through Nix's signature check (…
mrosseel Sep 25, 2026
45ea5c7
feat(nixos): switch on delta prefetch for upgrades (#51)
mrosseel Sep 25, 2026
693af20
fix(nixos): libcamera 0.7.2 so picamera2 finds the camera on 26.05 (#53)
mrosseel Sep 25, 2026
1731d41
fix(web): Data page lists a folder with a symlink out of the data roo…
mrosseel Sep 25, 2026
147fe3b
fix(delta): build patches on the SD card, not in the 200 MiB /tmp (#54)
mrosseel Sep 25, 2026
56046f2
feat(delta): log one summary line per upgrade (#55)
mrosseel Sep 25, 2026
6df2e5b
fix(nixos): keep mDNS up after the custom hostname is applied (#56)
mrosseel Sep 25, 2026
deced2c
feat(delta): stage patches for nix build, 3 at a time, and show the s…
mrosseel Sep 25, 2026
c14c33a
fix(nixos): drop the kmem group from the pifinder user (#58)
mrosseel Sep 25, 2026
fd3faaf
fix(delta): create the job dir before the space check, and add an e2e…
mrosseel Sep 25, 2026
6277e15
fix(hardware): identify a Compute Module for Blinka when the revision…
mrosseel Sep 25, 2026
f1310e6
fix(hardware): detect rev4 by the board model when no battery is in (…
mrosseel Sep 25, 2026
47a88b4
fix(nixos): boot splash fills the v4 panel with a 176x176 image (#64)
mrosseel Sep 25, 2026
3775008
Merge branch 'main' into release
brickbots Sep 26, 2026
559bbbb
test(optics): load tetra3 from the package, not the old submodule (#65)
mrosseel Sep 26, 2026
f983c4b
perf: cut the PiFinder start time by about half (#66)
mrosseel Sep 26, 2026
2108801
ci: run all integration tests except the web tests (#67)
mrosseel Sep 26, 2026
9abd11c
fix(nixos): give /, /var and the other top-level directories back to …
mrosseel Sep 26, 2026
f8f74f8
fix(delta): wait once per round for patches, and show each patch step…
mrosseel Sep 26, 2026
f434100
fix(upgrade): refuse a build that cannot mount the root file system (…
mrosseel Sep 26, 2026
bdc4977
fix(nixos): mount root from the second partition, ext4 or btrfs (#71)
mrosseel Sep 26, 2026
ff51665
fix(nixos): root is btrfs only (#72)
mrosseel Sep 26, 2026
05d485e
docs(adr): consolidate the NixOS ADRs, and plan btrfs cards and data …
mrosseel Sep 26, 2026
331eb5e
fix(migration): first boot refuses a system that cannot mount the roo…
mrosseel Sep 26, 2026
42fcbb5
feat(migration): btrfs migration system, tarball from the closure, U-…
mrosseel Sep 26, 2026
5280946
feat(migration): carry credentials and AP name, clean up ext2_saved, …
mrosseel Sep 27, 2026
1966dcc
merge: current nixos into deepchart
mrosseel Sep 27, 2026
381d40f
merge: current deepchart into observable-asteroids
mrosseel Sep 27, 2026
5fc1022
feat(delta): name the running system at update start, get patches for…
mrosseel Sep 27, 2026
a1aa312
fix(migration): keep only password hashes NixOS can check (#79)
mrosseel Sep 27, 2026
87629d7
fix(upgrade): download size without the patched paths (#81)
mrosseel Sep 27, 2026
1139a2d
merge: current nixos into observable-asteroids
mrosseel Sep 27, 2026
3607836
refactor(nixos): migration-only services in their own module (#80)
mrosseel Sep 27, 2026
1f0e96d
feat(migration): run the ext2_saved cleanup, balance once, snapshot P…
mrosseel Sep 27, 2026
a99c1d2
feat(boot): U-Boot boot counter falls back to the previous generation…
mrosseel Sep 27, 2026
053c445
feat(nixos): btrfs SD images, lean and full, in the release flow (pla…
mrosseel Sep 27, 2026
6dc044f
merge: current nixos into observable-asteroids
mrosseel Sep 27, 2026
8285365
fix(delta): shorter waits, earlier session, plain patch labels (#85)
mrosseel Sep 27, 2026
04a86f2
fix(boot): run the U-Boot install after multi-user.target (#86)
mrosseel Sep 27, 2026
db79ff8
fix(software): no upgrade on battery, no dimming during the upgrade (…
mrosseel Sep 27, 2026
8f87ff2
merge: current nixos into observable-asteroids
mrosseel Sep 27, 2026
f21219d
fix(software): download size in KB, MB or GB (#87)
mrosseel Sep 27, 2026
ea29202
merge: current nixos into observable-asteroids
mrosseel Sep 27, 2026
a3d7e93
feat(software): larger download amount on the upgrade screen (#88)
mrosseel Sep 27, 2026
34c57e2
test(software): the upgrade screen stand-in fonts have large (#89)
mrosseel Sep 27, 2026
7d115bd
merge: current nixos into observable-asteroids
mrosseel Sep 27, 2026
575a214
test(migration-e2e): no SPI display under QEMU (#90)
mrosseel Sep 27, 2026
38681dd
feat(delta): one streamed request for all patches (#91)
mrosseel Sep 27, 2026
e231b77
merge: current nixos into observable-asteroids
mrosseel Sep 27, 2026
1a4aba8
feat(upgrade): installing patches as its own step, patch counts inste…
mrosseel Sep 27, 2026
9170e57
merge: current nixos into observable-asteroids
mrosseel Sep 27, 2026
af9c13d
perf(ui): object list reads the pointing state once per frame (#93)
mrosseel Sep 27, 2026
ea568d6
merge: current nixos into observable-asteroids
mrosseel Sep 27, 2026
ac619b6
perf(gaia): keep the index run directories on the mmap, not as Python…
mrosseel Sep 27, 2026
6c5cbb9
merge: current deepchart into observable-asteroids
mrosseel Sep 27, 2026
ca53c28
fix(upgrade): count nix stop events, which carry no type (#95)
mrosseel Sep 27, 2026
7ddc1bc
fix(upgrade): write the status file atomically (#96)
mrosseel Sep 27, 2026
af51359
merge: current nixos into observable-asteroids
mrosseel Sep 27, 2026
64107f2
perf(ui): menu text drawn once per line, fewer shared-state calls per…
mrosseel Sep 27, 2026
001e8ec
merge: current nixos into observable-asteroids
mrosseel Sep 27, 2026
3bcd57b
perf(state): no time zone lookup on each GPS fix, no wait for the Tim…
mrosseel Sep 28, 2026
38e7075
merge: current nixos into observable-asteroids
mrosseel Sep 28, 2026
27af091
feat(software): rollback list shows the build label, not the NixOS ve…
mrosseel Sep 28, 2026
75561e4
merge: current nixos into observable-asteroids
mrosseel Sep 28, 2026
9aa9b6a
fix(software): the version list uses the whole screen height (#100)
mrosseel Sep 28, 2026
01ece23
merge: current nixos into observable-asteroids
mrosseel Sep 28, 2026
d11e3fd
perf(object_list): draw the list text from the text cache (#102)
mrosseel Sep 28, 2026
1e98523
merge: current nixos into observable-asteroids
mrosseel Sep 28, 2026
4933704
feat(upgrade): count the paths while the upgrade checks what is missi…
mrosseel Sep 28, 2026
f197efb
merge: current nixos into observable-asteroids
mrosseel Sep 28, 2026
651aa90
merge: brickbots main into nixos
mrosseel Sep 28, 2026
559a1b3
merge: current nixos into observable-asteroids
mrosseel Sep 28, 2026
a6b6d3e
perf(state): load timezonefinder in its build thread, not at start-up…
mrosseel Sep 28, 2026
a06f162
merge: current nixos into observable-asteroids
mrosseel Sep 28, 2026
b1dcf55
ci(nixos): write the manifest from the PR's base, not the default branch
mrosseel Jul 29, 2026
73f172c
ci(nixos): retire the preview label from the testable PR build
mrosseel Aug 15, 2026
183f8f3
fix(state): graceful worker shutdown when shared-state manager dies (…
mrosseel Sep 29, 2026
8464c14
fix(nixos): make the Gaia catalog a fixed-output derivation
mrosseel Sep 29, 2026
dbcce22
fix(nixos): make the Gaia catalog a fixed-output derivation
mrosseel Sep 29, 2026
fa75c1d
feat(gaia): columnar star catalog 3.0 with a dense index, one shard p…
mrosseel Sep 29, 2026
6bbc973
feat(gaia): columnar star catalog 3.0 with a dense index, one shard p…
mrosseel Sep 29, 2026
a09403e
perf(display): pack SSD1333 frames with numpy (#107)
mrosseel Sep 29, 2026
53a6729
feat(ui): Show FPS option in Dev Tools (#108)
mrosseel Sep 29, 2026
d7ab48a
perf(catalogs): filter with numpy, and only the catalogs a list shows…
mrosseel Sep 29, 2026
54eb493
fix(ui): one FPS counter for all screens (#110)
mrosseel Sep 29, 2026
d7ebc87
fix(boot-splash): SSD1333 at the app splash brightness, not full driv…
mrosseel Sep 30, 2026
2454633
perf(ui): keep the UI responsive while a thread in its process is bus…
mrosseel Sep 30, 2026
640eae1
perf: UI reads a shared-memory state snapshot; catalogs as numpy colu…
mrosseel Sep 30, 2026
bd460be
feat(display): demo display for instruction videos (#112)
mrosseel Sep 30, 2026
954a83c
feat(catalogs): add the Perek-Kohoutek planetary nebula catalog (#106)
mrosseel Sep 30, 2026
d45696d
merge: current nixos into deepchart
mrosseel Sep 30, 2026
ec896ec
merge: current deepchart into observable-asteroids
mrosseel Sep 30, 2026
d1526a7
perf(gaia): read SQM and location from the state snapshot
mrosseel Sep 30, 2026
e9edc2c
merge: current deepchart into observable-asteroids
mrosseel Sep 30, 2026
73c7063
fix(manifest): write the migration tarball under migration_v2 keys (#…
mrosseel Oct 7, 2026
67195d8
Fix back piece by re-adding edge inserts
brickbots Oct 23, 2026
d8d5204
feat(nixos): use the pifinder.io names for the cache and the delta se…
mrosseel Nov 6, 2026
bcfc8ee
fix(rev4): keep U-Boot and the kernel off the GPIO14 kill line (#118)
mrosseel Nov 9, 2026
f6e7720
feat(release): one migration tarball for many releases; release and m…
mrosseel Nov 9, 2026
15235ed
chore(nixos): kernel 6.18.60, update nixpkgs and nixos-hardware (#120)
mrosseel Nov 9, 2026
7d6598a
docs(nixos): kernel update steps and the initrd module fault (#121)
mrosseel Nov 10, 2026
aab30d3
merge: current nixos into deepchart
mrosseel Nov 10, 2026
156053c
merge: current deepchart into observable-asteroids
mrosseel Nov 10, 2026
abcdd8a
fix(nixos): SD image firmware with nixos-hardware's populate script (…
mrosseel Nov 11, 2026
00e8c53
ci: one dev shell for developers, CI and the device
mrosseel Nov 11, 2026
73eee71
merge: ci dev shell into deepchart
mrosseel Nov 11, 2026
701c2dc
merge: current deepchart into observable-asteroids
mrosseel Nov 11, 2026
865d721
merge: upstream main into nixos
mrosseel Nov 15, 2026
b81f43f
merge: upstream release into nixos
mrosseel Nov 15, 2026
fb818d0
merge: upstream main into deepchart
mrosseel Nov 15, 2026
a808d1c
merge: upstream main into observable-asteroids
mrosseel Nov 15, 2026
4f4e4c7
chore(catalog): rebuild the object database with the upstream import …
mrosseel Nov 15, 2026
86d1ebe
merge: rebuilt object database
mrosseel Nov 15, 2026
276ddf8
merge: rebuilt object database
mrosseel Nov 15, 2026
804c1ac
fix(catalog): keep the decimals of Harris, Lynga and Arp magnitudes
mrosseel Nov 18, 2026
c00eaec
merge: magnitude decimals fix and rebuilt database
mrosseel Nov 18, 2026
6e1b58c
merge: magnitude decimals fix and rebuilt database
mrosseel Nov 18, 2026
ad5ba56
merge: upstream main into nixos
mrosseel Nov 19, 2026
d85d5a1
merge: upstream SQM gain fix and release playbook
mrosseel Nov 19, 2026
12dff9f
merge: upstream SQM gain fix and release playbook
mrosseel Nov 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .claude/skills/pifinder-remote/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ to see the UI; that is how you "look at" PiFinder.
| `logs [-n N]` | Tails the captured PiFinder and cedar startup logs (first place to look if `launch` fails). |
| `ready` | Polls until the API answers; useful after a manual launch. |

`/api/key`, `/api/stop` and `/api/camera/*` need the Web UI login. `key` and `stop` log in on the first 401 with `PIFINDER_PASSWORD` (default `solveit`); a headless dev run accepts any password.

## Keypad buttons

PiFinder has a small keypad. Pass these names to `key` (case-sensitive), or a
Expand Down
50 changes: 39 additions & 11 deletions .claude/skills/pifinder-remote/scripts/pf_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
import sys
import tempfile
import time
import http.cookiejar
import urllib.error
import urllib.parse
import urllib.request
from pathlib import Path

Expand Down Expand Up @@ -132,25 +134,51 @@ def base_url(args):
return f"http://127.0.0.1:{getattr(args, 'port', DEFAULT_PORT)}"


def http_get(url, timeout=15):
req = urllib.request.Request(url, method="GET")
# One cookie jar for the process, so the Web UI login session is sent with
# every request after login().
_OPENER = urllib.request.build_opener(
urllib.request.HTTPCookieProcessor(http.cookiejar.CookieJar())
)


def _open(req, timeout):
try:
with urllib.request.urlopen(req, timeout=timeout) as r:
with _OPENER.open(req, timeout=timeout) as r:
return r.status, r.read()
except urllib.error.HTTPError as e:
return e.code, e.read()


def http_get(url, timeout=15):
return _open(urllib.request.Request(url, method="GET"), timeout)


def login(base, timeout=15):
"""Log in to the Web UI. The password comes from PIFINDER_PASSWORD
(default "solveit"). A headless dev run accepts any password."""
form = urllib.parse.urlencode(
{"password": os.environ.get("PIFINDER_PASSWORD", "solveit")}
).encode("utf-8")
req = urllib.request.Request(base + "/login", data=form, method="POST")
return _open(req, timeout)


def http_post(url, payload, timeout=15):
"""POST JSON. On a 401, log in once and send the request again."""
data = json.dumps(payload if payload is not None else {}).encode("utf-8")
req = urllib.request.Request(
url, data=data, method="POST", headers={"Content-Type": "application/json"}
)
try:
with urllib.request.urlopen(req, timeout=timeout) as r:
return r.status, r.read()
except urllib.error.HTTPError as e:
return e.code, e.read()

def send():
req = urllib.request.Request(
url, data=data, method="POST", headers={"Content-Type": "application/json"}
)
return _open(req, timeout)

status, body = send()
if status == 401:
parts = urllib.parse.urlsplit(url)
login(f"{parts.scheme}://{parts.netloc}", timeout)
status, body = send()
return status, body


def wait_ready(base, timeout=60.0, interval=1.0):
Expand Down
4 changes: 4 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
use nix
watch_file flake.nix flake.lock shell.nix
watch_file nixos/pkgs/uv-python.nix
watch_file python/pyproject.toml python/uv.lock
44 changes: 44 additions & 0 deletions .github/actions/setup-nix/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Set up Nix
description: >
Nix with the PiFinder binary cache (cache.pifinder.io). Every workflow uses
this action, so all jobs get the same Nix settings and the same cache.
inputs:
attic-token:
description: Token that lets the job push to the cache. Empty means pull only.
required: false
default: ""
self-hosted:
description: '"true" on a self-hosted runner, which already has Nix installed.'
required: false
default: "false"
runs:
using: composite
steps:
- if: inputs.self-hosted != 'true'
uses: DeterminateSystems/nix-installer-action@main
with:
determinate: false
extra-conf: |
extra-system-features = big-parallel
extra-substituters = https://cache.pifinder.io/pifinder
extra-trusted-public-keys = pifinder:8UU/O3oLkaJHHUyqEcPGl+9F1m4MqDca39Ewl49jBmE=

- if: inputs.self-hosted == 'true'
shell: bash
run: |
echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"
echo "$HOME/.nix-profile/bin" >> "$GITHUB_PATH"

- name: Attic login
shell: bash
env:
ATTIC_TOKEN: ${{ inputs.attic-token }}
run: |
if [ -z "$ATTIC_TOKEN" ]; then
echo "No Attic token: the job pulls from the cache but does not push"
exit 0
fi
export PATH="/nix/var/nix/profiles/default/bin:$HOME/.nix-profile/bin:$PATH"
nix profile install nixpkgs#attic-client
attic login pifinder https://cache.pifinder.io "$ATTIC_TOKEN"
attic use pifinder:pifinder
16 changes: 16 additions & 0 deletions .github/scripts/push_dev_shell.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Push a flake dev shell, with every package in it, to the PiFinder cache.
#
# Usage: push_dev_shell.sh <system> [shell]
#
# The mkShell output is one small text file that references no packages, so a
# push of that output leaves the packages out of the cache. The shell's
# inputDerivation references every package the shell uses, so this script
# pushes that.
set -euo pipefail

system="$1"
shell="${2:-default}"

path="$(nix build ".#devShells.$system.$shell.inputDerivation" --no-link --print-out-paths)"
attic push pifinder:pifinder "$path"
92 changes: 45 additions & 47 deletions .github/workflows/nixos-pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ name: Build PiFinder NixOS (testable PRs)
# `pull_request_target` runs in the BASE repo's trusted context, so the job has
# the real ATTIC_TOKEN and a read-write GITHUB_TOKEN even for fork PRs. The
# contributor's code is checked out explicitly (head SHA) and built. This is
# only reached after a maintainer applies the `testable` (or `preview`) label —
# that label is the security boundary: it runs contributor code with the cache
# push token, so review the diff before labeling, and re-review on each new push
# to a labeled PR.
# only reached after a maintainer applies the `testable` label — that label is
# the security boundary: it runs contributor code with the cache push token, so
# review the diff before labeling, and re-review on each new push to a labeled
# PR.
#
# Build strategy: the free GitHub-hosted ubuntu-24.04-arm runner builds first.
# Its cores are faster than the Pi5, and the Attic cache (cache.pifinder.io) is
Expand All @@ -33,9 +33,7 @@ permissions:
jobs:
# Primary: free GitHub-hosted arm64 runner (native aarch64, no QEMU).
build-hosted:
if: |
contains(github.event.pull_request.labels.*.name, 'preview') ||
contains(github.event.pull_request.labels.*.name, 'testable')
if: contains(github.event.pull_request.labels.*.name, 'testable')
runs-on: ubuntu-24.04-arm
# Generous: only a kernel/source change compiles from scratch (~1 h on this
# 4-core runner); everything else substitutes from Attic in minutes.
Expand All @@ -52,29 +50,22 @@ jobs:
persist-credentials: false
# Fork PRs: pull_request_target checkout of the head requires opt-in
# since actions/checkout began refusing it. The head SHA is pinned
# explicitly and only reached after the `testable`/`preview` label,
# which is the review gate for running contributor code.
# explicitly and only reached after the `testable` label, which is the
# review gate for running contributor code.
allow-unsafe-pr-checkout: true

- uses: DeterminateSystems/nix-installer-action@main
# The shared CI action and scripts come from the base branch, which is
# trusted code, and never from the PR head.
- uses: actions/checkout@v4
with:
determinate: false
extra-conf: |
extra-system-features = big-parallel
extra-substituters = https://cache.pifinder.io/pifinder
extra-trusted-public-keys = pifinder:8UU/O3oLkaJHHUyqEcPGl+9F1m4MqDca39Ewl49jBmE=
ref: ${{ github.event.pull_request.base.ref }}
path: .ci
sparse-checkout: .github
persist-credentials: false

- name: Attic login for push
env:
ATTIC_TOKEN: ${{ secrets.ATTIC_TOKEN }}
run: |
if [ -z "$ATTIC_TOKEN" ]; then
echo "No ATTIC_TOKEN — pull-only via the public substituter"
exit 0
fi
nix profile install nixpkgs#attic-client
attic login pifinder https://cache.pifinder.io "$ATTIC_TOKEN"
attic use pifinder:pifinder
- uses: ./.ci/.github/actions/setup-nix
with:
attic-token: ${{ secrets.ATTIC_TOKEN }}

- name: Build NixOS system and on-device dev shell closures
run: |
Expand All @@ -89,12 +80,10 @@ jobs:
run: |
STORE_PATH=$(nix build .#nixosConfigurations.pifinder.config.system.build.toplevel \
--json | jq -r '.[].outputs.out')
DEV_SHELL_PATH=$(nix build .#devShells.aarch64-linux.default \
--json | jq -r '.[].outputs.out')
echo "store_path=$STORE_PATH" >> "$GITHUB_OUTPUT"
if [ -n "$ATTIC_TOKEN" ]; then
attic push pifinder:pifinder "$STORE_PATH"
attic push pifinder:pifinder "$DEV_SHELL_PATH"
.ci/.github/scripts/push_dev_shell.sh aarch64-linux
else
echo "No ATTIC_TOKEN — skipping push; build is verify-only"
fi
Expand All @@ -106,8 +95,7 @@ jobs:
needs: build-hosted
if: |
always() &&
(contains(github.event.pull_request.labels.*.name, 'preview') ||
contains(github.event.pull_request.labels.*.name, 'testable')) &&
contains(github.event.pull_request.labels.*.name, 'testable') &&
needs.build-hosted.result == 'failure'
runs-on: [self-hosted, aarch64]
timeout-minutes: 240
Expand All @@ -121,22 +109,23 @@ jobs:
persist-credentials: false
# Fork PRs: pull_request_target checkout of the head requires opt-in
# since actions/checkout began refusing it. The head SHA is pinned
# explicitly and only reached after the `testable`/`preview` label,
# which is the review gate for running contributor code.
# explicitly and only reached after the `testable` label, which is the
# review gate for running contributor code.
allow-unsafe-pr-checkout: true

- name: Ensure nix is on PATH (self-hosted runner)
run: |
echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"
echo "$HOME/.nix-profile/bin" >> "$GITHUB_PATH"
# The shared CI action and scripts come from the base branch, which is
# trusted code, and never from the PR head.
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}
path: .ci
sparse-checkout: .github
persist-credentials: false

- name: Setup Attic substituter (cache.pifinder.io)
env:
ATTIC_TOKEN: ${{ secrets.ATTIC_TOKEN }}
run: |
nix profile install nixpkgs#attic-client
attic login pifinder https://cache.pifinder.io "$ATTIC_TOKEN"
attic use pifinder:pifinder
- uses: ./.ci/.github/actions/setup-nix
with:
attic-token: ${{ secrets.ATTIC_TOKEN }}
self-hosted: "true"

- name: Build NixOS system and on-device dev shell closures
run: |
Expand All @@ -149,10 +138,8 @@ jobs:
run: |
STORE_PATH=$(nix build .#nixosConfigurations.pifinder.config.system.build.toplevel \
--json | jq -r '.[].outputs.out')
DEV_SHELL_PATH=$(nix build .#devShells.aarch64-linux.default \
--json | jq -r '.[].outputs.out')
attic push pifinder:pifinder "$STORE_PATH"
attic push pifinder:pifinder "$DEV_SHELL_PATH"
.ci/.github/scripts/push_dev_shell.sh aarch64-linux
echo "store_path=$STORE_PATH" >> "$GITHUB_OUTPUT"

# Stamp the PR's build into the metadata-only nixos-manifest branch. Runs the
Expand All @@ -170,7 +157,18 @@ jobs:
group: manifest-write
cancel-in-progress: false
steps:
# Check out the PR's BASE branch explicitly. A bare checkout under
# pull_request_target lands on the repository's default branch, which
# may carry this workflow (so the event fires) without carrying the
# scripts below -- the job then dies after a successful build, leaving
# an image in Attic that no device can reach because the manifest was
# never written. The base branch is the branch this workflow file itself
# came from, so the scripts are always beside it, and it stays
# maintainer-controlled: never check out the PR head here, which would
# run contributor code with contents:write and the Attic token.
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}

- name: Update generated manifest branch
env:
Expand Down
63 changes: 51 additions & 12 deletions .github/workflows/nox.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,70 @@
name: nox
# The nixos branch manages the Python environment with uv2nix (pyproject.toml +
# uv.lock) instead of nox + requirements*.txt. This runs the ruff, mypy and
# pytest checks in the flake dev shell, the same Nix environment that
# developers and the PiFinder use. The workflow keeps upstream's "nox" name so
# PR check wiring stays identical across branches.
#
# Run on pushes to the long-lived branches and on pull requests. Restricting
# `push` to main/release means a push to a feature branch with an open PR only
# `push` to those branches means a push to a feature branch with an open PR only
# triggers the `pull_request` run (not also a `push` run), so a PR gets a single
# run per push instead of two.
#
# On a push, a job that passes puts its dev shell in the PiFinder cache, so
# developers and later jobs download the shell and do not build it.
on:
push:
branches:
- main
- nixos
- release
pull_request:
permissions:
contents: read
jobs:
nox:
# Pinned: ubuntu-latest moved to Ubuntu 26.04 (2026-11), for which
# actions/setup-python has no Python 3.9 build, the version the device runs.
runs-on: ubuntu-24.04
timeout-minutes: 20
# aarch64, like the PiFinder.
runs-on: ubuntu-24.04-arm
timeout-minutes: 30
defaults:
run:
working-directory: ./python
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-nix
with:
submodules: true
# python/tetra3 -> PiFinder/tetra3/tetra3 is untracked (see ADR 0035),
# and `import tetra3` resolves the package through it.
- run: ln -sfn PiFinder/tetra3/tetra3 tetra3
- uses: wntrblm/nox@2024.04.15
attic-token: ${{ github.event_name == 'push' && secrets.ATTIC_TOKEN || '' }}
- name: Build dev shell
run: nix develop ..#default -c true
- name: Lint and format check
run: scripts/check.sh lint
- name: Type check
run: scripts/check.sh types
- name: Smoke tests
run: scripts/check.sh smoke
- name: Unit tests
run: scripts/check.sh unit
- name: Integration tests
run: scripts/check.sh integration
- name: Push dev shell to the cache
if: github.event_name == 'push'
working-directory: .
run: .github/scripts/push_dev_shell.sh aarch64-linux

# Developer desktops are x86. This job puts the x86 dev shells in the cache
# after the checks pass, so a desktop downloads libcamera and the Python
# environment and does not build them.
dev-shell-x86:
needs: nox
if: github.event_name == 'push'
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-nix
with:
python-versions: "3.9"
- run: nox -s lint format type_hints smoke_tests unit_tests ui_tests
attic-token: ${{ secrets.ATTIC_TOKEN }}
- name: Push dev shells to the cache
run: |
.github/scripts/push_dev_shell.sh x86_64-linux
.github/scripts/push_dev_shell.sh x86_64-linux web
Loading
Loading