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

R4R: Fix governance simulation, more import/export work #2748

Merged
merged 12 commits into from
Nov 14, 2018

Conversation

cwgoes
Copy link
Contributor

@cwgoes cwgoes commented Nov 9, 2018

Closes #2733
Addresses remaining comments from #2690

Standard checklist:

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote tests
  • Updated relevant documentation (docs/)
  • Added entries in PENDING.md with issue #
  • rereviewed Files changed in the github PR explorer

For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@codecov
Copy link

codecov bot commented Nov 9, 2018

Codecov Report

Merging #2748 into develop will decrease coverage by 0.03%.
The diff coverage is 40.74%.

@@             Coverage Diff             @@
##           develop    #2748      +/-   ##
===========================================
- Coverage    56.67%   56.64%   -0.04%     
===========================================
  Files          156      156              
  Lines         9783     9800      +17     
===========================================
+ Hits          5545     5551       +6     
- Misses        3861     3872      +11     
  Partials       377      377

@jaekwon
Copy link
Contributor

jaekwon commented Nov 12, 2018

Just FYI the simulation script is failing for most seeds.

@cwgoes cwgoes changed the title WIP: Fix governance simulation, more import/export work R4R: Fix governance simulation, more import/export work Nov 13, 2018
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

testedACK

  • changes look clean and concise
  • bonus points for moving import/export multi-sim to a script

@go test ./cmd/gaia/app -run TestGaiaImportExport -SimulationEnabled=true -SimulationNumBlocks=50 -SimulationBlockSize=200 -SimulationCommit=true -SimulationSeed=13 -v -timeout 24h
@go test ./cmd/gaia/app -run TestGaiaImportExport -SimulationEnabled=true -SimulationNumBlocks=50 -SimulationBlockSize=200 -SimulationCommit=true -SimulationSeed=414 -v -timeout 24h
@go test ./cmd/gaia/app -run TestGaiaImportExport -SimulationEnabled=true -SimulationNumBlocks=50 -SimulationBlockSize=200 -SimulationCommit=true -SimulationSeed=4142 -v -timeout 24h
@bash scripts/import-export-sim.sh 50
Copy link
Member

Choose a reason for hiding this comment

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

THANK YOU!

echo "Running multi-seed import-export simulation with seeds ${seeds[@]}"
echo "Running $blocks blocks per seed"
echo "Edit scripts/import-export-sim.sh to add new seeds. Keeping parameters in the file makes failures easy to reproduce."
echo "This script will kill all sub-simulations on SIGINT/SIGTERM (i.e. Ctrl-C)."
Copy link
Member

Choose a reason for hiding this comment

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

🙌ran into this a few times lately

@jackzampolin
Copy link
Member

LGTM! Looks good to me and was able to gaiad export and run the make test_sim_gaia_import_export locally.

@cwgoes cwgoes merged commit 2bff5c2 into develop Nov 14, 2018
@cwgoes cwgoes deleted the cwgoes/fix-gov-sim-more-import-export branch November 14, 2018 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants