Skip to content

ENT-13041: install-dependencies: documented and refactored script #1826

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

Merged
merged 6 commits into from
Aug 4, 2025

Conversation

larsewi
Copy link
Contributor

@larsewi larsewi commented Jul 28, 2025

  • install-dependencies: enable parallel jobs in make
  • install-dependencies: fixed shellcheck issues
  • install-dependencies: removed option to enable xtrace
  • install-dependencies: reformatted for the sake of consistency
  • install-dependencies: decreased verbosity of script

Build with no tests:
Build Status

@cf-bottom
Copy link

Thank you for submitting a PR! Maybe @craigcomstock can review this?

larsewi added 4 commits July 31, 2025 14:17
There's a function in the detect-environment script to detect the number
of available cores on the build host. However, this is overwritted in
the install-dependencies script with a comment stating that some builds
don't support multiple jobs. Let's see if this statement still holds.

Ticket: ENT-13041
Signed-off-by: Lars Erik Wik <[email protected]>
Also did a little refactoring. If statements are more readable then `[
<COND> ] && <STMT>` in my opinion.

Ticket: ENT-12600
Signed-off-by: Lars Erik Wik <[email protected]>
It very verbose. Better to enable it on specific scripts when debugging
and instead add more debug log messages.

Ticket: ENT-12600
Signed-off-by: Lars Erik Wik <[email protected]>
@larsewi larsewi force-pushed the install-dependencies branch from 29a8de1 to f28930a Compare July 31, 2025 12:18
and added debug log messages

Ticket: ENT-12600
Signed-off-by: Lars Erik Wik <[email protected]>
@larsewi larsewi force-pushed the install-dependencies branch from f28930a to 1cd5c5a Compare July 31, 2025 15:43
@larsewi larsewi marked this pull request as ready for review August 1, 2025 09:35
Ticket: ENT-12600
Signed-off-by: Lars Erik Wik <[email protected]>
@larsewi larsewi force-pushed the install-dependencies branch from 1cd5c5a to c884121 Compare August 4, 2025 11:05
@larsewi larsewi merged commit fdea4c4 into cfengine:master Aug 4, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants