-
Notifications
You must be signed in to change notification settings - Fork 585
Cleaning build log #17529
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
base: compatible
Are you sure you want to change the base?
Cleaning build log #17529
Conversation
7010e29
to
b3d21b1
Compare
aa1220d
to
1c15a4e
Compare
!ci-build-me |
!ci-bypass-changelog |
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.
Thanks!
1c15a4e
to
1297bea
Compare
!ci-build-me |
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.
Pull Request Overview
This PR suppresses extraneous build and tool output by redirecting stdout and using ignore-stdout
in Dune actions and Makefiles.
- Added
ignore-stdout
wrappers in Dune files to silence routine build steps. - Redirected Makefile commands to
/dev/null
to hide Go and Cap’n Proto output. - Adjusted test and JS build flags, and silenced Cargo builds in OCaml stubs.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/libp2p_ipc/dune | Wrapped make action in ignore-stdout |
src/libp2p_ipc/Makefile | Redirected Go and Cap’n Proto commands to null |
src/lib/mina_block/tests/dune | Silenced curl and gzip in test download step |
src/lib/integers_stubs_js/test/dune | Removed +nat.js and --source-map flags |
src/lib/crypto/kimchi_bindings/stubs/dune | Wrapped Cargo builds/runs in ignore-stdout |
src/app/cli/src/init/dune | Ignored stdout for ocaml-crunch action |
Comments suppressed due to low confidence (2)
src/lib/mina_block/tests/dune:18
- There appears to be one extra closing parenthesis here, which could lead to a syntax error in the Dune file. Please verify the parentheses are balanced.
(run gzip -d %{target}.gz)))))
src/lib/integers_stubs_js/test/dune:5
- [nitpick] The removal of
+nat.js
and--source-map
flags changes the JS test build behavior. Please confirm this is intentional and update any related test expectations or documentation.
(flags --pretty))
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.
Not sure on build logs for rust & go, rather see more output logs.
Or is there a way to make it hidden by default, but show all logs when requested?
See commit message fdc1fa7. It will show the list of commands being run, and in case of an error, the user can see which command fails, and run it. |
What about message redirected to |
It is uncommon to redirect to a log file in Makefile. When building, you are only interested in errors. |
1297bea
to
64427ac
Compare
!ci-build-me |
So are you implying errors will still show up? |
Yes, we are not redirecting the stderr (no |
This ignores the stdout of ocaml-crunch. This removes the following logs given on the stdout while building: ``` Generating assets.ml Skipping generation of .mli ```
This drastically reduces the logging information we get when building Mina. The user can always use `dune build --verbose` for a verbose build.
+nat.js is only useful when using the Num library. It is useless (for this test), and source-map parameter is also useless for running the test. This removes some warning like: ``` warning: overriding primitive "set_to_zero_nat" old: +nat.js:50 new: +nat.js:50 ``` Source: https://ocsigen.org/js_of_ocaml/4.0.0/manual/overview
64427ac
to
55c1321
Compare
!ci-build-me |
When building Mina, the log is full of unecessary logs. We could ignore most of it by redirecting to
/dev/null
.The reviewer can check commit by commit.