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

cstrans-df-run: introduce the --shell-form option #217

Closed
wants to merge 7 commits into from

Conversation

kdudka
Copy link
Member

@kdudka kdudka commented Feb 5, 2025

... to write transformed RUN lines using the shell form (rather than exec form, which is the default format).

Related: https://issues.redhat.com/browse/KFLUXBUGS-1943
Related: https://issues.redhat.com/browse/OSH-809

@kdudka kdudka self-assigned this Feb 5, 2025

// store the list to "*pDst" and return "true" if the list is not empty
TDst &dst = *pDst;
dst = vm[key].template as<TDst>();
Copy link
Member

Choose a reason for hiding this comment

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

This is wild! 🔥 🔥 🔥 😮

@kdudka kdudka force-pushed the shell-form branch 3 times, most recently from 5c22729 to c59f94d Compare February 5, 2025 11:27
lzaoral and others added 6 commits February 5, 2025 12:38
... so that we do not need to bump the version manually in the YAML file

Fixes: commit 56ac540
Related: csutils#214
... to eliminate duplicated code.  No change in behavior intended
with this commit.
... to make the code easier to extend.  No change in behavior intended
with this commit.
... so that it can easily access TransformerProps.  No change
in behavior intended with this commit.
... to write transformed RUN lines using the shell form
(rather than exec form, which is the default format).

Related: https://issues.redhat.com/browse/KFLUXBUGS-1943
Related: https://issues.redhat.com/browse/OSH-809
No change in behavior intended with this commit.
@kdudka kdudka marked this pull request as ready for review February 5, 2025 13:54
@kdudka kdudka requested a review from lzaoral February 5, 2025 13:54
@kdudka
Copy link
Member Author

kdudka commented Feb 6, 2025

/packit rebuild-failed

Copy link
Member

@jamacku jamacku left a comment

Choose a reason for hiding this comment

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

🔥 ++

LGTM

@kdudka
Copy link
Member Author

kdudka commented Feb 7, 2025

@lzaoral @jamacku Thank you both for review!

@kdudka kdudka closed this in b05206d Feb 7, 2025
@kdudka kdudka deleted the shell-form branch February 7, 2025 12:49
kdudka added a commit to kdudka/csdiff that referenced this pull request Feb 7, 2025
... so that tests with/without the `--shell-form` option get assigned
distinct test names rather than effectively overwriting each other.
This one-line change enables additional 11 tests.

Fixes: commit b05206d
Related: csutils#217
Closes: csutils#219
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants