-
Notifications
You must be signed in to change notification settings - Fork 77
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
Fix ci issue #111
Fix ci issue #111
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ | |
- item.registry is defined | ||
- item.registry.credentials is defined | ||
- item.registry.credentials.username is defined | ||
changed_when: false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are you sure it's the proper way to do that ? this command (and the next one) are clearly doing something on the system. Unless podman login or build are doing nothing ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for pointing it out. IMO, if the login fails, the playbook would fail. Does that make sense? |
||
|
||
- name: Check presence of custom Dockerfiles | ||
ansible.builtin.stat: | ||
|
@@ -97,6 +98,7 @@ | |
retries: 3 | ||
delay: 30 | ||
no_log: false | ||
changed_when: false | ||
|
||
- name: Determine the CMD directives | ||
ansible.builtin.set_fact: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
collections: | ||
- name: google.cloud | ||
source: https://galaxy.ansible.com | ||
source: https://github.com/ansible-collections/google.cloud | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should have been mentioned at least in the commit message, with explanations. It's easy to miss |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,5 +36,5 @@ | |
# Molecule managed | ||
{{ instance_conf | to_json | from_json | to_yaml }} | ||
dest: "{{ molecule_instance_config }}" | ||
mode: 0600 | ||
mode: ":0600" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo ? should have been "0600" ? Has this pull request been really tested ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are right. Thanks for your careful review. It's a typo. I'll fix that in a new PR. |
||
when: server.changed | bool |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -30,6 +30,7 @@ extras = | |||
deps = | ||||
py-{devel}: git+https://github.com/ansible-community/molecule.git@main#egg=molecule[test] | ||||
commands = | ||||
ansible-galaxy install -r requirements.yml | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My knowledge is quite limited in this part of the repository. Why it is needed now and it was not before ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for pointing it out. The collection is required in molecule-plugins/test/podman/test_func.py Line 81 in 8867bd3
The differenceThis issue is introduced in this commit, ansible/molecule@4dd1294 Before the commitThe ansible is installed by package management tool(apt-get on ubuntu), and some collections will be installed automatically in After the commitThe WhyCollections are installed in Besides the default collection path like In non virtual environmentvagrant@vagrant:~$ /usr/bin/python3 -c "import sys; print (sys.path)"
['', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/home/vagrant/.local/lib/python3.10/site-packages', '/usr/local/lib/python3.10/dist-packages', '/usr/lib/python3/dist-packages'] In virtual environmentvagrant@vagrant:~$ python3 -m venv venv
vagrant@vagrant:~$ ./venv/bin/python3 -c "import sys; print (sys.path)"
['', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/home/vagrant/venv/lib/python3.10/site-packages'] SolutionWe can install collections explicitly in default collection path( Reference: /cc @ssbarnea |
||||
pytest --collect-only | ||||
pytest --color=yes {tty:-s} | ||||
setenv = | ||||
|
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.
why ? what's the 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.
The ansible-lint will try to check the yaml format file. But this file does not need linting.