Skip to content

add gate jobs#39

Merged
masco merged 1 commit into
mainfrom
gate-jobs
May 19, 2026
Merged

add gate jobs#39
masco merged 1 commit into
mainfrom
gate-jobs

Conversation

@masco
Copy link
Copy Markdown
Member

@masco masco commented May 14, 2026

Summary by CodeRabbit

  • Chores
    • Added an automated CI workflow to run Ansible linting and syntax checks on changes.
    • Introduced YAML linting configuration to enforce pragmatic YAML formatting rules.
    • Declared required Ansible collections to ensure necessary tooling is installed for tests.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 14, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 56ede39a-9415-4317-ab78-0b2ac2ad72a2

📥 Commits

Reviewing files that changed from the base of the PR and between bd4f73e and 18fcdd3.

📒 Files selected for processing (3)
  • .github/workflows/ansible-ci.yml
  • .yamllint
  • collections/requirements.yml
✅ Files skipped from review due to trivial changes (1)
  • collections/requirements.yml
🚧 Files skipped from review as they are similar to previous changes (2)
  • .github/workflows/ansible-ci.yml
  • .yamllint

📝 Walkthrough

Walkthrough

Adds CI for Ansible: a GitHub Actions workflow that installs Ansible/yamllint, runs yamllint and playbook syntax checks, plus a .yamllint config and collections/requirements.yml for required Ansible collections.

Changes

Ansible CI and Linting Setup

Layer / File(s) Summary
Workflow job configuration
.github/workflows/ansible-ci.yml
Workflow triggers (pull_request, push to main/master), concurrency and permissions; job installs Python, ansible-core and yamllint, installs collections from collections/requirements.yml, runs yamllint over ansible and utils, and performs ansible-playbook --syntax-check for specified playbooks.
YAML lint rules and collections
.yamllint, collections/requirements.yml
Adds .yamllint extending default rules with exceptions for Jinja2 templates and relaxed formatting rules, and collections/requirements.yml listing community.crypto and ansible.posix collection minimum versions.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 I hopped through YAML, tidy and spry,
Linting the playbooks under sky,
Collections lined up, checks on their way,
CI hums softly to brighten the day.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'add gate jobs' is vague and does not clearly describe the main changes in the pull request, which involve setting up CI/CD workflows with Ansible linting and syntax checking. Consider using a more specific title such as 'Add Ansible CI workflow with yamllint and syntax checks' to better communicate the actual changes to reviewers.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch gate-jobs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
.github/workflows/ansible-ci.yml (1)

48-52: 💤 Low value

Consider standardizing playbook file extensions.

Most playbooks use .yml extension, but ansible/deploy_external_ceph.yaml uses .yaml. While both are valid, standardizing on one extension improves consistency across the codebase.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/ansible-ci.yml around lines 48 - 52, The workflow lists
ansible/deploy_external_ceph.yaml while other playbooks use .yml; standardize
the extension by renaming deploy_external_ceph.yaml to deploy_external_ceph.yml
(or conversely rename all .yml to .yaml) and update references in the workflow
(the list in the ansible-ci job) to the chosen filename; ensure the commit
includes the file rename and any CI references are updated so ansible-ci checks
the correct playbook name.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/ansible-ci.yml:
- Around line 30-33: Update the ansible-core version constraint in the GitHub
Actions "Install tools" step so it permits current stable releases; replace the
existing constraint ">=2.15,<2.19" used in the pip install command (the line
that installs ansible-core in the "Install tools" step) with a wider upper bound
such as ">=2.15,<2.21" to allow 2.19.x and 2.20.x releases.

---

Nitpick comments:
In @.github/workflows/ansible-ci.yml:
- Around line 48-52: The workflow lists ansible/deploy_external_ceph.yaml while
other playbooks use .yml; standardize the extension by renaming
deploy_external_ceph.yaml to deploy_external_ceph.yml (or conversely rename all
.yml to .yaml) and update references in the workflow (the list in the ansible-ci
job) to the chosen filename; ensure the commit includes the file rename and any
CI references are updated so ansible-ci checks the correct playbook name.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f8002d6d-ca20-4332-badf-7c02be8320d5

📥 Commits

Reviewing files that changed from the base of the PR and between 20135b0 and bd4f73e.

📒 Files selected for processing (2)
  • .github/workflows/ansible-ci.yml
  • .yamllint

Comment on lines +30 to +33
- name: Install tools
run: |
python -m pip install --upgrade pip
pip install "ansible-core>=2.15,<2.19" yamllint
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

What are the latest stable versions of ansible-core as of May 2026?

💡 Result:

Latest stable versions of ansible-core (as of 2026-05-14): 1) ansible-core 2.20.5 (stable) PyPI shows ansible-core “Version History” with 2.20.5 dated 2026-04-21 and marked Production/Stable. [1] 2) ansible-core 2.19.9 (stable) PyPI “Version History” lists 2.19.9 dated 2026-04-21 as a published version. [1] 3) ansible-core 2.18.16 (stable) PyPI “Version History” lists 2.18.16 dated 2026-04-21 as a published version. [1] Notes: - PyPI also indicates newer prereleases exist (for example 2.21.0rc1), so 2.20.5 is the newest stable line as of this date. [1] - Ansible’s release/maintenance page describes that multiple ansible-core major/minor release lines can be maintained concurrently (e.g., 2.20, 2.19, 2.18). [2]

Citations:


Update ansible-core version constraint to include latest stable releases.

The constraint >=2.15,<2.19 excludes ansible-core 2.19.x and 2.20.x. As of May 2026, ansible-core 2.20.5 is the latest stable release (along with stable maintenance releases 2.19.9 and 2.18.16). Update the constraint to >=2.15,<2.21 or similar to allow the workflow to use current stable versions.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/ansible-ci.yml around lines 30 - 33, Update the
ansible-core version constraint in the GitHub Actions "Install tools" step so it
permits current stable releases; replace the existing constraint ">=2.15,<2.19"
used in the pip install command (the line that installs ansible-core in the
"Install tools" step) with a wider upper bound such as ">=2.15,<2.21" to allow
2.19.x and 2.20.x releases.

@masco masco merged commit d2fd5e9 into main May 19, 2026
2 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.

1 participant