Repository navigation
Add spawn results retention, a read-only report on retention by regeneration cost (#1076, phase 2) - #1103
Merged
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
scttfrdmn
force-pushed
the
feat/1076-phase2-report
branch
from
October 18, 2026 01:07
a602d90 to
9be514e
Compare
scttfrdmn
force-pushed
the
feat/1076-phase2-report
branch
from
October 18, 2026 01:28
9be514e to
7b5554f
Compare
This was referenced Oct 18, 2026
Merged
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.
Phase 2 of #1076 (design, reviewed in #1083). Read only: nothing is tiered, tagged or deleted. Refs #1076. That issue stays open for phases 3 and 4.
spawn results retention [--bucket] [--prefix] [--objects] [-o json]. It defaults tospawn-results-<account>-<region>. Run by run, it reports:It also lists untracked objects (no
spawn:run-id), which are kept. An object whose tags can't be read makes the report say INCOMPLETE and is left out of every figure.Prices. Storage dollars come from a static us-east-1 table read from the AWS Price List API on 2026-10-17. Every figure is labelled static, with the reason (truffle, the pricing authority under #533, prices EC2 only) and the date. A static instance rate is called out with truffle#184 (no collection date), and Windows with #884 (lower bound).
Also in this PR:
spawn:retain=falseis written at upload, from the design review on Design: retention by regeneration cost (#1076) #1083. A lifecycle filter can't negate, so every rule will requireretain=false.BucketRegion/BucketRegionConfigmoved frompkg/pipelinetopkg/s3transfer, tests included, so the pipeline and this report share one implementation. The report reads input buckets in their own regions.cmd/stays within its SDK-import allowlist: the S3 wiring lives inpkg/provenance.BuildReportFromConfig.[0.132.1]after the Set idle thresholds from measured idle instances so --idle-timeout can fire (#1093) #1098 and spored status shows the daemon's idle readings instead of a one-shot sample (#1090) #1095 entries merged under it. The v0.132.2 release (Release v0.132.2: idle-stop works again (#1093), status shows the daemon's readings (#1090) #1105) has since fixed that on main, so after rebasing this PR only adds its own two entries. Both[0.132.1]and[0.132.2]match their tags. The underlying race is PR changelog entries keep merging under the just-released heading, and nothing catches it #1101.Gates: each fails against a revert that compiles.
retain=falsenot requiredspawn:retainnot written asfalseThe tiering table is written from the design's Decisions 3, not read off the code.
Live checks (dev account):
spawn-results-435415984226-us-east-1: 182 untracked objects, as expected.spored provenance upload; then one input was overwritten and another deleted. The report showed the unchanged run as provable, the overwritten input as changed (both ETags shown), and the deleted one as not opted in plus gone. The 128 KiB and under-30-days tiering reasons were correct, and the JSON matched. The bucket is deleted (HeadBucket 404).Local checks:
go vet ./..., the full short suite, all 9 nested modules, staticcheck (GOOS=linux), semgrep andcheck-docs(withdocs-gen/results.md)._Dockertaskproto tests hung because the local Docker daemon is unresponsive (docker infotimes out). CI runs them on Linux.