Skip to content

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

Merged
larsewi merged 6 commits into
cfengine:masterfrom
larsewi:install-dependencies
Aug 4, 2025
Merged

ENT-13041: install-dependencies: documented and refactored script#1826
larsewi merged 6 commits into
cfengine:masterfrom
larsewi:install-dependencies

Conversation

@larsewi
Copy link
Copy Markdown
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
Copy Markdown

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 <lars.erik.wik@northern.tech>
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 <lars.erik.wik@northern.tech>
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 <lars.erik.wik@northern.tech>
Ticket: ENT-12600
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@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 <lars.erik.wik@northern.tech>
@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
Comment thread build-scripts/install-dependencies Outdated
Ticket: ENT-12600
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@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
@larsewi larsewi deleted the install-dependencies branch October 2, 2025 14:39
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