Skip to content

[CI] Introduce a make check-parallel-builds recipe#3030

Merged
jimklimov merged 11 commits intonetworkupstools:masterfrom
jimklimov:issue-2825
Jul 29, 2025
Merged

[CI] Introduce a make check-parallel-builds recipe#3030
jimklimov merged 11 commits intonetworkupstools:masterfrom
jimklimov:issue-2825

Conversation

@jimklimov
Copy link
Copy Markdown
Member

Make sure (parallel) builds started from scratch in NUT subdirs with code are viable recipe-wise, and add a way to keep making sure in the future :)

Not attached to NUT CI farm runs currently, but added to other CI hosting pipelines (GHA/CodeQL, CircleCI).

Piggy-back a few small fixes elsewhere.

…nd it has work to do only once [follows up from PR networkupstools#2825]

In practice we do call it as many times as there are listed
dependency files, but it only generates them on the first run
and quicky bails out later on. This should help avoid writing
into same files in parallel, ending up with garbled or incomplete
files when we want to use them.

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…ersion better [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…and subdriver); add Tescom LEO Plus LCD 1500A which works with same config [networkupstools#981]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…ipe [follows up from PR networkupstools#2825]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…ncies [follows up from PR networkupstools#2825, highlights why issue networkupstools#2584 better be solved]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…k-parallel-builds" [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@jimklimov jimklimov added enhancement documentation CI Entries related to continuous integration infrastructure (here CI = tools + scripts + recipes) portability We want NUT to build and run everywhere possible labels Jul 28, 2025
@jimklimov jimklimov added this to the 2.8.4 milestone Jul 28, 2025
jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 28, 2025
…rom main build; troubleshoot gitlog2version [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 28, 2025
…rom main build; troubleshoot gitlog2version [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…rom main build; troubleshoot gitlog2version [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…UNK" or "git describe", check and report if the current checkout is shallow [networkupstools#3030]

CI builds often do check out the built commit with minimal "depth"
(often having just it), which is much faster, cheaper computationally
and by traffic. This however precludes finding history intersections
of current (single-commit) tree with other trees even if we fetch them.

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@AppVeyorBot
Copy link
Copy Markdown

@AppVeyorBot
Copy link
Copy Markdown

jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 28, 2025
…ersion better [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 28, 2025
…mmit if known, even if we fall back to built-in version otherwise [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…mmit if known, even if we fall back to built-in version otherwise [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
@jimklimov jimklimov merged commit aa137c6 into networkupstools:master Jul 29, 2025
30 checks passed
@jimklimov jimklimov deleted the issue-2825 branch July 29, 2025 07:17
jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 29, 2025
…tmp.$$" filenames to fix parallel builds [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 29, 2025
…tmp.$$" filenames to fix parallel builds [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 29, 2025
…nclient.la (for libupsclient-version.h) so bolt it into deps list [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 29, 2025
…nclient.la (for libupsclient-version.h) so bolt it into deps list [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 30, 2025
…=false (to speed up runs where developer/CI did not change recipes anyway) [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 30, 2025
…PE="default-all-errors*" [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 30, 2025
…investigate failures [networkupstools#3030]

Notably, MAKEFLAGS may include the "make" options without
the leading dash, or other values that did not have one
originally. Better leave it as an environment variable
and let the particular "make" program deal with it.

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 30, 2025
…MAKES_OPT() code to be reusable [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 30, 2025
…builds=no label [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 30, 2025
…ault-all-errors [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jul 30, 2025
…workupstools#3030]

It is now invoked where applicable for scenarios with `BUILD_TYPE=default-all-errors*`
and note it was not buildable as added anyway (earlier ci_build.sh wiped the work area).

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Aug 1, 2025
…false as a make argument also, not just envvar [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Aug 1, 2025
…lddir when starting operations relative to it [networkupstools#3030]

Be pedantic to work around some quirk in NetBSD 9.2 bmake essentially.

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Aug 1, 2025
…*.h [networkupstools#3030]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
jimklimov added a commit to jimklimov/nut that referenced this pull request Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Entries related to continuous integration infrastructure (here CI = tools + scripts + recipes) documentation enhancement portability We want NUT to build and run everywhere possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants