Skip to content
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 boolean values in docs #400

Merged
merged 2 commits into from
Dec 22, 2022
Merged

Fix boolean values in docs #400

merged 2 commits into from
Dec 22, 2022

Conversation

vladislav-sharapov
Copy link
Contributor

SUMMARY

Fixes #397

ISSUE TYPE
  • Docs Pull Request
COMPONENT NAME

Docs of several modules

ADDITIONAL INFORMATION

Notes about testing. I'm not sure how to test collections properly. I have ran ansible-test sanity --python 3.10 and ansible-test units --python 3.10 in venv with ansible-core 2.14 (with 0 return code in both cases). To run units test successfully I had to install pytest-forked pip package in addition to this one pytest-xdist from test-requirements.txt.

Note about issue #397. I haven't changed yes here because in this case it is value from /etc/vfstab. Also I've changed yes for parameters masquerade and icmp_block_inversion because they both are converted to bool by boolean function and will be changed to boolean in a future release (1, 2), for required too.

@softwarefactory-project-zuul
Copy link
Contributor

Build failed.

ansible-changelog-fragment FAILURE in 15s
ansible-test-sanity-docker-devel FAILURE in 9m 33s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 7m 10s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.9 SUCCESS in 10m 17s
✔️ ansible-test-sanity-docker-stable-2.10 SUCCESS in 8m 15s
✔️ ansible-test-sanity-docker-stable-2.11 SUCCESS in 9m 37s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 7m 23s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 8m 00s
✔️ ansible-test-units-posix-python39 SUCCESS in 5m 37s
✔️ ansible-test-units-posix-python310 SUCCESS in 5m 18s
✔️ ansible-galaxy-importer SUCCESS in 3m 42s
✔️ build-ansible-collection SUCCESS in 3m 11s

@samccann
Copy link
Contributor

Thanks @vladislav-sharapov for taking on this and changing the booleans for this collection. I don't unfortunately know what's causing the CI failures but hoping someone else can pipe in on this to help out.

@briantist
Copy link

The sanity failures show these messages:

ERROR: plugins/modules/acl.py:0:0: doc-default-does-not-match-spec: Argument 'entity' in argument_spec defines default as ('') but documentation defines default as (None)
ERROR: plugins/modules/rhel_rpm_ostree.py:0:0: doc-default-does-not-match-spec: Argument 'name' in argument_spec defines default as ([]) but documentation defines default as (None)

These don't look like they are based on this PR; the history looks like the last commit also may have failed, I would ignore these for now until the project maintainers can comment.

The other failure is because this PR is missing a changelog fragment.

@felixfontein
Copy link
Contributor

These sanity errors remind me of ansible-collections/news-for-maintainers#25 :)

@felixfontein
Copy link
Contributor

#403 should fix the sanity tests.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-changelog-fragment SUCCESS in 16s
ansible-test-sanity-docker-devel FAILURE in 8m 39s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 6m 55s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.9 SUCCESS in 10m 13s
✔️ ansible-test-sanity-docker-stable-2.10 SUCCESS in 8m 35s
✔️ ansible-test-sanity-docker-stable-2.11 SUCCESS in 9m 58s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 7m 11s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 6m 54s
✔️ ansible-test-units-posix-python39 SUCCESS in 5m 14s
✔️ ansible-test-units-posix-python310 SUCCESS in 5m 43s
✔️ ansible-galaxy-importer SUCCESS in 3m 46s
✔️ build-ansible-collection SUCCESS in 3m 21s

@felixfontein
Copy link
Contributor

recheck

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-changelog-fragment SUCCESS in 18s
✔️ ansible-test-sanity-docker-devel SUCCESS in 7m 34s (non-voting)
ansible-test-sanity-docker-milestone FAILURE in 10m 32s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.9 SUCCESS in 9m 55s
✔️ ansible-test-sanity-docker-stable-2.10 SUCCESS in 8m 56s
✔️ ansible-test-sanity-docker-stable-2.11 SUCCESS in 10m 01s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 7m 41s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 6m 53s
✔️ ansible-test-units-posix-python39 SUCCESS in 5m 31s
✔️ ansible-test-units-posix-python310 SUCCESS in 5m 02s
✔️ ansible-galaxy-importer SUCCESS in 3m 49s
✔️ build-ansible-collection SUCCESS in 3m 11s

@vladislav-sharapov
Copy link
Contributor Author

I suppose build has failed because of this issue uqfoundation/dill#514. I see dill-0.3.5.1 in build log, this problem should be fixed in dill-0.3.6.

@saito-hideki
Copy link
Collaborator

saito-hideki commented Dec 15, 2022

@vladislav-sharapov Hi, I think there are two issues [a] and [b].

We are checking [b] and will get back to you when we have resolved this issue.
Thanks!

@felixfontein
Copy link
Contributor

The dill version has long been fixed in ansible-core devel. It's just that the milestone branch is way behind both devel and stable-2.14... (its state is three weeks before 2.14.0 has been released; according to https://github.com/ansible/ansible/blob/devel/docs/docsite/rst/roadmap/ROADMAP_2_15.rst#development-phase it will be updated in four days.)

@felixfontein
Copy link
Contributor

The milestone branch has been bumped, so that should pass now.

Copy link
Collaborator

@saito-hideki saito-hideki left a comment

Choose a reason for hiding this comment

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

LTGM

@saito-hideki saito-hideki added the mergeit Gate PR in Zuul CI label Dec 22, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

✔️ ansible-changelog-fragment SUCCESS in 17s
✔️ ansible-test-sanity-docker-devel SUCCESS in 6m 59s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 6m 48s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.9 SUCCESS in 11m 57s
✔️ ansible-test-sanity-docker-stable-2.10 SUCCESS in 8m 06s
✔️ ansible-test-sanity-docker-stable-2.11 SUCCESS in 9m 07s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 8m 11s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 8m 13s
✔️ ansible-test-units-posix-python39 SUCCESS in 6m 06s
✔️ ansible-test-units-posix-python310 SUCCESS in 5m 17s
✔️ ansible-galaxy-importer SUCCESS in 3m 44s
✔️ build-ansible-collection SUCCESS in 3m 10s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit a2ab688 into ansible-collections:main Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit Gate PR in Zuul CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider using true/false for all booleans in docs
5 participants