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

Launchpad: simulation: close open files, fix error checks #8226

Merged
merged 1 commit into from Feb 5, 2021

Conversation

alessio
Copy link
Contributor

@alessio alessio commented Dec 22, 2020

From: #8217
Closes: #6784
Thanks: @PrathyushaLakkireddy for the original patch.

Co-authored-by: Alessio Treglia alessio@tendermint.com
Co-authored-by: Anil Kumar Kammari anil@vitwit.com


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

From: #8217
Closes: #6784
Thanks: @PrathyushaLakkireddy for the original patch.

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>
@alessio alessio added this to the 0.39.3 - The Launchpad Series milestone Dec 22, 2020
@alessio alessio changed the title simulation: close opened files and check for error while creating files Launchpad: simulation: close opened files Dec 22, 2020
@alessio alessio changed the title Launchpad: simulation: close opened files Launchpad: simulation: close open files, fix error checks Dec 22, 2020

folderPath := os.ExpandEnv("$HOME/.simapp/simulations")
fileName := fmt.Sprintf("%s.log", time.Now().Format("2006-01-02_15:04:05"))
folderPath := path.Join(os.ExpandEnv("$HOME"), ".simapp", "simulations")
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this always simapp?

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is used only for simulations, so it lgtm

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah but more apps rely on this "module", including gaia, so it would check for the .simapp directory

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's just use simulation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This needs to be fixed in master first.

Copy link
Collaborator

@anilcse anilcse left a comment

Choose a reason for hiding this comment

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

lgtm

@alessio
Copy link
Contributor Author

alessio commented Dec 27, 2020

This requires approval from @fedekunze and @clevinson

@tac0turtle
Copy link
Member

tac0turtle commented Feb 5, 2021

Pinging @fedekunze & @clevinson for approvals

@alessio alessio merged commit a99d3a7 into launchpad/backports Feb 5, 2021
@alessio alessio deleted the launhchpad-pr-8217 branch February 5, 2021 14:14
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.

None yet

7 participants