Skip to content

Honor ignore_errors for shell pipelines and verify conditional spacing - #9

Merged
dmillzilla merged 2 commits into
mainfrom
fix/conditional-rule-compatibility
Nov 7, 2026
Merged

dmillzilla merged 2 commits into
mainfrom
fix/conditional-rule-compatibility

Conversation

@dmillzilla

@dmillzilla dmillzilla commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

A shell pipeline with ignore_errors: true incorrectly received risky-shell-pipe. Honor the pinned rule's task-level truthiness exemption, including nonempty template strings, while preserving the independent ignore-errors rule. False and omitted settings still require pipefail. Production checking remains native Rust.

Add CLI regression fixtures for five failure-handling cases and eight conditional-expression cases, covering > and >=, task files and playbooks, and spaced/unspaced filter syntax. The implicit task-file spacing findings are deliberately retained: ansible-lint 26.11.0 tests kind task while its loader reports tasks; the identical expressions produce spacing findings in playbooks. This verified extra check is covered explicitly rather than suppressing valid analysis.

Validation: optimized native replay has 11 exact complete-field/exit matches, two verified extra task-file spacing findings, and zero unexplained differences. 203 Rust tests, strict Clippy, formatting and 16 distribution tests pass. Native CLI regressions run with an empty PATH. Reference comparisons use identical fixtures and offline: true config with public ansible-lint 26.11.0 / ansible-core 2.21.5 on Linux/Python 3.13.15. No playbook execution or private repository access. This is an unreleased 0.1.3 patch; full parity is not claimed.

dmillzilla-bot
dmillzilla-bot previously approved these changes Nov 7, 2026

@dmillzilla-bot dmillzilla-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Codex review as dmillzilla-bot of eb9899b.

Reviewed the shell-only exemption and Python-style truthiness handling. The change skips only risky-shell-pipe; independent ignore-errors checks remain active, and false/omitted controls still report risky pipelines. Regression fixtures cover complete CLI output and exits for failure handling and both conditional operators/file kinds. The task-file spacing difference is explicitly retained and tested rather than silently disabling native checks.

203 Rust tests, strict Clippy, formatting and 16 distribution tests pass locally. No new dependency or production interpreter invocation. No blocking findings in this scoped patch; hosted CI must pass before merge.

@dmillzilla-bot dmillzilla-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Codex re-review of f48208b after merging main's PR #7 licensing cleanup.

Reviewed the full remaining four-file diff against current main. Resolved changelog conflict preserves both the ignore_errors fix and licensing entry; no production behavior changed during integration. The task-level exemption and scoped conditional regressions remain intact. Combined branch passes all 203 Rust tests, 21 distribution tests, formatting and 377-package legal-notice verification locally. No blocking findings. Fresh hosted CI must pass before protected merge.

@dmillzilla
dmillzilla merged commit e7dedfc into main Nov 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants