Skip to content

fix(ci): the free-form args check skips a draft marked ready, and reads a like-named variable as a task #20705

Closed

Description

@mrveiss

Problem

Two findings from review on the merge train (PR #20691), in the check PR #20697 added:

  1. .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.
  2. 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.

Activity

  1. added
    bugSomething isn't working
    phase:M1.4Wizard and SLM: choose a mode, apply it, default models work
    on Nov 2, 2026
  2. mrveiss commented on Nov 6, 2026

    @mrveiss
    OwnerAuthor

    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.py blocks_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:50 test_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.

  3. mrveiss commented on Nov 6, 2026

    @mrveiss
    OwnerAuthor

    Delivered by PR #20716, commit a2d01ef, on main via train T82 (19e62c8). Both acceptance criteria are ticked with evidence above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginfrastructurephase:M1.4Wizard and SLM: choose a mode, apply it, default models work

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions