Skip to content

Refactor setup scripts - #145

Draft
Larry Joy (ljoy913) wants to merge 14 commits into
mainfrom
refactor-setup-scripts
Draft

Refactor setup scripts#145
Larry Joy (ljoy913) wants to merge 14 commits into
mainfrom
refactor-setup-scripts

Conversation

@ljoy913

Copy link
Copy Markdown
Contributor

Refactor setup scripts to increase overall setup time:

  • Created top-level workspace for Rust projects. All Rust sub-projects can be built at once with shared resources.
  • Increase error handling to better show failures lost in console output
  • Run scripts in parallel to take advantage of multi-core machines
  • Add CRESCENT_ENV var to set consistent debug/release flags when building everything
  • Replaced deprecated python_jwt pip package
  • Replaced pyMDOC-CBOR pip package with cbor2 (we were only actually using the cbor2 dependency out of the pyMDOC-CBOR package)
  • Add project level .gitignore files instead of a top-level only file
  • Refactor ./circuit_setup/scripts/run_setup.sh
    • do incremental setup based on changes to key files instead of rerunning most of the setup every time.
    • break setup steps into discrete functions instead of a monolithic script
  • You can now call setup scripts from most any location without having to cd to a specific directory first

./build_all.sh went from 16.4 minutes to 8 minutes on my fastest machine and from 46 minutes to 25.5 on my laptop.

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.

1 participant