Repository navigation
Run-2 publishing: per-pixel HATS build, write-once VOSpace upload, partition list from the listing - #992
Run-2 publishing: per-pixel HATS build, write-once VOSpace upload, partition list from the listing#992cailmdaley wants to merge 12 commits into
Conversation
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>
Co-Authored-By: GPT (via confer) <noreply@openai.com>
|
Acceptance run: the stacked branch publishes and reads back correctly from both clusters, after one uploader fix, now on this branch as 345bda2. I processed one Nibi-owned order-5 pixel (2922) and the Fir-owned pixel next to it (3008) from scratch at bb5a727, using the normal launcher on each cluster. The two pixels share an edge on the Nibi/Fir seam. Each cluster published its own pixel with
What passed against real CADC:
Fix found. CADC updates a node's size and MD5 a few seconds after the transfer finishes, so the first real uploads failed verification even though the bytes were correct. 345bda2 re-reads the node for up to 60 s and still fails if they never match. Its unit tests pass (17), and it worked on both clusters. Not changed here, open for review:
Reports: on Nibi, — Claude (Opus 5.5) on behalf of Cail |
Run-2 publishing (#987): each cluster builds its order-5 HATS pixels from finished tiles, uploads each file once to VOSpace, and rebuilds the partition list from the VOSpace listing.
This PR is stacked on #991 (planning), whose
pixel_tiles.csv,pixel_exposures.csvandclaims.yamlit reads; review #991 first, or read this diff againstfeat/run2-planning.What changes
publication_sources.py,pixel_completeness).A pixel builds only when every source on its list has its final success manifest or is named in
<run_dir>/abandoned.txt.An abandoned source contributes no rows, even if a manifest exists.
A failed source that is not abandoned blocks the pixel, and the builder names it: the run index records no terminal states and a timed-out job leaves no verdict, so a transient failure must never become a permanent gap in a file that is written once.
build_hats_pixel.py, decisionrow_partitioning, added here).Each row goes to the order-5 pixel of its own position (
_healpix_29 >> 48), never its tile's; tile overlaps are kept, as in run 1.Galaxies and PSF-validation stars are written as HATS Parquet; a star row of an exposure outside the pixel's exposure list is an error.
npoint,ntaken,nexpandnflaggedare written as one HEALSparse file per pixel.Every file records the ShapePipe commit and the path and SHA-256 of each UNIONS mask file in its metadata; the masks are read, never copied.
publish_vos.py).An existing destination is refused; the upload goes to a temporary node, is checked for size and MD5, and only then moved into place.
index_vos.py).partition_info.csvis rebuilt only from the VOSpace listing, so it never names a missing file; it is the only file that is ever rewritten.publish_pixel.pychains build, upload and reindex for a pixel the cluster owns inclaims.yaml, and refuses any other.workflow/README.mdshows how a collaborator reads the catalogue withlsdband a CADC proxy certificate.hatsis added topyproject.tomlanduv.lock.Rows go to the pixel of their own position
On the four-pixel prototype patch, 18.6% of the 1.94M rows from the 75 contributing tiles lie outside the pixel that contains their tile's centre.
Assigning whole tiles by centre would put those rows in the wrong pixel, and a cone search would silently miss them.
Checks
pixel-rows-exactcode-sha-in-filewrite-oncepartition-list-from-listingThe stacked branch passes 169 tests, with 1 skipped:
tests/unit/test_decisions.py, the run-2 planning and publication tests, the star-catalogue tests andtests/workflow, all run inside thedevelopimage with hats 0.11.1.astra-tools validatepasses.The VOSpace client is a fake in these tests; the real path passed an acceptance run on one Nibi and one Fir pixel across the seam (comment), which also produced the CADC property-lag fix 345bda2.
Not yet done
.partnode beside the final file, which breaks strict HATS validation of a downloaded copy; staging temporary nodes outside the catalogue tree would prevent it.publish_pixel.pytakes the mask files as repeated--maskarguments; reading them from the run config would stop an operator recording a subset.latest/builder (sp_latest.py,rebuild_latest.sh), the VOSpace snapshot scripts (publish_vos.sh,vos_snapshot.py,finish_run1_snap1.sh, Fir'supload_from_fir.sh), and the batch feeder and Fir import scripts, which ownership replaces.In ShapePipe,
merge_final_cat.py,merge_star_cat.pyandmerge_exposure_maps.pystay for now: existing campaigns and the image simulations still use the merged outputs.— Claude (Opus 5.5) on behalf of Cail
Closes #987.
🤖 Generated with Claude Code
https://claude.ai/code/session_01JK7o9DiztKSbcdLjwXNWmh