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

go/oasis-node: Fix the interactive prompt to be correct #3143

Merged
merged 2 commits into from
Jul 30, 2020

Conversation

Yawning
Copy link
Contributor

@Yawning Yawning commented Jul 30, 2020

  • Implicitly set --assume_yes if not running in a tty
  • Don't crash when not running in a tty

@Yawning Yawning force-pushed the yawning/fix/isatty branch from 2d3d610 to 2e908ab Compare July 30, 2020 07:51
@Yawning Yawning marked this pull request as ready for review July 30, 2020 07:58
Copy link
Member

@kostko kostko left a comment

Choose a reason for hiding this comment

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

Just fix the changelog thing, otherwise looks good.

.changelog/9000.internal.md Outdated Show resolved Hide resolved
Yawning added 2 commits July 30, 2020 08:04
Having to use a command line flag when not running in an interactive
terminal is somewhat silly, and recursively calling the Fisher Price
Baby's First Interactive Prompt routine till the command exhauses the
heap and crashes when not run in a tty is even sillier.
Since the sub-commands ran from the test harness will always have stdin
tied to `/dev/null`, this is now implicit.
@Yawning Yawning force-pushed the yawning/fix/isatty branch from 2e908ab to 54fadb0 Compare July 30, 2020 08:06
@codecov
Copy link

codecov bot commented Jul 30, 2020

Codecov Report

Merging #3143 into master will increase coverage by 0.35%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3143      +/-   ##
==========================================
+ Coverage   68.57%   68.93%   +0.35%     
==========================================
  Files         376      377       +1     
  Lines       37115    37130      +15     
==========================================
+ Hits        25453    25595     +142     
+ Misses       8402     8271     -131     
- Partials     3260     3264       +4     
Impacted Files Coverage Δ
go/oasis-node/cmd/common/consensus/consensus.go 42.52% <0.00%> (+1.61%) ⬆️
go/oasis-node/cmd/common/common.go 52.94% <17.64%> (+0.66%) ⬆️
go/oasis-node/cmd/common/isatty.go 100.00% <100.00%> (ø)
go/consensus/tendermint/api/errors.go 86.66% <0.00%> (-13.34%) ⬇️
go/consensus/tendermint/abci/state/state.go 61.53% <0.00%> (-7.70%) ⬇️
...ensus/tendermint/apps/staking/proposing_rewards.go 82.85% <0.00%> (-5.72%) ⬇️
go/keymanager/client/client.go 82.64% <0.00%> (-4.14%) ⬇️
go/consensus/tendermint/apps/staking/state/gas.go 77.58% <0.00%> (-3.45%) ⬇️
go/worker/common/committee/node.go 72.88% <0.00%> (-2.83%) ⬇️
go/runtime/committee/nodes.go 80.39% <0.00%> (-1.97%) ⬇️
... and 30 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 8162e5f...54fadb0. Read the comment docs.

@Yawning Yawning merged commit a4be9b5 into master Jul 30, 2020
@Yawning Yawning deleted the yawning/fix/isatty branch July 30, 2020 08:31
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