Skip to content

[Merged by Bors] - fix: Enabled --file and --key-separator to be used together, fix --key handling when producing lines#3092

Closed
ozgrakkurt wants to merge 9 commits into
fluvio-community:masterfrom
ozgrakkurt:master
Closed

[Merged by Bors] - fix: Enabled --file and --key-separator to be used together, fix --key handling when producing lines#3092
ozgrakkurt wants to merge 9 commits into
fluvio-community:masterfrom
ozgrakkurt:master

Conversation

@ozgrakkurt
Copy link
Copy Markdown
Contributor

@ozgrakkurt ozgrakkurt commented Mar 22, 2023

closes #3076

The issue also mentions it should be added to the CI. I'm looking into doing that.

DISCLAIMER: I didn't test this yet

@ozgrakkurt ozgrakkurt changed the title Enable --file and --key-separator to be used together, handle --key when reading lines from file Enable --file and --key-separator to be used together, fix --key handling when producing lines Mar 22, 2023
@ozgrakkurt ozgrakkurt changed the title Enable --file and --key-separator to be used together, fix --key handling when producing lines fix: Enabled --file and --key-separator to be used together, fix --key handling when producing lines Mar 22, 2023
@sehz sehz requested a review from LeoBorai March 23, 2023 15:52
@ozgrakkurt
Copy link
Copy Markdown
Contributor Author

Added test

@ozgrakkurt
Copy link
Copy Markdown
Contributor Author

ozgrakkurt commented Mar 23, 2023

It seems like this is failing because of something with CI, is it not rebuilding the cli?

nevermind I see the point

@LeoBorai
Copy link
Copy Markdown
Contributor

It seems like this is failing because of something with CI, is it not rebuilding the cli?

nevermind I see the point

Hi @ozgrakkurt! Good work so far!

Looks like the issue is here: https://github.com/infinyon/fluvio/actions/runs/4504419808/jobs/7929176514?pr=3092#step:16:72

Due to conflicts with arguments passed on test.

@ozgrakkurt
Copy link
Copy Markdown
Contributor Author

Hey @EstebanBorai,

Old version fails with those options and part of the PR was making it so that it accepts those options.

So the test I added fails with old version but passes with new version.

Not sure how to integrate this with the test.

@sehz
Copy link
Copy Markdown

sehz commented Mar 24, 2023

In that case, run that particular test on new version

@ozgrakkurt
Copy link
Copy Markdown
Contributor Author

@sehz I added some hack to do this in the last commit. What would be a proper way of doing this?

@sehz
Copy link
Copy Markdown

sehz commented Mar 24, 2023

That's reasonable fix!

Copy link
Copy Markdown
Contributor

@LeoBorai LeoBorai left a comment

Choose a reason for hiding this comment

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

LGTM! Nice work @ozgrakkurt!

@LeoBorai
Copy link
Copy Markdown
Contributor

@ozgrakkurt smart way to tune tests for this use case!

@ozgrakkurt
Copy link
Copy Markdown
Contributor Author

@EstebanBorai thanks!

Comment on lines +48 to +50
if [ "$FLUVIO_CLI_RELEASE_CHANNEL" == "stable" ]; then
skip "don't run on stable version"
fi
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nice trick!

We should create an issue to update this once we release a new stable version

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks!

@ozgrakkurt
Copy link
Copy Markdown
Contributor Author

Hey @sehz, can you check when you have time?

@LeoBorai
Copy link
Copy Markdown
Contributor

bors r+

bors Bot pushed a commit that referenced this pull request Mar 25, 2023
…`--key` handling when producing lines (#3092)

closes #3076

The issue also mentions it should be added to the CI. I'm looking into doing that.

DISCLAIMER: I didn't test this yet

Co-authored-by: Özgür Akkurt <91746947+ozgrakkurt@users.noreply.github.com>
@bors
Copy link
Copy Markdown

bors Bot commented Mar 25, 2023

Build failed:

@sehz
Copy link
Copy Markdown

sehz commented Mar 25, 2023

bors r+

bors Bot pushed a commit that referenced this pull request Mar 25, 2023
…`--key` handling when producing lines (#3092)

closes #3076

The issue also mentions it should be added to the CI. I'm looking into doing that.

DISCLAIMER: I didn't test this yet

Co-authored-by: Özgür Akkurt <91746947+ozgrakkurt@users.noreply.github.com>
@bors
Copy link
Copy Markdown

bors Bot commented Mar 25, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors Bot changed the title fix: Enabled --file and --key-separator to be used together, fix --key handling when producing lines [Merged by Bors] - fix: Enabled --file and --key-separator to be used together, fix --key handling when producing lines Mar 25, 2023
@bors bors Bot closed this Mar 25, 2023
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.

fluvio produce options --key-separator and --file should not be mutually exclusive

4 participants