Repository navigation
docs(openspec): plan #2610 use tag_digest HEAD for image pins - #3096
Conversation
|
Advisory pre-merge review (automated; a person decides). Recommendation: hold. The plan sends Docker Hub images to a host that is not the Docker Hub registry, and the base spec and command module are left in conflict with the new code.
Checks that I ran or confirmed:
The premise of the issue (an anonymous HEAD is free of the pull limit) is true. The plan needs the fixes above before it can be built. |
The first plan sent Docker Hub names to the host docker.io, which answers 302 to www.docker.com. The corrected plan maps them to registry-1.docker.io, reads digest references, moves the one reference split to the registry module, and keeps the dry run free of requests. It reuses RegistryFake and stub_web, orders the groups so the tests pass after each, and carries a MODIFIED spec delta.
Write the design as merged: drop the sentence about the first draft. Add the Reads and Changes line to group 5 of the tasks. Name the overlap with the plan of #2603 in the Feasibility section.
|
Evaluation of plan #2610 and the fixes pushed to this branch. Changes in the plan:
Confirmed findings (all fixed): the host map, the digest reference read, the dry run text, the first draft sentence, the group 5 line, the #2603 overlap. Unconfirmed findings: none left open. Premise: an anonymous HEAD to Docker Hub does not use the pull allowance. A GET does. I measured Verification: |
|
Advisory pre-merge review (automated; a person decides). Recommendation: merge after minor fixes. The plan for #2610 is sound, and the findings below are small gaps in the verification steps, the CI path filter and the PR body.
Dropped finding: the lens also noted that task 3.1 puts command tests in Checks that I ran or weighed:
|
Task 4.1 and 4.2 now search for the stale text "counts each read" and "after the hour", not only the word imagetools. A new task 4.3 adds src/devops_cli/docker/registry.py to the paths filter of the image-pins job.
|
Fixes for the three review findings (commit f7e4b1b, merged with the current main):
|
|
Advisory pre-merge review (automated; a person decides). Recommendation: hold. Task 4.3 breaks an existing test, and no task fixes that test. Fix the plan first, then it can merge. Reviewed head: f7e4b1b.
Notes (not findings): the Feasibility text cites origin/main at 6e8b4ca, and origin/main is now aad0115. The design leaves Checks that I ran (and lens checks that I accepted):
|
Task 4.3 now edits the exact paths-filter string in tests/invariants/test_workflow_contracts.py, so group 4 ends green. The spec delta modifies the requirement for the CI job and lists the registry module in the filter.
|
Fixes for the re-review (commit e136e0d):
|
|
Advisory pre-merge review (automated; a person decides). Recommendation: merge. The plan is sound, its premise holds, and I found no finding above nit. The four nits can be fixed in this PR or in the first implementation commit.
Checks that I ran or confirmed (lens
|
Plans #2610
This change replaces the
docker buildx imagetools inspectsubprocess call indevops k8s image-pinswith the project's owntag_digestfunction, which sends a HEAD request of the manifest. Docker Hub does not count HEAD requests against the anonymous pull allowance. Fourteen of the 32 pins underk8s/are on Docker Hub, so each run no longer spends 14 pulls from the shared allowance.The change removes
inspect_command,ImagetoolsFake, its contract suite and its recordings. It movesimage_referencetosrc/devops_cli/docker/registry.py. Tests now double the registry at the HTTP edge withRegistryFake, served bystub_web. No new tool pin is needed.The open plan for #2603 (pull request #3071) edits
tagged_imageandtests/docker/test_registry_tag_digest.pytoo, and it keeps the refusal of Docker Hub names. This plan removes that refusal. The pull request that merges later must update the other plan or the code of the earlier one.Change:
openspec/changes/2610-devops-k8s-image-pins-resolves-with/