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(quadlet): parse comment lines with kv-pairs #24719

Open
wants to merge 1 commit into
base: v4.9-rhel
Choose a base branch
from

Conversation

jwhb
Copy link

@jwhb jwhb commented Nov 30, 2024

Does this PR introduce a user-facing change?

None

Fix loop in quadlet unitfile parser

Fixes a bug in the quadlet unitfile parser that is
triggered by an commented multi-line assignment line,
e.g. by a line " #=\" in unit file.
The bug caused an infinite loop of the quadlet unit
generator.

Signed-off-by: Jasper Wiegratz <[email protected]>
Copy link
Contributor

openshift-ci bot commented Nov 30, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jwhb
Once this PR has been reviewed and has the lgtm label, please assign luap99 for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

Can you add a unit test to the commit as well?

The PR is against the v4.9.4-rhel branch. For that to merge, we need an issue/bug against RHEL.

Cc @mheon

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR but all development must go into the main branch first.

The PR is against the v4.9.4-rhel branch. For that to merge, we need an issue/bug against RHEL.

I don't see such a commit anywhere in main. Only then we can consider backporting. And as @vrothberg mentions that requires RHEL bugs and must go through the proper RHEL process so we cannot accept this in its current form.

And also add test files to confirm your new changes, i.e. see test/e2e/quadlet_test.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants