Skip to content

[PR #2014/68fb0a31 backport][stable-7] Quote scalars with colons in flow style collection#2017

Merged
softwarefactory-project-zuul[bot] merged 1 commit intostable-7from
patchback/backports/stable-7/68fb0a3151e85e391bdaa12991356b3446714aca/pr-2014
Mar 13, 2024
Merged

[PR #2014/68fb0a31 backport][stable-7] Quote scalars with colons in flow style collection#2017
softwarefactory-project-zuul[bot] merged 1 commit intostable-7from
patchback/backports/stable-7/68fb0a3151e85e391bdaa12991356b3446714aca/pr-2014

Conversation

@patchback
Copy link
Copy Markdown

@patchback patchback bot commented Mar 13, 2024

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

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)
@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Mar 13, 2024
@softwarefactory-project-zuul
Copy link
Copy Markdown
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 5m 03s
✔️ build-ansible-collection SUCCESS in 14m 55s
✔️ ansible-test-splitter SUCCESS in 5m 37s
✔️ integration-amazon.aws-1 SUCCESS in 13m 30s
✔️ integration-amazon.aws-2 SUCCESS in 19m 22s
✔️ integration-amazon.aws-3 SUCCESS in 8m 48s
✔️ integration-amazon.aws-4 SUCCESS in 8m 09s
Skipped 40 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 7b16614 into stable-7 Mar 13, 2024
@softwarefactory-project-zuul softwarefactory-project-zuul bot deleted the patchback/backports/stable-7/68fb0a3151e85e391bdaa12991356b3446714aca/pr-2014 branch March 13, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mergeit Merge the PR (SoftwareFactory)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants