ci: follow-ups after moving Molecule to the molecule-controller image #506
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
|
||||
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
|
||||
|
||||
@@ -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: {}
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user