You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ci): the free-form args check skips a draft marked ready, and reads a like-named variable as a task #20705
Two findings from review on the merge train (PR #20691), in the check PR #20697 added:
.github/workflows/ansible-free-form-args.yml has no ready_for_review trigger, and its job skips drafts, so a draft marked ready doesn't run the check until its next push.
tools/lint/check_ansible_free_form_args.py treats any key named shell, command, raw or script with a string value as a task block, so a variable with that name in group_vars is read as one. On the current tree the check reports 281 blocks examined and none refused, as measured by its author, so it doesn't fail today. It could refuse a variable later.
Acceptance criteria
Marking a draft ready runs the check.
A variable named like a module isn't read as a task block, with a test.
Closure check against origin/main (T82 #20897, merge 19e62c8; fix commit a2d01ef, PR #20716, an ancestor of 19e62c8). check-issue-close-refs.sh 20705 is clear.
AC
Evidence
Ticked
Marking a draft ready runs the check.
.github/workflows/ansible-free-form-args.yml:9: types: [opened, synchronize, reopened, ready_for_review] (the job's if: github.event.pull_request.draft == false is unchanged, so the event now reaches a non-draft).
yes
A variable named like a module isn't read as a task block, with a test.
tools/lint/check_ansible_free_form_args.pyblocks_in(node, is_list_item=False): yields only when is_list_item and is_module. Test repo_tests/ansible_free_form_args_20693_test.py:50test_a_variable_named_like_a_module_is_not_a_task asserts list(blocks_in(variables)) == [] for top-level and nested shell/command/raw keys, and still finds list-item tasks ["t", "inner"].
yes
2 of 2 ticked. PR #20716 shows OPEN on GitHub because the train merged its content rather than the PR, so Closes did not fire; closing here.
Activity
mrveiss commentedon Nov 6, 2026
Closure check against
origin/main(T82 #20897, merge 19e62c8; fix commit a2d01ef, PR #20716, an ancestor of 19e62c8).check-issue-close-refs.sh 20705is clear..github/workflows/ansible-free-form-args.yml:9:types: [opened, synchronize, reopened, ready_for_review](the job'sif: github.event.pull_request.draft == falseis unchanged, so the event now reaches a non-draft).tools/lint/check_ansible_free_form_args.pyblocks_in(node, is_list_item=False): yields only whenis_list_item and is_module. Testrepo_tests/ansible_free_form_args_20693_test.py:50test_a_variable_named_like_a_module_is_not_a_taskassertslist(blocks_in(variables)) == []for top-level and nestedshell/command/rawkeys, and still finds list-item tasks["t", "inner"].2 of 2 ticked. PR #20716 shows OPEN on GitHub because the train merged its content rather than the PR, so
Closesdid not fire; closing here.mrveiss commentedon Nov 6, 2026
Delivered by PR #20716, commit a2d01ef, on main via train T82 (19e62c8). Both acceptance criteria are ticked with evidence above.
fix(ci): the free-form args check runs when a draft is marked ready, …