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

Quote scalars with colons in flow style collection #2014

Conversation

gravesm
Copy link
Member

@gravesm gravesm commented Mar 6, 2024

SUMMARY

Older versions of libyaml and pyyaml don't support colons in scalars that appear in flow style collections. This adds quotes to the handful of cases where they are used in the integration tests.

This was uncovered by downstream testing. I am only able to reproduce the problem on the supported ee-minimal-rhel8 image. I believe this is because even though pyyaml should be recent enough, it has likely been compiled against an older version of libyaml that does not have the fix.

See:
yaml/libyaml#104
yaml/pyyaml#45

It's worth noting that running ansible-lint --fix will undo these changes, which is how I think they were made in the first place.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION

Older versions of libyaml and pyyaml don't support colons in scalars
that appear in flow style collections. This adds quotes to the handful
of cases where they are used in the integration tests.
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/035448dcf9d74d48b441421cd15b40b0

✔️ ansible-galaxy-importer SUCCESS in 4m 20s
✔️ build-ansible-collection SUCCESS in 14m 42s
✔️ ansible-test-splitter SUCCESS in 6m 20s
✔️ integration-amazon.aws-1 SUCCESS in 13m 24s
✔️ integration-amazon.aws-2 SUCCESS in 16m 16s
✔️ integration-amazon.aws-3 SUCCESS in 7m 22s
✔️ integration-amazon.aws-4 SUCCESS in 7m 38s
Skipped 40 jobs

@tremble tremble added mergeit Merge the PR (SoftwareFactory) backport-7 PR should be backported to the stable-7 branch labels Mar 13, 2024
Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/d439d00d723249689644b1e3310bfb4c

✔️ ansible-galaxy-importer SUCCESS in 5m 09s
✔️ build-ansible-collection SUCCESS in 15m 42s
✔️ ansible-test-splitter SUCCESS in 6m 31s
✔️ integration-amazon.aws-1 SUCCESS in 13m 23s
✔️ integration-amazon.aws-2 SUCCESS in 18m 06s
✔️ integration-amazon.aws-3 SUCCESS in 9m 28s
✔️ integration-amazon.aws-4 SUCCESS in 8m 24s
Skipped 40 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 68fb0a3 into ansible-collections:main Mar 13, 2024
41 of 42 checks passed
Copy link

patchback bot commented Mar 13, 2024

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/68fb0a3151e85e391bdaa12991356b3446714aca/pr-2014

Backported as #2017

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Mar 13, 2024
Quote scalars with colons in flow style collection

SUMMARY

Older versions of libyaml and pyyaml don't support colons in scalars that appear in flow style collections. This adds quotes to the handful of cases where they are used in the integration tests.
This was uncovered by downstream testing. I am only able to reproduce the problem on the supported ee-minimal-rhel8 image. I believe this is because even though pyyaml should be recent enough, it has likely been compiled against an older version of libyaml that does not have the fix.
See:
yaml/libyaml#104
yaml/pyyaml#45
It's worth noting that running ansible-lint --fix will undo these changes, which is how I think they were made in the first place.

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Bikouo Aubin
Reviewed-by: GomathiselviS
(cherry picked from commit 68fb0a3)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Mar 13, 2024
[PR #2014/68fb0a31 backport][stable-7] Quote scalars with colons in flow style collection

This is a backport of PR #2014 as merged into main (68fb0a3).
SUMMARY

Older versions of libyaml and pyyaml don't support colons in scalars that appear in flow style collections. This adds quotes to the handful of cases where they are used in the integration tests.
This was uncovered by downstream testing. I am only able to reproduce the problem on the supported ee-minimal-rhel8 image. I believe this is because even though pyyaml should be recent enough, it has likely been compiled against an older version of libyaml that does not have the fix.
See:
yaml/libyaml#104
yaml/pyyaml#45
It's worth noting that running ansible-lint --fix will undo these changes, which is how I think they were made in the first place.

ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Mark Chappell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7 PR should be backported to the stable-7 branch mergeit Merge the PR (SoftwareFactory) skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants