diff --git a/.gitea/workflows/AGENTS.md b/.gitea/workflows/AGENTS.md index f607f81..6028c7a 100644 --- a/.gitea/workflows/AGENTS.md +++ b/.gitea/workflows/AGENTS.md @@ -53,7 +53,8 @@ issue. - **Lint and Build run in the pinned `ci` image and compare the pin files with the checksums baked into it (`/opt/ci-pins.sha256`).** A pull request that changes `requirements-dev.txt`, - `requirements-dev.lock`, `requirements.yml` or `.pre-commit-config.yaml` takes the slow path, which installs the pinned tools and collections. + `requirements-dev.lock`, `requirements.yml` or `.pre-commit-config.yaml` takes the slow path, + which installs the pinned tools and collections. *Why:* a pull request is tested on its own pins, and an unchanged one starts in seconds. *Held:* control: the "Check the baked tooling against the pins" step. - **On the fast path the network is cut by environment**: `PIP_NO_INDEX=1`, the proxy variables diff --git a/.gitea/workflows/image.yml b/.gitea/workflows/image.yml index 277fd62..ec14ca3 100644 --- a/.gitea/workflows/image.yml +++ b/.gitea/workflows/image.yml @@ -39,15 +39,15 @@ on: # yamllint disable-line rule:truthy - main paths: - 'images/**' - # The ci image bakes these files' contents in (images/ci/Dockerfile). + # The ci image bakes these files' contents in (images/ci/Dockerfile); requirements.yml too. - 'requirements-dev.txt' - 'requirements-dev.lock' - 'requirements.yml' - - 'extensions/molecule/requirements.yml' - '.pre-commit-config.yaml' - # The molecule-controller image bakes these (images/molecule-controller/Dockerfile). + # The molecule-controller image bakes these, and requirements.yml (its Dockerfile). - 'requirements-molecule.txt' - 'requirements-molecule.lock' + - 'extensions/molecule/requirements.yml' - '.gitea/workflows/image.yml' workflow_dispatch: {} diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index a669b44..20b1915 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -6,7 +6,8 @@ name: Lint # The tools come from the ci image (images/ci, built by image.yml): the pinned Python # tools of requirements-dev.txt, the collections of requirements.yml and the hook # environments of .pre-commit-config.yaml are baked in. When a PR changes one of those -# files the checksum check below fails and the job installs the pinned tools and collections itself for this run (slower, same result). +# files the checksum check below fails and the job installs the pinned tools and +# collections itself for this run (slower, same result). on: # yamllint disable-line rule:truthy pull_request: branches: diff --git a/requirements-dev.txt b/requirements-dev.txt index 065ec2e..dd5f1c5 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -16,7 +16,7 @@ reuse==6.3.0 # test_check_scenarios_load_checkout.py and test_run_molecule_scenarios.py, which skip without it. molecule==26.11.1 # proxmoxer: the controller-side library community.proxmox's modules import (they refuse anything below 2.3), -# so lint and Molecule run where a consumer's controller would. +# so lint runs where a consumer's controller would. proxmoxer==2.3.0 # apm-cli: for changing apm.yml (run apm install, commit the lock). Keep it at 0.36.1 or later (#252): # before 0.29.0, `apm audit --ci` compares the whole .claude/settings.json and fails on any hand-written key. diff --git a/roles/ufw/tasks/install.yml b/roles/ufw/tasks/install.yml index 1177dbe..25ee093 100644 --- a/roles/ufw/tasks/install.yml +++ b/roles/ufw/tasks/install.yml @@ -6,9 +6,8 @@ state: present register: __ufw_install -# ansible_check_mode is not used: the play-level `check_mode: true` keyword does not set it inside -# include_role tasks. A command does not run in either form, so its output is missing; the same -# probe as tasks/sysctl.yml. Not `is skipped`: ansible-core 2.25 drops that check-mode result. +# Not ansible_check_mode, which the play-level `check_mode: true` keyword does not set in include_role +# tasks, nor `is skipped`, which ansible-core 2.25 drops: the probe's stdout is empty in check mode. - name: Probe whether the run is in check mode ansible.builtin.command: echo ran register: __ufw_install_probe diff --git a/roles/ufw/tasks/orphan_rules.yml b/roles/ufw/tasks/orphan_rules.yml index c0a411e..8def388 100644 --- a/roles/ufw/tasks/orphan_rules.yml +++ b/roles/ufw/tasks/orphan_rules.yml @@ -63,9 +63,8 @@ the rule tags): {{ ufw_managed_owners }} quiet: true - # ansible_check_mode is not used: the play-level `check_mode: true` keyword does not set - # that magic variable inside include_role tasks (only --check does). A command does not run in - # either form, so its output is missing. Not `is skipped`: ansible-core 2.25 drops that result. + # Not ansible_check_mode, which the play-level `check_mode: true` keyword does not set in include_role + # tasks, nor `is skipped`, which ansible-core 2.25 drops: the probe's stdout is empty in check mode. - name: Probe whether the run is in check mode ansible.builtin.command: echo ran register: ufw_oa_probe diff --git a/roles/ufw/tasks/service_rules.yml b/roles/ufw/tasks/service_rules.yml index d988d7b..9156b66 100644 --- a/roles/ufw/tasks/service_rules.yml +++ b/roles/ufw/tasks/service_rules.yml @@ -121,9 +121,8 @@ - ufw_manage_rules tags: [ufw, ufw_service_rules] block: - # ansible_check_mode is not used: the play-level `check_mode: true` keyword does not set - # that magic variable inside include_role tasks (only --check does). A command does not run in - # either form, so its output is missing. Not `is skipped`: ansible-core 2.25 drops that result. + # Not ansible_check_mode, which the play-level `check_mode: true` keyword does not set in include_role + # tasks, nor `is skipped`, which ansible-core 2.25 drops: the probe's stdout is empty in check mode. - name: Probe whether the run is in check mode ansible.builtin.command: echo ran register: ufw_sr_probe diff --git a/roles/ufw/tasks/sysctl.yml b/roles/ufw/tasks/sysctl.yml index b47ffb7..34ecd79 100644 --- a/roles/ufw/tasks/sysctl.yml +++ b/roles/ufw/tasks/sysctl.yml @@ -7,10 +7,8 @@ check_mode: false when: ufw_enabled and ufw_sysctl_overrides | length > 0 -# ansible_check_mode is not used: the play-level `check_mode: true` keyword does not set that -# magic variable inside include_role tasks (only --check does). A command does not run in either -# form, so its output is missing; the same probe as tasks/service_rules.yml. Not `is skipped`: -# ansible-core 2.25 drops that check-mode result. +# Not ansible_check_mode, which the play-level `check_mode: true` keyword does not set in include_role +# tasks, nor `is skipped`, which ansible-core 2.25 drops: the probe's stdout is empty in check mode. - name: Probe whether the run is in check mode ansible.builtin.command: echo ran register: ufw_sysctl_probe