Skip to content

Commit 60d1792

Browse files
authored
Merge branch 'main' into dependabot/github_actions/github-actions-46b8ab5aad
2 parents e1d98d9 + a03ce43 commit 60d1792

25 files changed

Lines changed: 554 additions & 31 deletions

‎.github/badges/coverage.svg‎

Lines changed: 1 addition & 1 deletion
Loading

‎.github/workflows/publish.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Install build dependencies
3333
run: |
3434
python -m pip install --upgrade pip
35-
python -m pip install build "twine>=7,<8" ".[dev]"
35+
python -m pip install build "twine>=7,<8" -e ".[dev]"
3636
3737
- name: Test release candidate
3838
run: python -m pytest -q
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Owned disposable artifact closure
2+
=================================
3+
4+
Owner-authorised closure after publication and actual-byte proof archival.
5+
Status: COMPLETE after docs-only PR22 became visible. Exact rm exited0;
6+
all four targets were subsequently checked absent. No worktree was removed.
7+
8+
Exact completed synthetic-test targets below
9+
/home/ts/wt/polystore-publisher-admission-031-20261002/docs/validation/publisher-admission-031-20261002/:
10+
11+
* source-test-temp:466944 allocated bytes.
12+
* admission-test-temp:20480 allocated bytes.
13+
* qualified-test-temp:483328 allocated bytes.
14+
15+
Exact single public-wheel verification scratch:
16+
/home/ts/.cache/agent-scratch/polystore-031-byte-proof-20261002.t9WrHD:
17+
163840 allocated bytes.
18+
19+
Total removed allocated bytes1134592 (1.08MiB); this is the du measured amount,
20+
not a claim about system-wide df movement. Targets are exact real directories,
21+
not worktrees, environments, Git backing stores or scientific result roots.
22+
All selected source-test runs completed PASS; their XML/command/resource
23+
evidence is outside these directories. Contents are reconstructable synthetic
24+
unit fixtures, two local editable test wheels and one fetched public wheel.
25+
The published wheel bytes passed the independently archived hash/length check.
26+
27+
No tracked files, .git directories, .pth files or alternates were found inside
28+
the targets. Pytest current symlinks point inside the same disposable roots;
29+
removal does not follow symlinks. Process inspection found only the inspection
30+
shell, not active source tests. Recursive lsof found no open files in any target.
31+
32+
Preserved: all source, worktree/Git/branch metadata, both original publisher
33+
logs (including lossless archived copies), raw metadata, test reports,
34+
actual-byte proof, original native journal link, failed/uncertain external
35+
inputs and every biological/scientific artifact. No other tree is in scope.
36+
37+
Removed synthetic fixtures are reproducible from the unchanged tests; public
38+
wheel bytes remain available from the recorded release URL and digest. These
39+
disposable directories were deleted, not moved to trash. Both preserved gzip
40+
log archives were rehashed afterwards: original failed job
41+
542d75ef00bcd8677526131a1afe195cea6fa63edca7eca5aa8e0b1b4e4b703c,
42+
original successful job
43+
cd1723ac96587309e23dec9144476c0219ae2b2124b0e3c084fe701a8fedfa49.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Focused qualification command
2+
=============================
3+
4+
Run from the isolated PolyStore worktree::
5+
6+
systemd-run --user --scope --quiet \
7+
-p MemoryMax=512M -p MemorySwapMax=0 -p CPUQuota=100% \
8+
timeout 60s taskset -c 0 env \
9+
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 PYTHONDONTWRITEBYTECODE=1 \
10+
OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 \
11+
PYTHONPATH=/home/ts/wt/polystore-publisher-admission-031-20261002/src \
12+
/home/ts/wt/openhcs-generated-inputs-installed-parent-20261001/.venv/bin/python -B \
13+
/home/ts/wt/openhcs-prior-measurement-role-projection-20261001/docs/validation/selected_plane_stream_materialization_20261001/run_bounded_source.py \
14+
/home/ts/wt/openhcs-generated-inputs-installed-parent-20261001/.venv/bin/python -B -m pytest \
15+
-o addopts= \
16+
--basetemp=docs/validation/publisher-admission-031-20261002/qualified-test-temp \
17+
--junitxml=docs/validation/publisher-admission-031-20261002/qualified.xml \
18+
tests/test_publisher_admission.py tests/test_basic.py \
19+
tests/test_imagej_cache_environment.py tests/test_metadata_namespace.py \
20+
tests/test_roi_region_properties.py tests/test_roi.py \
21+
tests/test_lazy_package_exports.py -q
22+
23+
The default coverage/report addopts are disabled for this focused resource-bound
24+
source run, not for the publisher. All selected tests/assertions are unchanged.
25+
Source fixtures prohibit actual Fiji downloads/JVM execution.
26+
27+
Offline lock attempt (terminal failure)::
28+
29+
systemd-run --user --scope --quiet \
30+
-p MemoryMax=512M -p MemorySwapMax=0 -p CPUQuota=100% \
31+
timeout 60s taskset -c 0 uv lock --offline --no-python-downloads
32+
33+
No solution for python_full_version >=3.14 / win32: imglyb not found in cache;
34+
polystore[all] requires imglyb==2.1.0. No lock file was changed.
35+
36+
Owned disposable output is confined to the three source-test-temp,
37+
admission-test-temp and qualified-test-temp directories below this receipt root.
38+
Original log, test XML and qualification notes are durable evidence, not caches.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
PUBLIC_WHEEL_ACTUAL_BYTE_VERIFICATION
2+
3+
Artifact: polystore-0.3.1-py3-none-any.whl
4+
Expected bytes: 157342
5+
Expected SHA256: d1c81414f9b5ec1373a68a41bf704ec76c4b1f60a1ea0f00bb031bc8ae264e50
6+
7+
Retained lookup: no exact public wheel found by filename under /home/ts/wt,
8+
/home/ts/.cache/agent-scratch, /home/ts/.cache/uv or /home/ts/.cache/pip.
9+
The two local 0.editable wheels were rejected as different artifacts.
10+
One public fetch only; no retry/resubmit, dependency fetch, installation or import.
11+
12+
Fetch command:
13+
systemd-run --user --scope --quiet -p MemoryMax=512M -p MemorySwapMax=0 -p CPUQuota=100% timeout 25s taskset -c 0 curl --fail --silent --show-error --proto '=https' --max-time 20 --max-filesize 157342 --output /home/ts/.cache/agent-scratch/polystore-031-byte-proof-20261002.t9WrHD/polystore-0.3.1-py3-none-any.whl --write-out 'http_status=%{http_code} downloaded_bytes=%{size_download} elapsed_seconds=%{time_total}\nurl=%{url_effective}\n' https://files.pythonhosted.org/packages/e1/95/19cbd9b8d4c514434471f10e143c65dfacb117088272528e52a5d6e1b664/polystore-0.3.1-py3-none-any.whl
14+
15+
Original fetch response:
16+
http_status=200 downloaded_bytes=157342 elapsed_seconds=0.086730
17+
url=https://files.pythonhosted.org/packages/e1/95/19cbd9b8d4c514434471f10e143c65dfacb117088272528e52a5d6e1b664/polystore-0.3.1-py3-none-any.whl
18+
19+
The first orchestration wrapper failed after the fetch because it tried to
20+
store an absent session_id. Original HTTP200/byte result was already retained;
21+
subsequent verification read that same completed file. Fetch was NOT replayed.
22+
23+
Independent local-byte command:
24+
systemd-run --user --scope --quiet -p MemoryMax=512M -p MemorySwapMax=0 -p CPUQuota=100% timeout 10s taskset -c 0 /home/ts/wt/openhcs-generated-inputs-installed-parent-20261001/.venv/bin/python -B -c 'import hashlib, pathlib; p=pathlib.Path("/home/ts/.cache/agent-scratch/polystore-031-byte-proof-20261002.t9WrHD/polystore-0.3.1-py3-none-any.whl"); data=p.read_bytes(); digest=hashlib.sha256(data).hexdigest(); print("file="+str(p)); print("actual_bytes="+str(len(data))); print("actual_sha256="+digest); assert len(data)==157342; assert digest=="d1c81414f9b5ec1373a68a41bf704ec76c4b1f60a1ea0f00bb031bc8ae264e50"; print("ACTUAL_BYTE_CHECK=PASS")'
25+
26+
Independent local-byte result:
27+
file=/home/ts/.cache/agent-scratch/polystore-031-byte-proof-20261002.t9WrHD/polystore-0.3.1-py3-none-any.whl
28+
actual_bytes=157342
29+
actual_sha256=d1c81414f9b5ec1373a68a41bf704ec76c4b1f60a1ea0f00bb031bc8ae264e50
30+
ACTUAL_BYTE_CHECK=PASS
31+
32+
Exit code: 0
33+
34+
Bounds: one CPU; 512MiB cgroup; no swap; fetch max20s plus25s command wall;
35+
max response157342B; hash read max10s. Hash computed from actual read_bytes(),
36+
not a cached digest or metadata copy. The frozen scientific environment was
37+
not changed; the readonly Python interpreter executed standard library only.
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
Original 0.3.1 publication attempt
2+
=================================
3+
4+
Parent merged PR21 normally at f07da0971947e7b7938503961a7014909e560307.
5+
The original release.py session36811 was resumed once by the parent and
6+
completed. No release invocation, retag, resubmission, rerun, environment install
7+
or scientific operation was performed by this source worker.
8+
9+
Exact publisher handle:
10+
https://github.com/OpenHCSDev/PolyStore/actions/runs/36963152726
11+
Job 110701039079, run_attempt 1, event push, created 2026-10-02T04:07:22Z.
12+
The native gh run watch observes this handle only.
13+
14+
Verified remote tag objects:
15+
16+
* v0.3.1 annotated tag 57740a8200d27633da81a9e7a7320d5f4ebb1147,
17+
peels to f07da0971947e7b7938503961a7014909e560307.
18+
* Immutable failed v0.3.0 tag 282c13750e40eb96135f6c7072d2b0c540db4309,
19+
still peels to 84f322e46871de5ed47e7fd20976ad03e533c1c4.
20+
21+
Initial observation: run queued, no GitHub release and PyPI 0.3.1 JSON HTTP404.
22+
This is pending publication, not failure or artifact acceptance.
23+
24+
Terminal publication acceptance
25+
-------------------------------
26+
27+
The SAME attempt completed SUCCESS, job start 2026-10-02T04:18:47Z,
28+
job completion 2026-10-02T04:20:22Z. Every build/publish step passed:
29+
editable installation, full release-candidate tests, ordinary distribution build,
30+
immutable declaration validation, twine check, trusted PyPI publication, GitHub
31+
release and original post-job cleanup. No attempt was resubmitted or replayed.
32+
33+
Actual hosted suite: 570 PASS, 5 SKIP, zero failures in 17.57s. These are the
34+
original full publisher selection plus the two new admission tests. No source
35+
test, assertion or skip was weakened or added to avoid the original nine reds.
36+
Do not substitute the earlier local 572/1skip count for this hosted result.
37+
38+
PyPI JSON confirms version0.3.1, requires-python >=3.11, and roifile declared
39+
only for the dev extra. Both PyPI distributions are non-yanked. GitHub release
40+
401537625 is public/non-draft/non-prerelease, published 2026-10-02T04:20:19Z:
41+
https://github.com/OpenHCSDev/PolyStore/releases/tag/v0.3.1
42+
PyPI release: https://pypi.org/project/polystore/0.3.1/
43+
44+
Programmatic artifact metadata comparison found BOTH filename/size/SHA256
45+
identities equal between PyPI JSON and the GitHub release assets. The original
46+
publisher DSSE subject digests in its retained log match these same digests:
47+
48+
* polystore-0.3.1-py3-none-any.whl, 157342 bytes,
49+
d1c81414f9b5ec1373a68a41bf704ec76c4b1f60a1ea0f00bb031bc8ae264e50.
50+
* polystore-0.3.1.tar.gz, 193442 bytes,
51+
0d1e78468581ead9c1cb13fcea0bc208ce52ba4e909bbcedf1662604be928dc7.
52+
53+
GitHub also retains both publish.attestation assets. Workflow artifact inventory
54+
is empty; these are actual GitHub RELEASE assets, not nonexistent Actions
55+
artifact uploads. The initial publication check established metadata agreement
56+
only. The subsequent bounded actual-byte verification below extends that proof;
57+
neither check establishes fresh installed execution or biological acceptance.
58+
59+
Full successful job log fetched through original GitHub SDK and archived
60+
losslessly in original-job-110701039079.log.gz. Decoded original bytes169009,
61+
including BOM/final newline, SHA256
62+
cd1723ac96587309e23dec9144476c0219ae2b2124b0e3c084fe701a8fedfa49.
63+
Raw terminal-run, GitHub-release, PyPI and workflow-artifact JSON replies are
64+
archived alongside it. The v0.3.0/v0.3.1 tag object identities were checked
65+
again after successful publication and remained unchanged.
66+
67+
Publication blocker is closed. The previously recorded offline uv.lock
68+
limitation remains separate and unchanged; this publisher does not use it.
69+
70+
Independent public-wheel byte verification
71+
-----------------------------------------
72+
73+
After the owner authorised one157KB public fetch, no retained exact public wheel
74+
was found under the worktrees, agent scratch or uv/pip caches. Existing local
75+
editable wheels were not substituted for the published artifact. One HTTPS fetch
76+
of the original PyPI wheel URL completed HTTP200 in0.086730s,157342bytes.
77+
An independent local file read and SHA256 calculation asserted:
78+
79+
* Actual length157342bytes.
80+
* Actual digest
81+
d1c81414f9b5ec1373a68a41bf704ec76c4b1f60a1ea0f00bb031bc8ae264e50.
82+
83+
Both expected identities matched, exit0. PUBLIC-WHEEL-BYTE-PROOF.txt retains
84+
the original command/results and bounds: oneCPU/512MiB, fetch20s(max25s wall),
85+
response maximum157342B, hash10s. No package installation/import, environment
86+
creation, source change, native/science run or dependency download occurred.
87+
The sdist remains metadata-agreement-only; its bytes were not independently
88+
downloaded/hashed. The wheel byte check does not imply installed acceptance.
89+
90+
The completed original synthetic-test scratch and single public-wheel scratch
91+
are closed after proof archival; CLEANUP.rst records the exact targets/results.
92+
Both original publisher logs, compressed evidence, source, branch history and
93+
native journal remain preserved.
94+
95+
The original append-only tool-call authority is linked at
96+
/home/ts/wt/openhcs-issue-batch-20260929/agent-audit-20261002/Dewey/native-session.jsonl.
97+
The existing link resolves to the original Codex session journal; it has not
98+
been copied, edited or replaced. Source/publication work has no microscopy
99+
screenshot claim. Original failed 0.3.0 publisher logs remain preserved.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
PolyStore 0.3.1 publisher admission
2+
================================
3+
4+
Source base: 84f322e46871de5ed47e7fd20976ad03e533c1c4 (remote main).
5+
Owner: Dewey, isolated polystore-publisher-admission-031-20261002 worktree.
6+
Parent owns integration, the sole new 0.3.1 tag, and hosted release acceptance.
7+
The immutable failed v0.3.0 tag is untouched.
8+
9+
Original failure
10+
----------------
11+
12+
Run https://github.com/OpenHCSDev/PolyStore/actions/runs/36959840684,
13+
job 110690882405: 9 failed, 545 passed, 19 skipped in 15.91s.
14+
Three failures require child processes to import checkout source; the publisher
15+
installed a regular distribution. Six ROI topology/archive cases fail because
16+
the existing dev extra omitted roifile. No original test or skip is changed.
17+
18+
The full job log was fetched through the GitHub SDK job-log tool and archived
19+
as original-job-110690882405.log.gz (lossless gzip), preserving UTF-8 text including
20+
its original BOM and final newline: 142020 bytes, SHA256
21+
542d75ef00bcd8677526131a1afe195cea6fa63edca7eca5aa8e0b1b4e4b703c.
22+
23+
Ownership and repair
24+
--------------------
25+
26+
Replace the existing publisher install with editable .[dev] admission, matching
27+
the existing ordinary test workflow. The later package build and immutable
28+
declaration/publish steps are unchanged. Declare roifile in the original dev
29+
extra, not a workflow-only dependency roster or mandatory runtime requirement.
30+
Advance the sole project version declaration to 0.3.1; the existing package
31+
version and release scripts derive it from distribution/project metadata.
32+
33+
Current NRA/refactor-audit skills and packaged pattern catalog were read.
34+
MEMB-1/MEMB-2: dependency membership remains in the original extras declaration.
35+
TIME-8: no duplicated version or metadata authority. No Python runtime mechanism
36+
is introduced, so inheritance/MI would be ornamental here. Independent future
37+
dev dependencies need only their own extra entry, not publisher consumer edits.
38+
The real editable-build test reads emitted metadata and the actual source .pth
39+
from the existing setuptools backend rather than mirroring its implementation.
40+
41+
Open-PR check found only Dependabot PR10, whose publisher-file changes are action
42+
pins; this patch leaves those pins unchanged. Parent's release worktree is not
43+
edited. No environment installation, external download, Fiji/native launch,
44+
science job, tag or release operation was performed.
45+
46+
Focused source qualification
47+
----------------------------
48+
49+
68 PASS, zero skips: publisher admission/editable metadata, basic package,
50+
ImageJ cache policy and fresh-process source, namespace handoff, ROI geometry
51+
and archive roundtrip, and lazy package exports. These include all nine original
52+
failed cases. The initial original-only run was 63 PASS; new admission controls
53+
were 2 PASS. Final combined run: 8.43s pytest, 9.089s monitored wall,
54+
322700 KiB aggregate RSS (315.14 MiB), one CPU, 512 MiB / 60s limits.
55+
See qualified.xml and qualified-source.txt. The command is in COMMANDS.rst.
56+
57+
Source is explicitly this worktree's src; dependencies/interpreter are readonly
58+
openhcs-generated-inputs-installed-parent-20261001/.venv/bin/python.
59+
The two publisher controls exercise the real offline editable build without
60+
installing its artifact. They verify checkout binding, unfiltered publisher
61+
pytest invocation, derived version, and dev-only ROI dependency metadata.
62+
No installed editable-candidate or hosted 0.3.1 acceptance is claimed.
63+
64+
Lock limitation
65+
---------------
66+
67+
uv lock --offline --no-python-downloads failed because imglyb==2.1.0 is absent
68+
from the cache for the all/bioformats extras. Original uv.lock already records
69+
PolyStore 0.2.18 and ZMQRuntime 0.2.21, inconsistent with base declarations.
70+
The lock is unchanged: no fabricated entries, constrained platforms, dependency
71+
weakening or downloads. Publisher pip does not consume uv.lock. The existing
72+
separate distribution CI lock-check remains unqualified until authorized lock
73+
regeneration; this is not represented as publisher or runtime acceptance.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="0" skipped="0" tests="2" time="1.721" timestamp="2026-10-01T23:43:39.638980-04:00" hostname="desktop"><testcase classname="tests.test_publisher_admission" name="test_publisher_installs_the_dev_candidate_editably" time="0.002" /><testcase classname="tests.test_publisher_admission" name="test_editable_artifact_owns_checkout_path_and_roi_dev_requirement" time="1.594" /></testsuite></testsuites>

0 commit comments

Comments
 (0)