Skip to content

docs: plan #97 Add ansible-lint - #108

Merged
dan-petty merged 3 commits into
mainfrom
feat/97-add-the-rust-toolchain-and-ansible
Nov 27, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/97-add-the-rust-toolchain-and-ansible

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

The image has no ansible-lint, so the implement job of dan-petty/devops-cli cannot run its preset for Ansible repositories. This change adds ansible-lint as a Python tool of the image. It installs ansible-lint from the hashed requirement file python/ansible-lint.txt into an environment of its own, and links its command. The osv-scanner step of the Image workflow scans the new lock file, and test/tools.sh prints the version of ansible-lint. README.md tells the reader to add the lock file of a new Python tool to the osv-scanner step. The image grows by about 60 MB. The owner decided on 2026-11-27 that the image gets no Rust toolchain. release-please and auto-merge publish the release after the merge.

Plans #97

Change: openspec/changes/97-add-the-rust-toolchain-and-ansible/

@devops-cli-service devops-cli-service Bot added the type/docs Type docs: a change to the documents label Nov 27, 2026
devops-cli-service Bot and others added 2 commits November 27, 2026 13:06
Copy the toolchain folder of rustc --print sysroot, not the rustup
proxies of CARGO_HOME. Link rustdoc and add gcc and libc6-dev, so that
cargo test works. Use the minimal profile with clippy and rustfmt. Accept
a rust entry of mise.lock with no URL. Run the osv-scanner check of the
new lock file and state the rule for a finding. Use the checks of this
repository, drop the duplicate README task, and fix the release text.
@dan-petty
dan-petty force-pushed the feat/97-add-the-rust-toolchain-and-ansible branch from 53d34d6 to 8bf43a7 Compare November 27, 2026 13:06
@dan-petty

Copy link
Copy Markdown
Owner

Plan evaluation: FIXED at 8bf43a7

I fixed the plan in commit 8bf43a7 (docs: fix the plan of #97). I tested each claim with mise 2026.11.14 (the pin of Dockerfile:13), uv 0.13.10, osv-scanner 2.7.1 and a container of the devtools image.

Defects and fixes

  1. Group 2 copied the wrong folder (blocker). mise which cargo prints ~/.cargo/bin/cargo, which is a link to the rustup proxy. mise keeps the toolchain in ~/.rustup/toolchains/<release>-<host>. A copy of the two levels above cargo holds only 21 MB of proxies. For a different home, cargo --version printed "rustup could not choose a version of cargo to run" and exited 1. Fix: copy the folder that mise exec -- rustc --print sysroot prints.
  2. rustdoc had no link. With no rustdoc, cargo test --doc failed with "could not execute process rustdoc ... (never executed)". Fix: link rustdoc and check its version.
  3. The image has no C linker. cargo test failed with "error: linker cc not found". The apt step has no gcc. The rust-cargo preset of feat(k8s): toolchain presets and runner tools for each language devops-cli#4648 runs cargo build and cargo test. Fix: add apt gcc and libc6-dev (32 packages, 244 MB), as the official Rust slim image does. With these, a user that is not root ran cargo test, cargo clippy and cargo fmt --check on a new crate with the toolchain folder read-only. test/tools.sh now builds and tests a new crate offline.
  4. Task 1.1 could never pass. mise lock writes no URL and no checksum for core:rust: the rust plugin returns false from supports_lockfile_url, because rustup does the downloads. mise install --locked accepts the entry and exits 0. Fix: the check reads the version, the backend and the options. README.md:65 and README.md:89 change for this tool.
  5. No profile gave the default profile. It adds rust-docs: the toolchain grows from 623 MB to 1.3 GB and 66,000 files. The devops-cli runner image is 6.05 GB, and its smoke step refuses more than 7,000,000,000 bytes. Fix: profile = "minimal" with the components clippy and rustfmt.
  6. No rule for a new osv-scanner finding. The plan said that the new lock needs no ignore, because the current ignores are for semgrep. That is not a check. Fix: task 3.1 scans the new lock first, raises the pin for a finding with a fix, and adds a 3-day ignore by the rule of python/osv-scanner.toml for a finding with no fix. Today the lock of ansible-lint 26.11.1 (29 packages) gives "No issues found".
  7. Groups 5 and 6 named devops-cli checks. uv run devops ci --check --only actionlint,zizmor and uv run devops ci docs are no checks of this repository. Task 6.2 repeated task 6.1. Fix: the commands of README "Build and test" and of image.yml (actionlint, zizmor, hadolint, shellcheck, osv-scanner). I removed task 6.2.
  8. The documents task left README.md:20 wrong (open finding of the stage review). The Rust commands are links. Fix: task 6.1 changes that sentence.
  9. The release text was wrong. release-please and auto-merge publish the release (README.md:173 to README.md:175). No person step is necessary.
  10. A rejected alternative was missing. sid has ansible-lint 26.4.0 (upstream 26.11.1) and rustc 1.99.1 (upstream 1.100.0), so the apt rule rejects both. I added this evidence.

The other stage review findings were already resolved in the staged plan.

Checks

  • Local plan check: only the title line, which does not apply to this repository.
  • openspec validate 97-add-the-rust-toolchain-and-ansible --strict: valid.
  • pre-commit: passed.

Facts that I confirmed

  • ansible-lint has a wheel for each package on both platforms. ansible-lint --version exits 0. It prints "PATH altered" on stderr, and sends no version request.
  • MISE_SAFE=1 mise lock, which Renovate runs, moves the rust entry and keeps its options.
  • devops-cli#4648 waits on this item. This item depends on no open item.

Risks that I did not check

  • I did not build the full image or do the arm64 build.
  • The image grows by about 0.93 GB. The devops-cli runner can come near its limit of 7,000,000,000 bytes.
  • ansible-lint is GPL-3.0-or-later.
  • feat(image): add the Kilo CLI #98 changes the same ln -s list, test/tools.sh and README.md.

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 27, 2026 13:22
@dan-petty dan-petty changed the title docs: plan #97 Add the Rust toolchain and ansible-lint docs: plan #97 Add ansible-lint Nov 27, 2026
@dan-petty

Copy link
Copy Markdown
Owner

Review of head 981e91b: ready.

  • Owner decision of 2026-11-27: no Rust toolchain in the image. The plan now adds ansible-lint only. The Rust toolchain is a rejected alternative: with gcc and libc6-dev it adds about 0.96 GB, and the devops-cli runner image (6,296,100,499 bytes) would go over its bound of 7,000,000,000 bytes.
  • ansible-lint 26.11.1 (29 packages, hashed lock) adds 60,214,668 bytes on linux/amd64. osv-scanner finds no issue in its lock. Both platforms have wheels, and ansible-lint --version runs with no network.
  • The Dependencies section names that the semgrep ignores of chore(deps): bump semgrep and drop osv-scanner ignores #2 end on 2026-11-30. From then, each Image run fails until chore(deps): bump semgrep and drop osv-scanner ignores #2 renews or removes them.
  • Checks on 981e91b: build, test and scan pass on linux/amd64 and linux/arm64, CodeQL and the PR title pass. The plan check and strict OpenSpec validation pass.

@dan-petty
dan-petty merged commit 7f438d2 into main Nov 27, 2026
10 of 11 checks passed
@dan-petty
dan-petty deleted the feat/97-add-the-rust-toolchain-and-ansible branch November 27, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant