Skip to content

[Merged by Bors] - fix: Standardize reading records from CLI input#2756

Closed
tjtelan wants to merge 9 commits intofluvio-community:masterfrom
tjtelan:smdk-test-file
Closed

[Merged by Bors] - fix: Standardize reading records from CLI input#2756
tjtelan wants to merge 9 commits intofluvio-community:masterfrom
tjtelan:smdk-test-file

Conversation

@tjtelan
Copy link
Copy Markdown
Contributor

@tjtelan tjtelan commented Oct 26, 2022

Resolves #2755

smdk test --file <file> by default will read in file and treat each line as a separate record.

If you want to read file as a single record, you need to pass in additional flag --raw

@tjtelan tjtelan requested a review from sehz October 26, 2022 08:40
Comment thread crates/smartmodule-development-kit/src/test.rs Outdated
@tjtelan tjtelan requested a review from sehz October 29, 2022 18:43
Copy link
Copy Markdown

@sehz sehz left a comment

Choose a reason for hiding this comment

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

Generally looks good. The only issue is that we should put this into the feature flag

Comment thread crates/fluvio-cli-common/Cargo.toml Outdated
Comment thread crates/fluvio-cli-common/Cargo.toml Outdated
Comment thread crates/fluvio-cli-common/Cargo.toml Outdated
Comment thread crates/fluvio-cli/Cargo.toml Outdated
@tjtelan tjtelan changed the title fix: Make test files read by line by default fix: Standardize reading records from CLI input Oct 31, 2022
@tjtelan tjtelan requested a review from sehz October 31, 2022 23:59
Copy link
Copy Markdown

@sehz sehz left a comment

Choose a reason for hiding this comment

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

Much better. The remaining question is whether to add to make producer-file as an optional feature to CLI's ? It just seems to add more complexity.

Comment thread crates/smartmodule-development-kit/Cargo.toml Outdated
Copy link
Copy Markdown

@sehz sehz left a comment

Choose a reason for hiding this comment

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

LGTM

@sehz
Copy link
Copy Markdown

sehz commented Nov 1, 2022

bors r+

bors bot pushed a commit that referenced this pull request Nov 1, 2022
Resolves #2755 

`smdk test --file <file>` by default will read in file and treat each line as a separate record.

If you want to read file as a single record, you need to pass in additional flag `--raw`
@bors
Copy link
Copy Markdown

bors bot commented Nov 1, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title fix: Standardize reading records from CLI input [Merged by Bors] - fix: Standardize reading records from CLI input Nov 1, 2022
@bors bors bot closed this Nov 1, 2022
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.

Add smdk test input improvements

2 participants