Commit Graph

1971 Commits

Author SHA1 Message Date
Christian Goll
f9210ee645 Merge pull request #951 from anderbubble/build-refactor
Refactor the release workflow
2023-10-16 10:17:48 +02:00
Jonathon Anderson
7e9b3b48de Fix spelling of "changelog"
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-16 10:17:23 +02:00
Jonathon Anderson
cc55dbd7fb Move non-offline build deps to Makefile end
Dependencies defined for $(protofiles) were before $(protifiles) was
defined.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-16 10:17:23 +02:00
Jonathon Anderson
8c4f68849d Un-mark vendor target as phony
Contrary to #945, marking vendor as phony causes binaries to be re-built
on a repeated call to `make`.  Though we can't determine when vendor
needs to be rebuilt, this is preferable to not knowing when Warewulf
binaries need to be rebuilt.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-16 10:17:23 +02:00
Jonathon Anderson
edda46feb4 Update CHANGELOG for new builds
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-16 10:17:23 +02:00
Jonathon Anderson
44090a5984 Reflow release.yml
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-16 10:17:22 +02:00
Jonathon Anderson
a69a205820 Refactor and update release workflow
- Use a matrix for multiple builds
- Merge mockbuild.sh into release.yml
- Upload dist only once (not once per build)
- Make release package uploads more explicit (makes errors more visible)
- Configure mock to log to the runner log
- Use variables to define artifact names only once
- Target the release explicitly by id
- Run the test suite in each mock environment (fixes #369)
- Update OpenSUSE Leap build to 15.5 (15.3 is EOL and not building
  correctly)
- Add a Rocky Linux 9 build
- Switch to Rocky Linux 9 build container (mostly to get mock
  configuration for newer OpenSUSE Leap)
- Allow successful releases to complete if some releases fail
  (`fail-fast: false`)

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-16 10:17:22 +02:00
Jonathon Anderson
db9a81da73 Fix use of OFFLINE_BUILD in warewulf.spec
warewulf.spec appears to expect that an offline build would be requested
with `--with offline`; but conditional builds are not supported by mock.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-16 10:17:22 +02:00
Jonathon Anderson
0d3eeb09e5 Workaround for CentOS 7 gzip
The CentOS 7 gzip doesn't have `--keep`.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-16 10:17:22 +02:00
Jonathon Anderson
77f1bd6797 Split tidy into separate target
This allows `make vendor` to download packages to satisfy `go.mod`
without changing `go.mod`.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-16 10:17:22 +02:00
Jonathon Anderson
78c8ad2b7c Restrict godeps to the vendor directory
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-16 10:17:22 +02:00
Christian Goll
45bce6c59d Merge pull request #958 from anderbubble/changelog-skip-labels
Skip changelog enforcement for certain labels
2023-10-16 08:02:55 +02:00
Christian Goll
4b882760b9 Merge pull request #957 from anderbubble/pr-fixes
Updated the PR template
2023-10-16 08:02:29 +02:00
Jonathon Anderson
cb6caf27e5 Merge pull request #949 from mslacken/ProfileTagFix
check if entry has real value in recursive getter
2023-10-14 03:04:47 -06:00
Christian Goll
539002088c check if entry has real value in recursive getter
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-14 02:52:53 -06:00
Jonathon Anderson
fecdce6684 Merge pull request #950 from mslacken/ContainerList
no error if images for containers don't exist
2023-10-14 02:36:17 -06:00
Christian Goll
951dd13866 no error if images for containers don't exist
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-14 02:26:03 -06:00
Jonathon Anderson
807b38f1c9 Merge pull request #948 from mslacken/SetMtu
mtu can be set via command line
2023-10-14 02:12:15 -06:00
Christian Goll
a7056e2bb8 mtu can be set via command line
added also a test for this

Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-14 02:09:06 -06:00
Jonathon Anderson
4cf230cadd Merge pull request #946 from mslacken/MTUScript
set MTU in different network confs
2023-10-14 01:42:54 -06:00
Christian Goll
f4ae168f5a set MTU in different network confs
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-14 01:00:24 -06:00
Jonathon Anderson
e3fbf9d936 Merge pull request #943 from mslacken/ipmiWrite
only write ipmi of IpmiWrite is true
2023-10-14 00:50:19 -06:00
Christian Goll
e2603cf8e8 only write ipmi of IpmiWrite is true
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-14 00:46:50 -06:00
Jonathon Anderson
c28c807946 Skip changelog enforcement for certain labels
Skipping changelog enforcement for PRs with one of these labels:

refactor, testing, build, project.

Such labels likely indicate a non-user-visible change which need not be
reflected in the changelog. (Of course, a changelog entry may still be
made if appropriate, even if not required by the enforcer.)

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-13 23:46:10 -06:00
Jonathon Anderson
2f9ec8103e Merge pull request #955 from mslacken/TestFramework
added general testing framework
2023-10-13 23:40:17 -06:00
Jonathon Anderson
036e085af0 Updated the PR template
- fixed a malformed link
- added a checkbox for the DCO
- fixed heading levels
- made checks actual checkboxes

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-13 23:26:12 -06:00
Jonathon Anderson
6c344cd5b0 Refactor ww4test to testenv
- Remove global state
- Remove redundant data
- Remove unused functionality (e.g., file permissions)
- Separate directory creation from file writing
- Additional helper functions for file reading and cleanup

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-13 14:35:28 +02:00
Christian Goll
b5979e41d2 added general testing framework
framework creates all the necessary configuration file for warewulf
under a temporary directory. Individual warewulf.conf and nodes.conf
can be provided.

Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-11 12:07:28 +02:00
Jonathon Anderson
3115703ed5 Merge pull request #778 from hpcng/fixPrimaryNetdev
return the primary network interface for discoverd
2023-10-10 22:44:50 -06:00
Jonathon Anderson
f9cdda1ee9 Add tests for FindDiscoverableNode
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-10 22:40:23 -06:00
Christian Goll
84d2389aaf return the primary network interface for discoverd
close #775

Signed-off-by: Christian Goll <cgoll@suse.com>
2023-10-10 22:40:02 -06:00
Jonathon Anderson
03d94322cd Merge pull request #945 from anderbubble/update-vendor-phony
Mark vendor target phony and update
2023-10-06 00:48:12 -06:00
Jonathon Anderson
d08aeb2adc Mark vendor target phony and update
The vendor target can't reliably determine when it needs to run, so mark
it phony. At the same time, update go.mod.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-06 00:41:48 -06:00
Jonathon Anderson
ced1239e21 Merge pull request #925 from mslacken/NoProtoDownload
do not download protobuf stuff on offline builds
2023-10-06 00:36:57 -06:00
Jonathon Anderson
ff22633261 Consolidate OFFLINE_BUILD behavior
Rather than implementing OFFLINE_BUILD individually within each relevant
target, define all such target dependencies once.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-10-06 00:24:27 -06:00
Jonathon Anderson
799542b154 Merge pull request #843 from anderbubble/resf-license
Update LICENSE.md for formatting and contributors
2023-09-29 17:11:28 -06:00
Jonathon Anderson
cf5bc7544e Update LICENSE.md for formatting and RESF
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-09-28 13:47:48 -06:00
Jonathon Anderson
a1003361bc Merge pull request #886 from anderbubble/contributing-dco-signoff
Add CONTRIBUTING documentation with a DCO
2023-09-26 16:59:06 -06:00
Christian Goll
c16755d2c0 Merge pull request #928 from anderbubble/issue-templates
Update GitHub issue templates
2023-09-21 07:58:17 +02:00
Christian Goll
b9bd3ff521 Merge pull request #927 from anderbubble/overlay-name-changelog
Update CHANGELOG for changes to overlay names
2023-09-21 07:56:57 +02:00
Christian Goll
a152beec49 do not download protobuf stuff on offline builds
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-09-20 17:28:14 +02:00
Jonathon Anderson
faaa408127 Add CONTRIBUTING documentation with a DCO
Requires commit sign-off and documents the meaning of signing off for the
project.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-09-19 17:15:35 -06:00
Christian Goll
d5c1e7b520 Merge pull request #766 from JasonYangShadow/issue/689
add support to install efi and bios from system path
2023-09-19 14:45:11 +02:00
Christian Goll
b30f124acc Merge pull request #813 from mslacken/AdvCmdline
advanced command line completion for wwctl overlay
2023-09-13 12:09:29 +02:00
Christian Goll
ff7608251a advanced command line completion for wwctl overlay
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-09-13 12:03:43 +02:00
Christian Goll
4d1711f46f Merge pull request #898 from mslacken/PrimaryNetdev
Disable per-netdev primary flag
2023-09-13 11:51:49 +02:00
Christian Goll
c3a4eba514 Disable per-netdev primary flag
Primary network devices are now identified by a per-node attribute,
rather than a per-netdev boolean. While the legacy data can still be
parsed, the argument for setting the per-netdev boolean at the
command-line is no longer available.
Correct behavior is tested.

Signed-off-by: Christian Goll <cgoll@suse.com>
2023-09-13 11:31:04 +02:00
Christian Goll
3acac6077a Merge pull request #897 from mslacken/EphermalMount
Epehermal container mounts on same fs as chroot
2023-09-13 11:24:06 +02:00
Christian Goll
a3e40d62fd Merge pull request #902 from anderbubble/overlay-edit
Update overlay edit with tempfile and mtime
2023-09-11 11:56:55 +02:00
Christian Goll
2685cbf030 Merge pull request #900 from anderbubble/fix-build
Updated Makefile to account for vendor/ in dist
2023-09-11 11:54:41 +02:00