Gaëtan Lehmann
3baeea514f
use git ls-remote to search the old branches to remove
...
git branch can't be used with these flags on the old version of git that comes
with centos 7
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-29 09:23:09 +02:00
Gaëtan Lehmann
aef25be2a7
Fix the commit message
...
* first letter in uppercase
* Signed-off-by trailer
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-17 09:06:48 +02:00
Gaëtan Lehmann
90009aacfb
Set the maintainer team first in the CODEOWNERS file
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-17 09:06:48 +02:00
Gaëtan Lehmann
1705dfb6fc
Fix missing @ in the team name
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-17 09:06:48 +02:00
Gaëtan Lehmann
c3115661f3
add --pre-build option
...
to make a build with a tag smaller than the one currently in the spec file
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-16 08:47:19 +02:00
Gaëtan Lehmann
1dd902c502
style fixes
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-16 08:47:19 +02:00
Gaëtan Lehmann
892ccd65fb
add codeowner support in create_rpm_git_repo.py
...
--maintainer is used to set the maintainer team for that repository
It is made mandatory, so we won't forget to assign maintainer team
to the new repository.
Some aliases are available, matching the names used for @mention in
mattermost or a shorter version — Hypervisor & Kernel -> hk
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-14 11:30:47 +02:00
Gaëtan Lehmann
7e8f1262b9
also get github token from env
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-14 11:30:47 +02:00
Gaëtan Lehmann
d5b7049ed0
explicitly create the master branch
...
that's the expected branch in the xcp-ng-rpms organization
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-14 11:30:47 +02:00
Gaëtan Lehmann
c9888e7e75
style fixes
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-14 11:30:47 +02:00
Gaëtan Lehmann
124850e46f
add linstor packages
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-14 11:30:47 +02:00
Gaëtan Lehmann
aefee66536
add script to set github repositories' code owners
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-14 11:30:47 +02:00
Gaëtan Lehmann
1ec12f8499
import rpm owner data
...
clean.py was used to convert the csv to json and check a few things on
the data. It is not meant to be reused as is.
It's nice to have it in git for reference.
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-14 11:25:59 +02:00
Gaëtan Lehmann
0ffaecd661
only check test_build format when the --test-build option in used
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-10 11:04:18 +02:00
Samuel Verschelde
783bec15e9
Merge pull request #687 from xcp-ng/stormi/create-user-target
...
scripts/koji: add create_user_target.py
2025-04-09 14:40:57 +02:00
Gaëtan Lehmann
a6392b34fd
nicer error message when the specfile module can't be imported
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-07 16:15:40 +02:00
Gaëtan Lehmann
20989aa214
search for the next test build number only in the targeted xcpng version
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-07 16:15:40 +02:00
Gaëtan Lehmann
0cb38d3710
restrict possible test build identifier
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-07 16:15:40 +02:00
Gaëtan Lehmann
a72ad67844
use a detached branch instead of creating a temporary branch
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-07 16:15:40 +02:00
Gaëtan Lehmann
b5436fc1ec
clean old branches even when not using --test-build
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-07 16:15:40 +02:00
Gaëtan Lehmann
c0c83c7986
avoid collision with already existing package names
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-07 16:15:40 +02:00
Gaëtan Lehmann
938de74300
use the date in the date in the branch name and clean the old branches
...
koji needs a branch that point to our commit to be able to fetch it, so we keep
the branches for 3 hours and remove the old branches when a new test run is run
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-07 16:15:40 +02:00
Gaëtan Lehmann
d64555bc0a
make --test-build work with chained builds
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-07 16:15:40 +02:00
Gaëtan Lehmann
0c52903723
add --test-build option
...
for non chain build for now
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-07 16:15:40 +02:00
Gaëtan Lehmann
43a4adfaae
use print instead of calling echo
...
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-07 16:15:40 +02:00
Gaëtan Lehmann
1be07f407d
use a context manager to switch dir
...
we'll need it later to safely recover from failures and to work with
multiple git command calls
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech >
2025-04-07 16:15:40 +02:00
Samuel Verschelde
6022529d8e
scripts/koji: add create_user_target.py
...
Simple utility script to create a new tag for a user, as well as the
associated build target.
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr >
2025-04-03 18:52:09 +02:00
Yann Dirson
a46fb66d14
iso-remaster: update requirements docs and checks for el8+
...
Signed-off-by: Yann Dirson <yann.dirson@vates.tech >
2025-03-31 12:25:25 +02:00
Yann Dirson
40f3bd0503
Merge pull request #683 from xcp-ng/fix-import_srpm
...
Fix several issues in import_srpm
2025-03-26 09:58:57 +01:00
Yann Dirson
15ab08a8e3
import_srpm: don't attempt to fetch if we're not push/pulling
...
When we used `create_rpm_git_repo.py --local`, there may be no remote
to pull from yet.
Should indeed have been part of c2d89af47b .
Signed-off-by: Yann Dirson <yann.dirson@vates.tech >
2025-03-18 11:26:37 +01:00
Yann Dirson
9dea2f587b
iso-remaster: update sample patcher for 8.3 host-installer
...
This Makefile was written specially for that need, let's use it :)
Signed-off-by: Yann Dirson <yann.dirson@vates.tech >
2025-03-18 11:19:13 +01:00
Yann Dirson
04f862c875
import_srpm: remove broken no-commit behaviour, make -c the default
...
I was regularly losing time debugging this script exploding when just
forgetting to use `-c`. Switching back to `master` after making changes
and NOT committing them has just NO WAY to ever work.
Signed-off-by: Yann Dirson <yann.dirson@vates.tech >
2025-03-07 16:31:14 +01:00
Yann Dirson
90a3b07043
import_srpm: use logging and trace git calls
...
Signed-off-by: Yann Dirson <yann.dirson@vates.tech >
2025-03-07 16:25:58 +01:00
Yann Dirson
c2d89af47b
import_srpm: do not pull if we do not push
...
Makes the script fully-local by default, providing a way to import on
local branches before we know if we want to published them.
Signed-off-by: Yann Dirson <yann.dirson@vates.tech >
2025-02-14 10:26:31 +01:00
Yann Dirson
2105c105dd
iso-remaster README: show EPEL is needed
...
Signed-off-by: Yann Dirson <yann.dirson@vates.tech >
2025-02-07 11:54:58 +01:00
Yann Dirson
cf694027dc
iso-remaster: autodetect and support ISO without UEFI support
...
Also for XS before 7.0.
Signed-off-by: Yann Dirson <yann.dirson@vates.tech >
2025-02-07 11:54:58 +01:00
Yann Dirson
0a2c82493f
iso-remaster: support for other image compression than bzip2
...
XS before 7.x used gzip.
Signed-off-by: Yann Dirson <yann.dirson@vates.tech >
2025-02-07 11:54:58 +01:00
Yann Dirson
1b464e1eb5
iso-remaster: standardize option parsing a bit
...
Signed-off-by: Yann Dirson <yann.dirson@vates.tech >
2025-02-07 11:54:58 +01:00
Yann Dirson
c056c92e1c
import_srpm: add traces for main stages
...
That's enough to identify the context of a bug when --commit is not
used.
Signed-off-by: Yann Dirson <yann.dirson@vates.tech >
2025-02-06 14:46:01 +01:00
Yann Dirson
eaac32f66c
create_rpm_git_repo: add --local flag
...
In some conditions we may not want to create the GH project:
- when experimenting while not yet sure we will adopt the package
- when an initial run of the script did create the project but not the
local repo
Signed-off-by: Yann Dirson <yann.dirson@vates.tech >
2025-01-24 11:32:41 +01:00
Yann Dirson
12b2907079
create_rpm_git_repo: modernize setup of push URL
...
* git-remote is nore suitable than git-config
* a user who already has this config does not want an explicit push URL:
[url "git@github.com:"]
pushInsteadOf = "https://github.com/ "
Signed-off-by: Yann Dirson <yann.dirson@vates.tech >
2025-01-24 11:30:36 +01:00
Samuel Verschelde
deb7268763
sync_repo_from_koji.py: add metadata_expire=0 for user repos
...
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr >
2025-01-22 14:57:19 +01:00
Samuel Verschelde
7477f2c621
sync_repo_from_koji.py: generate a repofile for user tags
...
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr >
2025-01-20 19:36:23 +01:00
Samuel Verschelde
f03239ee15
sync_repo_from_koji.py: generate offline repos for some tags
...
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr >
2024-11-19 17:43:27 +01:00
Samuel Verschelde
a9f723e7d8
New script to setup a local repo for offline updates
...
With this script, one can setup local repositories from archives which
contain the files of a repository, and use them to install updates or
additional packages.
The same script is meant to be used to update the repository. In order
not to use too much space on the disk, we accept that the operation
makes the repository unusable for the duration of the local copy.
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr >
2024-11-14 19:47:23 +01:00
Samuel Verschelde
dad685cf3b
sync_repo_from_koji.py: generate offline update tarballs
...
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr >
2024-10-14 17:17:06 +02:00
Samuel Verschelde
8a1095d8db
sync_repo_from_koji.py: promote 8.3 to stable
...
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr >
2024-10-07 15:27:44 +02:00
Samuel Verschelde
8e33ec01ec
Add --noprogress to koji download
...
This is better for logged output
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr >
2024-09-03 18:45:22 +02:00
Samuel Verschelde
2fae25a9bc
sync_repo_from_koji.py: export repos for offline updates
...
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr >
2024-09-03 11:19:56 +02:00
Samuel Verschelde
eb7ab6eb61
scripts/koji/koji_build.py: convert to python3
...
Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr >
2024-08-09 15:56:19 +02:00