-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: improve dependency installation in rust builder #232
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bkioshn
added
enhancement
New feature or request
comment me
Request for comments
labels
Apr 15, 2024
apskhem
reviewed
Apr 17, 2024
* fix(cat-ci): Vendor file check crashes when files are not found, make it robust against this. * fix(cat-ci): Improve and add tests for using upstream rust build library * fix(rust): Need real find for earthly rust lib, plus handle saving test/coverage build artifacts on failure. * Don't commit test/coverage artifacts into the repo. * Remove test code and obsoleted TRY/FINALLY * fix(cspell): spelling corrections * fix(rust): Don't need to build the example verbosely * fix(rust): fix dbviz builder to use the new cached rust builder * fix(rust): Remove unused imports from Earthfiles * fix(rust): Only use imports to define import paths, not directly * fix(rust): Add shim so consumers of cat-ci are always aligned with our upstream dependency. * fix(rust): save doc and release artifacts from rust builds * fix(rust): Do not need top escape the backslash * fix(rust): Fix output target regex * fix(rust): Document that rust upstream library should not be used directly, and make tools conformant. * fix(cspell): spelling correction * fix(cat-ci): Remove direct Earthfile references and use IMPORT consistently * fix(rust): --output must refer to files not directories * fix(cat-ci): misspelled directory * fix(rust): linting was not done in release, so it had to rebuild everything in debug mode * fix(rust): Properly copy artifacts from builds and ensure we don't accidentally make debug target builds * fix(cat-ci): Fix wasm-c reference * fix(rust): Make it easier to save docs artifacts * fix(cat-ci): Earthly is case sensitive * feat(rust): Update the verify-component-adapter tool to v20.0.0
bkioshn
added
documentation
Improvements or additions to documentation
ci/cd
CI/CD Fixes or Improvements.
review me
PR is ready for review
and removed
comment me
Request for comments
labels
May 5, 2024
* fix(cat-ci): Vendor file check crashes when files are not found, make it robust against this. * fix(cat-ci): Improve and add tests for using upstream rust build library * fix(rust): Need real find for earthly rust lib, plus handle saving test/coverage build artifacts on failure. * Don't commit test/coverage artifacts into the repo. * Remove test code and obsoleted TRY/FINALLY * fix(cspell): spelling corrections * fix(rust): Don't need to build the example verbosely * fix(rust): fix dbviz builder to use the new cached rust builder * fix(rust): Remove unused imports from Earthfiles * fix(rust): Only use imports to define import paths, not directly * fix(rust): Add shim so consumers of cat-ci are always aligned with our upstream dependency. * fix(rust): save doc and release artifacts from rust builds * fix(rust): Do not need top escape the backslash * fix(rust): Fix output target regex * fix(rust): Document that rust upstream library should not be used directly, and make tools conformant. * fix(cspell): spelling correction * fix(cat-ci): Remove direct Earthfile references and use IMPORT consistently * fix(rust): --output must refer to files not directories * fix(cat-ci): misspelled directory * fix(rust): linting was not done in release, so it had to rebuild everything in debug mode * fix(rust): Properly copy artifacts from builds and ensure we don't accidentally make debug target builds * fix(cat-ci): Fix wasm-c reference * fix(rust): Make it easier to save docs artifacts * fix(cat-ci): Earthly is case sensitive * feat(rust): Update the verify-component-adapter tool to v20.0.0 * fix(rust): Rust tools build in parallel, no need to use +CARGO to build tools. Slows build process. * feat(rust): Add CPU parallel runner for the exec manager * feat(rust): Use the CPU parallel runner to speed up rust builds on multicore machines * fix(rust): spelling correction
stevenj
requested review from
saibatizoku,
coire1,
FelipeRosa,
minikin,
Mr-Leshiy and
cong-or
May 6, 2024 02:51
minikin
requested changes
May 6, 2024
minikin
previously requested changes
May 6, 2024
* fix(cat-ci): Vendor file check crashes when files are not found, make it robust against this. * fix(cat-ci): Improve and add tests for using upstream rust build library * fix(rust): Need real find for earthly rust lib, plus handle saving test/coverage build artifacts on failure. * Don't commit test/coverage artifacts into the repo. * Remove test code and obsoleted TRY/FINALLY * fix(cspell): spelling corrections * fix(rust): Don't need to build the example verbosely * fix(rust): fix dbviz builder to use the new cached rust builder * fix(rust): Remove unused imports from Earthfiles * fix(rust): Only use imports to define import paths, not directly * fix(rust): Add shim so consumers of cat-ci are always aligned with our upstream dependency. * fix(rust): save doc and release artifacts from rust builds * fix(rust): Do not need top escape the backslash * fix(rust): Fix output target regex * fix(rust): Document that rust upstream library should not be used directly, and make tools conformant. * fix(cspell): spelling correction * fix(cat-ci): Remove direct Earthfile references and use IMPORT consistently * fix(rust): --output must refer to files not directories * fix(cat-ci): misspelled directory * fix(rust): linting was not done in release, so it had to rebuild everything in debug mode * fix(rust): Properly copy artifacts from builds and ensure we don't accidentally make debug target builds * fix(cat-ci): Fix wasm-c reference * fix(rust): Make it easier to save docs artifacts * fix(cat-ci): Earthly is case sensitive * feat(rust): Update the verify-component-adapter tool to v20.0.0 * fix(rust): Rust tools build in parallel, no need to use +CARGO to build tools. Slows build process. * feat(rust): Add CPU parallel runner for the exec manager * feat(rust): Use the CPU parallel runner to speed up rust builds on multicore machines * fix(rust): spelling correction * feat(rust): Add WASM toolchains to the base rust builder image. * fix(rust): Make copy less repetitive and add cargo-component to replace the component adapter * fix(rust): Update to 1.78, remove unused verify-adapter tool, start using the wasm32-wasip1 target * fix(rust): try and stop cargo from trying to install * fix(rust): Dont change the RUST paths from what the base container sets them to * fix(rust): Try and find why our toolchain keeps getting re-installed * fix(rust): Don't copy the toolchain as its forcing rustup to redownload the toolchain * fix(rust): Remove test statements and fully remove rust-toolchain from CI. * docs(rust): Fix up target docs * fix(rust): Don't check rust toolchain is vendored. * fix(rust): make libs and bins in std_build just need comma, not comma and space * fix(c): Fix tool import from the rust tools * fix(rust): debug code for argument parsing * fix(rust): more parameter tests for rust builder * fix(rust): try and fix rust builder escaping because of parameter munging * fix(rust): more python arg testing * fix(rust): more python parameter debugging * fix(rust): more param debug * fix(rust): more argument debug * fix(rust): strip quotes after correction * fix(rust): actually save the dequoted string. * fix(rust): remove argument correction debug code * fix(python): Add reusable utility function to fix quoted earthly arguments * fix(rust): Allow multiple arguments to +EXECUTE * fix(rust): missing line continuation * fix(rust): allow redirection by defering the return fail check * fix(rust): clean up +EXECUTE * fix(rust): Remove weird lines that appeared in the file * docs(rust): fix spelling * docs(rust): Fill in blank doc comments * fix(rust): update deny.toml to latest format * fix(rust): Only warn on crates with multiple versions because we can;t control what our dependencies depend on. * fix(rust): Ignore unmaintained crate we have no control over. * fix(rust): Sync the deny.toml from stdcfgs * fix(cspell): Fix spelling errors in cargo deny.toml * fix(docs): Save doc on example build as an Artifact and also add target docs * ci(rust): Add exception to deny.toml for a CVE which is not impacting us.
Mr-Leshiy
reviewed
May 12, 2024
Mr-Leshiy
approved these changes
May 13, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
ci/cd
CI/CD Fixes or Improvements.
documentation
Improvements or additions to documentation
enhancement
New feature or request
review me
PR is ready for review
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Improve
rust
related performanceRelated Issue(s)
Closes #228
Description of Changes
lib/rust
https://github.com/earthly/lib/tree/main/rustEXECUTE
,CARGO
, andCOPY_OUTPUT
are modified and added to suit our usecaseIMPORT
instead of path when refering other EarthfileResult of this changes:
Related PR
Please confirm the following checks