-
Notifications
You must be signed in to change notification settings - Fork 0
RavenDB-24201: update CI wf according to ansible steering committee's… #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| name: Ansible Sanity Tests | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: python:2.7 | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - python-version: "3.12" | ||
| ansible-core: stable-2.16 | ||
| - python-version: "3.12" | ||
| ansible-core: stable-2.17 | ||
| - python-version: "3.13" | ||
| ansible-core: stable-2.18 | ||
| - python-version: "3.13" | ||
| ansible-core: stable-2.19 | ||
| - python-version: "3.13" | ||
| ansible-core: devel | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Fix collection path for ansible-test # should be removed once we restructure | ||
| - name: Fix collection path for ansible-test | ||
| run: | | ||
| mkdir -p ansible_collections/ravendb/ravendb | ||
| tar --exclude=ansible_collections -cf - . | tar -C ansible_collections/ravendb/ravendb -xf - | ||
| rsync -av --exclude ansible_collections ./ ansible_collections/ravendb/ravendb | ||
| cd ansible_collections/ravendb/ravendb | ||
| - name: Set up Python (host) | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install "ansible-core@https://github.com/ansible/ansible/archive/stable-2.9.tar.gz" | ||
| pip install "ansible-core@https://github.com/ansible/ansible/archive/${{ matrix.ansible-core }}.tar.gz" | ||
| - name: Run ansible-test sanity | ||
| working-directory: ansible_collections/ravendb/ravendb | ||
| run: | | ||
| ansible-test sanity --python 2.7 -v --color | ||
| sanity: | ||
| name: Ansible Sanity Tests | ||
| ansible-test sanity --docker -v --color | ||
| integration-and-unit: |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium test
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install ansible molecule molecule-docker docker | ||
| pip install ansible molecule molecule-docker docker ravendb_test_driver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like this should work to make sure the right ansible-core version is installed
- name: Install dependencies
env:
ansible_core_package: "ansible-core @ https://github.com/ansible/ansible/archive/${{ matrix.ansible-core }}.tar.gz"
run: |
python -m pip install --upgrade pip
pip install "${ansible_core_package}" molecule molecule-docker docker ravendb_test_driverThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I believe molecule-docker was replaced by molecule-plugins[docker]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| - python-version: "3.13" | ||
| ansible-core: stable-2.19 | ||
|
|
||
| - python-version: "3.11" | ||
| ansible-core: devel | ||
| - python-version: "3.12" | ||
| ansible-core: devel | ||
| - python-version: "3.13" | ||
| ansible-core: devel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This indentation all looks messed up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
Thank you for responding to the feedback on the collection review! I left some comments on this PR. |
28aa4e5 to
0f4d628
Compare
219711c to
3e0963f
Compare
8941976 to
c1bc9d2
Compare
3b0e3bb to
bfb0e18
Compare
1430a16 to
2ebbe2d
Compare
4150a17 to
8c940cc
Compare
548a1f2 to
10fdc67
Compare
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium test
felixfontein
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides that, LGTM.
| # required hack, for Molecule to work with Ansible 2.19 or devel | ||
| # to be removed once this issue is resolved: https://github.com/ansible-community/molecule-plugins/issues/311 | ||
| - name: Patch Molecule docker plugin for Ansible 2.19 or devel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that a new molecule-plugins version has been released yesterday (https://github.com/ansible-community/molecule-plugins/releases/tag/v25.8.12) that should fix this issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed, done
10fdc67 to
d927fa0
Compare
d927fa0 to
e6429b9
Compare
… review