chore: correct comments the ci image change left stale
image.yml's push paths listed extensions/molecule/requirements.yml under the ci image, which no longer bakes it; it now sits with the molecule-controller files. The list only triggers the build, so the paths are unchanged. requirements-dev.txt no longer feeds Molecule, so the proxmoxer comment names lint only. The ufw probe comments now say the probe's stdout is empty in check mode, in two lines each, and two lines in lint.yml and the workflow rules are re-wrapped. Assisted-by: Claude Code
This commit is contained in:
1 parent
a48cd063ea
commit
22f5bc33e9
8 files changed
+16
-19
No files matched your search
@@ -53,7 +53,8 @@ issue.
|
|||||||
|
|
||||||
- **Lint and Build run in the pinned `ci` image and compare the pin files with the checksums
|
- **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`,
|
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.
|
*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.
|
*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
|
- **On the fast path the network is cut by environment**: `PIP_NO_INDEX=1`, the proxy variables
|
||||||
|
|||||||
@@ -39,15 +39,15 @@ on: # yamllint disable-line rule:truthy
|
|||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- 'images/**'
|
- '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.txt'
|
||||||
- 'requirements-dev.lock'
|
- 'requirements-dev.lock'
|
||||||
- 'requirements.yml'
|
- 'requirements.yml'
|
||||||
- 'extensions/molecule/requirements.yml'
|
|
||||||
- '.pre-commit-config.yaml'
|
- '.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.txt'
|
||||||
- 'requirements-molecule.lock'
|
- 'requirements-molecule.lock'
|
||||||
|
- 'extensions/molecule/requirements.yml'
|
||||||
- '.gitea/workflows/image.yml'
|
- '.gitea/workflows/image.yml'
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ name: Lint
|
|||||||
# The tools come from the ci image (images/ci, built by image.yml): the pinned Python
|
# 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
|
# 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
|
# 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
|
on: # yamllint disable-line rule:truthy
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ reuse==6.3.0
|
|||||||
# test_check_scenarios_load_checkout.py and test_run_molecule_scenarios.py, which skip without it.
|
# test_check_scenarios_load_checkout.py and test_run_molecule_scenarios.py, which skip without it.
|
||||||
molecule==26.11.1
|
molecule==26.11.1
|
||||||
# proxmoxer: the controller-side library community.proxmox's modules import (they refuse anything below 2.3),
|
# 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
|
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):
|
# 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.
|
# before 0.29.0, `apm audit --ci` compares the whole .claude/settings.json and fails on any hand-written key.
|
||||||
|
|||||||
@@ -6,9 +6,8 @@
|
|||||||
state: present
|
state: present
|
||||||
register: __ufw_install
|
register: __ufw_install
|
||||||
|
|
||||||
# ansible_check_mode is not used: the play-level `check_mode: true` keyword does not set it inside
|
# Not ansible_check_mode, which the play-level `check_mode: true` keyword does not set in include_role
|
||||||
# include_role tasks. A command does not run in either form, so its output is missing; the same
|
# tasks, nor `is skipped`, which ansible-core 2.25 drops: the probe's stdout is empty in check mode.
|
||||||
# probe as tasks/sysctl.yml. Not `is skipped`: ansible-core 2.25 drops that check-mode result.
|
|
||||||
- name: Probe whether the run is in check mode
|
- name: Probe whether the run is in check mode
|
||||||
ansible.builtin.command: echo ran
|
ansible.builtin.command: echo ran
|
||||||
register: __ufw_install_probe
|
register: __ufw_install_probe
|
||||||
|
|||||||
@@ -63,9 +63,8 @@
|
|||||||
the rule tags): {{ ufw_managed_owners }}
|
the rule tags): {{ ufw_managed_owners }}
|
||||||
quiet: true
|
quiet: true
|
||||||
|
|
||||||
# ansible_check_mode is not used: the play-level `check_mode: true` keyword does not set
|
# Not ansible_check_mode, which the play-level `check_mode: true` keyword does not set in include_role
|
||||||
# that magic variable inside include_role tasks (only --check does). A command does not run in
|
# tasks, nor `is skipped`, which ansible-core 2.25 drops: the probe's stdout is empty in check mode.
|
||||||
# either form, so its output is missing. Not `is skipped`: ansible-core 2.25 drops that result.
|
|
||||||
- name: Probe whether the run is in check mode
|
- name: Probe whether the run is in check mode
|
||||||
ansible.builtin.command: echo ran
|
ansible.builtin.command: echo ran
|
||||||
register: ufw_oa_probe
|
register: ufw_oa_probe
|
||||||
|
|||||||
@@ -121,9 +121,8 @@
|
|||||||
- ufw_manage_rules
|
- ufw_manage_rules
|
||||||
tags: [ufw, ufw_service_rules]
|
tags: [ufw, ufw_service_rules]
|
||||||
block:
|
block:
|
||||||
# ansible_check_mode is not used: the play-level `check_mode: true` keyword does not set
|
# Not ansible_check_mode, which the play-level `check_mode: true` keyword does not set in include_role
|
||||||
# that magic variable inside include_role tasks (only --check does). A command does not run in
|
# tasks, nor `is skipped`, which ansible-core 2.25 drops: the probe's stdout is empty in check mode.
|
||||||
# either form, so its output is missing. Not `is skipped`: ansible-core 2.25 drops that result.
|
|
||||||
- name: Probe whether the run is in check mode
|
- name: Probe whether the run is in check mode
|
||||||
ansible.builtin.command: echo ran
|
ansible.builtin.command: echo ran
|
||||||
register: ufw_sr_probe
|
register: ufw_sr_probe
|
||||||
|
|||||||
@@ -7,10 +7,8 @@
|
|||||||
check_mode: false
|
check_mode: false
|
||||||
when: ufw_enabled and ufw_sysctl_overrides | length > 0
|
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
|
# Not ansible_check_mode, which the play-level `check_mode: true` keyword does not set in include_role
|
||||||
# magic variable inside include_role tasks (only --check does). A command does not run in either
|
# tasks, nor `is skipped`, which ansible-core 2.25 drops: the probe's stdout is empty in check mode.
|
||||||
# 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.
|
|
||||||
- name: Probe whether the run is in check mode
|
- name: Probe whether the run is in check mode
|
||||||
ansible.builtin.command: echo ran
|
ansible.builtin.command: echo ran
|
||||||
register: ufw_sysctl_probe
|
register: ufw_sysctl_probe
|
||||||
|
|||||||
Reference in new issue
Block a user