Repository navigation
Description
Update 2026-11-26 (infra move): the bucket lifecycle rule goes to dan-petty/homelab.
This issue keeps the publish command, the store paths and the comments. The rule that expires project-review/version/ after 90 days belongs to the BucketLifecyclePolicy of reports and reports-private in k8s/object-store/buckets.yaml of homelab. The k8s row here cannot check it.
Follow-up: dan-petty/homelab#275.
Problem or Motivation
The owner asked that the project review publishes its report files to the cluster content store, with links from the release and the issues. GitHub stays the source of truth, so the status must show on GitHub, with one tracker issue and one filer for each repository. Today the review writes only a local folder.
Proposed Solution & Architectural Design
--publishanddevops roadmap review publish <dir>copy the window folder to the content store through the store's standard interface (the S3 API or plain HTTP) and its own client. The store is the one that the content store study picks (feat(k8s): track the cluster content store #4742; its child "feat(cli): publish and read content-store files" gives the client).- Paths in the store:
project-review/<owner>/<repo>/<window_id>/withindex.html,summary.md,data.jsonandcharts/*.vl.json;project-review/<owner>/<repo>/index.jsonandindex.html(the list of windows), written again on each publish;project-review/assets/fonts/*.woff2(one shared copy).- A rerun of a window replaces only the objects of that window.
- Needs from the store:
- size: about 1.5 MB for each weekly window and 0.3-0.6 MB for a short version window; about 80-100 MB a year for devops-cli;
- retention:
data.jsonand the weekly HTML have no expiry (data.jsonis the only copy after Prometheus and Loki drop the data at 30 days); version-review HTML expires after 90 days through a lifecycle rule on the prefix (rebuild <data.json>makes it again with 0 requests); - serving: GET over HTTPS behind Access for people; Service DNS over HTTP in the cluster for the review job;
text/html; charset=utf-8served inline, not as an attachment; - one write credential for the review job, in a Secret from the keyring through
devops k8s push-secrets.
- Post or edit one comment on the brain tracker issue of the repository (feat(roadmap): track the project brain #4624, brain decision 1), with the marker
<!-- devops-project-review window=<id> -->. The comment holdssummary.mdand the link to the report. - Report links can be in public GitHub text (owner decision of 2026-11-11). The base URL is a setting, not a value in git. Reports of public repositories also stay behind Access.
- Put the review candidates in
data.jsonfor the brain intake path. The review files no issue itself. - When the store does not answer: keep the folder, post "report not published", and exit non-zero with a named error. The next run or
publish <dir>uploads the files. - The store request timeout is shorter than the run deadline.
--dry-runsends 0 requests.
Target Subsystem
SDLC, Git & PR Governance (src/devops_cli/roadmap/project_review/), with the content store client.
Existing Tool Considered
The content store and its standard client (the S3 API or plain HTTP) carry the files. The devops gh session posts and edits the comment. GitHub Pages is rejected: it builds from main:/docs. Release assets are rejected: they download as attachments. Cost (estimate): about 150-250 lines with tests, one issue-size item, about 0.33-0.50 USD on the DeepSeek implement path and 1-2 days elapsed.
Acceptance Criteria
- A rerun of one window edits the same comment, so the issue has 1 comment for that window.
- A fake store outage keeps the files and exits non-zero with a named error.
index.jsonlists each window once.- A HEAD request on
index.htmlreturnsContent-Type: text/htmlwith no attachment header. - The comment is 65,536 characters or fewer.
--dry-runsends 0 requests.
Dependencies
- feat(roadmap): render the project review as an HTML page #4720 feat(roadmap): render the project review as an HTML page.
- The content store (feat(k8s): track the cluster content store #4742): its child "feat(cli): publish and read content-store files" (child 4 of feat(k8s): track the cluster content store #4742).
- The brain tracker issue of each repository (feat(roadmap): track the project brain #4624, brain decision 1).
Source: #4679
Alternatives check of 2026-12-01: in-use.
The repository already uses this tool.
Tool: SeaweedFS (https://github.com/seaweedfs/seaweedfs), Apache-2.0, last activity 2026-12-01, maintained.
Reason: Searches found SeaweedFS, an S3-compatible object store that carries the report objects, the two visibility buckets and prefix lifecycle rules. The issue already names SeaweedFS as its store, so it covers the storage need; the publish command, the window list and the tracker comment stay this issue's work.
Covers:
- S3-compatible object store for the report files
- Buckets for public and private reports
- Lifecycle rules that expire a prefix after 90 days
- HTTP serving of stored objects
Lacks:
- No publish command with dry-run
- No window index.json or index.html list
- No brain tracker comment with the window marker
- The review-window store kind writes prefix windows, not project-review/version
Proposed design
Problem statement
Publish each review window folder to SeaweedFS through its S3 API. Do not build a store or a second S3 client. The project review writes its report only to a local folder today, and the owner wants the files in the cluster content store with a link from the brain tracker issue. This item writes the window list, posts one comment on the brain tracker issue, and reads the report base URL from a setting; GitHub stays the source of truth.
Acceptance criteria
Requirement: Publish a window folder
The review SHALL copy a window folder to the content store under project-review/<owner>/<repo>/<window_id>/, with --publish and with devops roadmap review publish <dir>.
Scenario: Publish command with a fake store
- WHEN The operator publishes one window folder with
--publishand withdevops roadmap review publish <dir>against a fake store. - THEN The fake store receives
index.html,summary.md,data.jsonand eachcharts/*.vl.jsonunder the window path in both runs.
Requirement: Window index
A publish SHALL write project-review/<owner>/<repo>/index.json and index.html with each window exactly once.
Scenario: Second window
- WHEN The review publishes a second window for the repository to a fake store.
- THEN
index.jsonholds two entries and each window id appears once.
Requirement: Rerun one window
A rerun of a window SHALL replace only the objects under that window path.
Scenario: Rerun one window
- WHEN The operator publishes a window again after the store holds two windows.
- THEN The objects of that window change and the objects of the other window do not change.
Requirement: Bucket by visibility
The publish SHALL write a public repository to bucket reports and a private repository to bucket reports-private.
Scenario: Private repository
- WHEN The
privatefield of the GitHub API is true for the repository. - THEN The fake store receives the objects in
reports-private.
Requirement: Brain tracker comment
The review SHALL post one comment with the marker <!-- devops-project-review window=<id> --> on the brain tracker issue of the repository.
Scenario: Rerun of a window
- WHEN The review publishes the same window a second time.
- THEN The issue holds one comment for that window and its body holds the summary and the report link.
Requirement: Comment size
The comment body MUST be 65,536 characters or fewer.
Scenario: Long summary
- WHEN
summary.mdis longer than 65,536 characters. - THEN The comment holds the truncated summary and the report link, and it is 65,536 characters or fewer.
Requirement: Store outage
A store outage MUST keep the local folder and exit non-zero with a named error.
Scenario: Store does not answer
- WHEN The fake store returns an error or does not answer before the request timeout.
- THEN The folder stays on disk, the command posts
report not publishedand it exits non-zero with the named error.
Requirement: Publish after outage
A later devops roadmap review publish <dir> MUST upload a folder that a store outage left on disk.
Scenario: Publish after outage
- WHEN The operator runs
devops roadmap review publish <dir>after a store outage. - THEN The fake store receives the window objects and the command exits 0.
Requirement: Dry run
--dry-run MUST send zero requests to the store and to GitHub.
Scenario: Dry run
- WHEN The operator runs the publish with
--dry-run. - THEN The fake store and the fake GitHub client receive zero requests and the command prints the objects that it would write.
Requirement: Object content type
The writer SHALL set the Content-Type of each object from its file type.
Scenario: HTML content type
- WHEN The publish writes
index.htmlto the fake store. - THEN The object metadata holds
Content-Type: text/html; charset=utf-8.
Requirement: Pending a person after the merge
The object store SHALL serve a published index.html as text/html; charset=utf-8 with no attachment header.
Scenario: HEAD on the published index.html
- WHEN A person runs
curl -sIon the report URL through the in-cluster Service DNS after the merge. - THEN The response has
Content-Type: text/html; charset=utf-8and noContent-Disposition: attachmentheader.
Requirement: Candidates in data.json
The publish SHALL put the review candidates in data.json and SHALL NOT file an issue.
Scenario: Review with candidates
- WHEN The review finds candidates.
- THEN
data.jsonholds them and the fake GitHub client receives no issue creation request.
Requirement: Request timeout
The store request timeout MUST be shorter than the run deadline.
Scenario: Slow store
- WHEN The fake store accepts the connection and does not answer, with a fake clock.
- THEN The request stops at the store request timeout, and the command exits non-zero with the named error before the run deadline.
Requirement: Base URL setting
The report link MUST use the base URL from the roadmap.project_review.url setting, and no host SHALL be in git.
Scenario: Setting unset
- WHEN
roadmap.project_review.urlis unset. - THEN The command exits non-zero with a named error before it sends a request.
Requirement: Version-review prefix
The publish SHALL write version-review HTML under project-review/version/<owner>/<repo>/<window_id>/ and keep its data.json in the window folder.
Scenario: Version-review window
- WHEN The review publishes a version-review window.
- THEN The fake store receives the HTML under the
project-review/version/prefix anddata.jsonatproject-review/<owner>/<repo>/<window_id>/data.json.
Requirement: Version-review lifecycle rule
The BucketLifecyclePolicy of reports and reports-private SHALL expire the project-review/version/ prefix after 90 days.
Scenario: Kubernetes check accepts the rule
- WHEN The operator runs
uv run devops ci --check --only k8son the change. - THEN The command exits 0 and reports the
k8srow as passed.
Requirement: Shared font assets
A publish SHALL write each font once to project-review/assets/fonts/ and SHALL NOT write a copy under each window.
Scenario: Shared font
- WHEN The review publishes a second window that uses the same font.
- THEN The fake store receives one object at
project-review/assets/fonts/<font>.woff2and no font object under either window.
Existing Tool Considered
SeaweedFS (https://github.com/seaweedfs/seaweedfs), Apache-2.0, maintained. The alternatives check of 2026-11-26 in the issue body gives the verdict in-use and lists what the tool covers and what it lacks. This item writes no store and no S3 client of its own: it uses the S3 API of SeaweedFS through the store client that #4742 delivers. It adds only the parts that the check lists as lacking: the publish command with --dry-run and the store request timeout, the index.json and index.html window list, and the comment on the brain tracker issue through the devops gh session. Written cost of these parts: about 150-250 lines with tests, one issue-size item, about 0.33-0.50 USD on the DeepSeek implement path and 1-2 days elapsed.
Key questions
- Which store and client does the publish use?: The publish uses SeaweedFS through its S3 API and the store client that the child of feat(k8s): track the cluster content store #4742 delivers. The review adds no second S3 client. (best practice) [sources: docs/adr/0034-the-object-store-is-seaweedfs-with-its-operator.md, CONTRIBUTING.md]
- Chosen: SeaweedFS through the store client of feat(k8s): track the cluster content store #4742. ADR 0034 picks SeaweedFS, and CONTRIBUTING.md asks for one thin adapter on a tool's standard interface.
- Rejected: A second S3 client in the review. It duplicates the adapter, its credential and its tests.
- Rejected: GitHub Pages. A Pages site builds from the repository, and the report files come from the review run.
- Rejected: GitHub release assets. Release assets download as attachments, and the report must render inline.
- Which bucket holds the objects?: A public repository writes to bucket
reportsand a private repository writes toreports-private. Theprivatefield of the GitHub API decides. (best practice) [sources: k8s/object-store/buckets.yaml, k8s/README.md:1217]- Chosen: One bucket for each visibility. Both buckets exist with the names of the two visibilities, so the publish needs no new bucket.
- Rejected: One bucket for both visibilities. It mixes public and private objects under one prefix and one lifecycle rule.
- Rejected: One bucket for each repository. It multiplies bucket CRs and credentials for no gain.
- How does a rerun treat an existing window?: A rerun replaces only the objects under the same window path. It leaves the other windows and the shared fonts unchanged. (best practice) [sources: src/devops_cli/roadmap/project_review/window.py, src/devops_cli/roadmap/project_review/review.py]
- Chosen: Replace the same window. The window id is a path segment and a key, so a rerun touches one window and the other links stay valid.
- Rejected: Abort unless the operator passes
--replace. It adds a flag that the issue does not ask for and blocks a normal rerun. - Rejected: Replace all windows. It changes published reports of other windows and breaks their links.
- What does the publish do when the store does not answer?: It keeps the local folder, posts
report not published, and exits non-zero with a named error. A later run ordevops roadmap review publish <dir>uploads the folder. (best practice) [sources: ARCHITECTURE.md]- Chosen: Keep the folder and fail. The shared capability falls back to a local tier, so the report is not lost and the next run sends it.
- Rejected: Retry inside the run. The store request timeout is shorter than the run deadline, so a retry loop can exceed the deadline.
- Rejected: Fail and delete the folder. It loses the only copy of the report.
- Which name does the report base URL setting use?: The setting is
roadmap.project_review.url, and its variable isDEVOPS_CLI_ROADMAP_PROJECT_REVIEW_URL. No host goes into git. (best practice) [sources: CONTRIBUTING.md:214, src/devops_cli/config/env.py, AGENTS.md]- Chosen: The setting
roadmap.project_review.url. CONTRIBUTING.md:214 gives each setting theDEVOPS_CLI_variable and the generated documents read the declaration. - Rejected: A bare
PROJECT_REVIEW_URLvariable for the CLI. It bypasses theDEVOPS_CLI_rule and the generated settings documents. - Rejected: A host in the code or a config file. AGENTS.md forbids an internal hostname in git.
- Chosen: The setting
- Where does the version-review HTML sit so one lifecycle rule expires it?: The version-review HTML goes under
project-review/version/<owner>/<repo>/<window_id>/. Itsdata.jsonstays atproject-review/<owner>/<repo>/<window_id>/data.json. A rule on prefixproject-review/version/withexpiration.days: 90joins theBucketLifecyclePolicyofreportsandreports-private. (best practice) [sources: k8s/object-store/buckets.yaml, k8s/README.md:1217]- Chosen: One common
project-review/version/prefix. One rule expires all version-review HTML, anddata.jsonkeeps no expiry. - Rejected: Version-review HTML in the window folder. A rule on the window prefix would also expire
data.json, the only copy after 30 days. - Rejected: A version prefix for each repository. It needs one rule for each repository and grows with the repository list.
- Chosen: One common
- How does the comment stay within the 65,536-character limit?: The review truncates
summary.mdat the limit and links the full report. The comment holds the marker, the truncated summary and the report link. (best practice) [sources: openspec/changes/archive/2026-11-02-3206-raise-job-caps/design.md]- Chosen: Truncate the summary and link the full text. One comment holds 65,536 characters, so the comment stays valid and the report holds the full text.
- Rejected: Post the summary in more than one comment. It breaks the one-comment-per-window rule and the marker.
- Where does the review post its comment?: On the brain tracker issue that feat(roadmap): track the project brain #4624 gives one for each repository. The comment holds the marker
<!-- devops-project-review window=<id> -->. (best practice) [sources: docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md]- Chosen: The brain tracker issue of the repository. feat(roadmap): track the project brain #4624 gives one tracker issue for each repository, and the owner wants the status there.
- Rejected: An issue of the review window. The review files no issue, so it has no issue of its own.
- Rejected: No comment. The owner wants the status on GitHub, with a link to the report.
- Does the review file an issue for a candidate?: No. The publish puts the candidates in
data.jsonfor the brain intake path, and the review files no issue itself. (best practice) [sources: docs/adr/0001-github-is-the-roadmap-source.md, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md]- Chosen: Put the candidates in
data.json. The brain intake path reads them, and GitHub stays the source of truth. - Rejected: File an issue for each candidate. It bypasses intake and adds duplicates.
- Chosen: Put the candidates in
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.It is a planned feature that depends on unfilled items and has no urgency signal.It makes project review reports accessible to the team, but the data is already available locally.The body estimates 150-250 lines with tests and one issue-size scope.Both post comments on GitHub in the roadmap area, but dan-petty/devops-cli#4416 comments on releases from webhooks while the candidate publishes review report files to a content store and links them on brain tracker issues.dan-petty commentedon Nov 11, 2026
Store facts from the content store plan (#4742). This item owns the publish of the project review, so #4742 files no second item for it.
devops storeadapter of feat(cli): publish and read content-store files #4761 (boto3). Use it, not a second S3 client. Add feat(cli): publish and read content-store files #4761 to the dependencies.privatefield of the GitHub API):reports, served atfiles.<domain>/...;reports-private, served atfiles.<domain>/private/...(owner decision of 2026-11-11: the same exposure as Grafana behind Access).index.htmlfor a path that ends in/, sends the Content-Type that the writer stored, and has a strict CSP that admits same-origin fonts and images. The writer sets the Content-Type of each object.--replace.pending;devops store syncsends it later. This item decides its own exit code and message from that status.store.web_base_url; no host is in git.dan-petty commentedon Nov 12, 2026
Scope note from tracker #5151 (2026-11-12).
#5152 moves the docs site to Zensical and builds it with
devops docs site build. The site can link the project review index with no host in git: when the repository variablePROJECT_REVIEW_URLis set, the Pages workflow passes it to the site build, and the nav gets a "Project review" link. When the variable is not set, the site has no link.For this item: use the name
PROJECT_REVIEW_URLfor the base URL setting of the review index, so #4741 and the site read one variable. The site part is one line in the Pages workflow and one nav entry, and it goes in whichever of #5152 or this item merges second.dan-petty commentedon Nov 12, 2026
The reason that this item gives for the rejection of GitHub Pages is no longer true. It says that GitHub Pages "builds from
main:/docs". Since #5183, the Pages source is GitHub Actions (build_type: workflow), and.github/workflows/pages.ymldeploys the site.The real limits of GitHub Pages for this item are these:
pages.ymldeploys only from main (on: push: branches: [main]andworkflow_dispatch).Check the choice of the content store again against these limits.
devops-cli-service commentedon Nov 14, 2026
Alternatives check: partly
Reason: The searches and the store facts in the replies point to SeaweedFS, the S3-compatible store that the content-store plan (#4742) picks: it supplies the object storage, writer-set Content-Type and lifecycle rules on a key prefix that this item needs, and its README advertises a full S3 API with a lifecycle redesign. It does not do the publish itself, the GitHub comment with the window marker, the index.json maintenance or the dry-run, so the item still builds those on the
devops storeadapter (#4761) and thedevops ghsession.Tool: seaweedfs/seaweedfs (https://github.com/seaweedfs/seaweedfs)
Covers:
Lacks:
devops roadmap review publish <dir>command,--publishand--dry-run<!-- devops-project-review window=<id> -->markerindex.json/index.htmland keeping the per-window path layoutPROJECT_REVIEW_URLbase-URL setting (#4759, feat(docs): track the docs site upgrade and the docs and Pages jobs #5151)Tools considered:
Searches run:
Sources:
Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 15, 2026
Refine cannot set this item to Ready at a8a99cb while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
dan-petty commentedon Nov 22, 2026
#4756 (PR #6724) adds the lifecycle rules of
reportsandreports-privateink8s/object-store/buckets.yaml, but not the 90-day rule of the version-review HTML, because this item has not yet named its bucket and prefix. When it does, add a rule with thatprefixandexpiration.days: 90to theBucketLifecyclePolicyof the bucket; the operator sets the lifecycle of the bucket to exactly the rules of that one policy.devops-cli-service commentedon Nov 22, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
devops-cli-service commentedon Nov 26, 2026
The result in the alternatives block of the issue body changed. Before this check:
partly, tool https://github.com/seaweedfs/seaweedfs. A person decides what the new result means for the item.Searches (6)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 26, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
dan-petty commentedon Nov 27, 2026
The homelab rule of dan-petty/homelab#275 (plan: dan-petty/homelab#490) expires the prefix
project-review/version/after 90 days in the bucketsreportsandreports-private. The requirement "Version-review prefix" of this issue writes the version-review HTML under that prefix.The
devops storeadapter (#4761) does not write these keys now:review-window(src/devops_cli/store/kinds.py:23-28) gives the bucketreportsand the prefixwindows/.full_object_keyputswindows/in front of each key that does not start with it. Thus the keyproject-review/version/<owner>/<repo>/<window_id>/index.htmlbecomeswindows/project-review/version/<owner>/<repo>/<window_id>/index.html.reports-private.If the publish uses the kind
review-window, the homelab rule matches no object, and the version-review HTML stays with no expiry.Fix in this issue: add a store kind or a prefix that writes the version-review HTML at keys that start with
project-review/version/, inreportsfor a public repository and inreports-privatefor a private repository. Keepdata.jsonatproject-review/<owner>/<repo>/<window_id>/data.json, outside that prefix.