Skip to content

Fix bug that tremor run would always ever run for exactly 150s#1582

Merged
Licenser merged 9 commits into
mainfrom
tremor-run-hang-fix
May 12, 2022
Merged

Fix bug that tremor run would always ever run for exactly 150s#1582
Licenser merged 9 commits into
mainfrom
tremor-run-hang-fix

Conversation

@Licenser

Copy link
Copy Markdown
Member

Pull request

Description

Tremor run had originally a timeout running for exactly 150s, this makes no sense of all, so we join world and let the runtime decide when to stop.

Checklist

  • The RFC, if required, has been submitted and approved
  • Any user-facing impact of the changes is reflected in docs.tremor.rs
  • The code is tested
  • Use of unsafe code is reasoned about in a comment
  • Update CHANGELOG.md appropriately, recording any changes, bug fixes, or other observable changes in behavior
  • The performance impact of the change is measured (see below)

Performance

no runtime changes

mfelsche
mfelsche previously approved these changes Apr 29, 2022

@mfelsche mfelsche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🤦 lets merge this quickly, so no one sees it.

mfelsche
mfelsche previously approved these changes Apr 29, 2022
@codecov

codecov Bot commented Apr 29, 2022

Copy link
Copy Markdown

Codecov Report

Merging #1582 (610c4a8) into main (a05b769) will increase coverage by 1.54%.
The diff coverage is 89.65%.

@@            Coverage Diff             @@
##             main    #1582      +/-   ##
==========================================
+ Coverage   85.74%   87.28%   +1.54%     
==========================================
  Files         232      254      +22     
  Lines       47188    50159    +2971     
==========================================
+ Hits        40461    43781    +3320     
+ Misses       6727     6378     -349     
Flag Coverage Δ
clicommand 14.42% <0.00%> (?)
cliintegration 52.55% <50.00%> (?)
cliunit 13.45% <0.00%> (?)
unittests 85.77% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
tremor-cli/src/run.rs 67.80% <0.00%> (ø)
tremor-cli/src/test.rs 55.44% <50.00%> (ø)
src/connectors.rs 87.30% <100.00%> (+1.23%) ⬆️
src/connectors/impls/stdio.rs 74.60% <100.00%> (+70.71%) ⬆️
tremor-value/src/value.rs 98.99% <0.00%> (ø)
build.rs
tremor-script/build.rs
tremor-cli/src/report.rs 72.00% <0.00%> (ø)
tremor-cli/src/test/metadata.rs 100.00% <0.00%> (ø)
tremor-cli/src/test/assert.rs 68.16% <0.00%> (ø)
... and 83 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a05b769...610c4a8. Read the comment docs.

@mfelsche

mfelsche commented May 4, 2022

Copy link
Copy Markdown
Member

I think in this case the codecov/patch metric is not applicable. Those lines weren't tested before.

Would you mind adding a test for the run_troy_source function?

@mfelsche

Copy link
Copy Markdown
Member

Should we add a coverage exclude for tremor-cli?

@Licenser

Copy link
Copy Markdown
Member Author

idk that feels a bit "wrong" I want to try to see if we can use a wrapper to include more of the integration tests, that'd be really handy.

@Licenser Licenser force-pushed the tremor-run-hang-fix branch from 908254e to 9faebb8 Compare May 11, 2022 12:00
@Licenser

Copy link
Copy Markdown
Member Author

Okay I got it working but cargo-llvm-cov has a limitation that prevents us from using it: taiki-e/cargo-llvm-cov#160

@Licenser Licenser force-pushed the tremor-run-hang-fix branch from 5fd57d8 to 55992a6 Compare May 11, 2022 17:53
Licenser and others added 4 commits May 12, 2022 10:28
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
and enable tests for tremor-cli.

Signed-off-by: Matthias Wahl <matthiaswahl@m7w3.de>
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
@Licenser Licenser force-pushed the tremor-run-hang-fix branch from 55992a6 to 98c5147 Compare May 12, 2022 08:56
Licenser added 2 commits May 12, 2022 11:35
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
@tremor-rs tremor-rs deleted a comment from coveralls May 12, 2022
Licenser added 3 commits May 12, 2022 14:54
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
@Licenser Licenser enabled auto-merge (rebase) May 12, 2022 13:53

@mfelsche mfelsche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

At least now we know that the tests in tremor-cli have been successful at one point in time.

@Licenser Licenser merged commit 09376fc into main May 12, 2022
@Licenser Licenser deleted the tremor-run-hang-fix branch May 12, 2022 13:55
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.

2 participants