7391 Commits

Author SHA1 Message Date
d297625fba pkglistgen: tool: decouple summary dict creation
The summary dictionary used to create summary-{scope}.txt was
previously returned by solve_project() via write_all_groups().

After c46dd3e304d8e66e5f8f6a51bfa3ebda8cba8936, solve_project()
doesn't return anything anymore, as write_all_groups() is being
invoked just after solve_project().

Thus, the "summary" dictionary would always be None.

Since the summary dict creation is generic enough, move it
to its own function, and call it afterwards after project
solving.

This commit also drops the return statement both on write_all_groups()
and write_productcompose() (where it would always return an empty
dictionary), and moves the write_productcompose() call after
solve_project() as well to match the change with write_all_groups().

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
2024-05-14 11:39:24 +02:00
ed30d28fad
Merge pull request #3079 from gleidi-suse/product-composer-fix
pkglistgen.py: Run product-composer iif there's a *.productcompose.in file and a 000productcompose directory.
2024-05-14 08:52:00 +02:00
c120c9bc36
pkglistgen.py: Run productcomposer iif there's a *.productcompose.in file and a 000productcompose directory.
Previously pkglistgen.py assumed that a project either used
product-builder or the new product-composer, by exiting unrecoverably
when a *.productcompose.in file was found but the relative
000productcompose directory was absent.

This is not the case for SL Micro as the shared SLFO codebase is still
an hybrid OBS/git project and hence its stagings are not git based and
can't use product composer.

This patch was tested for the SUSE:ALP:Source:Standard:1.0:Staging:A and
SUSE:ALP:Products:Marble:6.0 projects (together with
https://github.com/openSUSE/openSUSE-release-tools/pull/3078). Instead
of raising an exception when the 000productcompose directory is not
found it makes a log stating that product-composer will be skipped.
2024-05-13 16:34:07 +02:00
91ddc8ac19
Merge pull request #3077 from dirkmueller/flake8
Use f-strings where possible
2024-05-10 10:56:47 +02:00
Dirk Müller
730630f06f
Use f-strings where possible 2024-05-07 21:52:32 +02:00
9ec6e64546
Merge pull request #3051 from adrianschroeter/productcompose
Initial support for productcompose files
2024-05-07 21:50:58 +02:00
eabce5fad8
Merge pull request #3068 from witekest/15.6
Add Leap 15.6 to access metrics
2024-05-07 18:06:03 +02:00
c42d51bdee
avoid shell usage 2024-05-07 16:55:51 +02:00
c46dd3e304
Make it optional to have a classic product-builder setup
No more product-builder for ALP
2024-05-07 16:22:22 +02:00
f8b06f7edc
write group support status 2024-05-07 16:22:21 +02:00
cf36ceb5b8
Add support for git project handling
Automatically switches over from OBS api calls to git
when specifing a git repository on CLI
2024-05-07 16:22:21 +02:00
9b449f91cb
Initial support for productcompose files
It requires to have a "default.productcompose" file in 000package-groups
to enable support for real
2024-05-07 16:22:12 +02:00
de9a894eb5
Merge pull request #3074 from gyr/bugfix/issue-3073
fix issue #3073
2024-05-07 16:15:08 +02:00
d9659f7e8b
Merge pull request #3076 from dirkmueller/flake8
Use "not in" not "not X in"
2024-05-06 21:42:00 +02:00
Dirk Müller
d897032268
Add codecov upload token 2024-05-06 20:03:32 +02:00
Dirk Müller
8d164e7301
Use "not in" not "not X in" 2024-05-06 19:29:13 +02:00
94b4fd387e
Merge pull request #3075 from gleidi-suse/product-composer-sl-micro
gocd: microos: Completely switch to product composer.
2024-04-29 16:10:58 +02:00
6c5e7209ae
gocd: microos: Stop releasing 000product. 2024-04-29 10:09:02 +02:00
1d66348ea4
Reapply "gocd: microos: Release both 000product and 000productcompose ."
This reverts commit 0c189092bcffc88ff13044067dfdb58207a20db4.
2024-04-29 09:50:53 +02:00
25933f9e99 fix issue #3073
For openSUSE-release-tools-slsa-build-service package create osrt-slsa
user and group using sysusers.d

Move SLSA config files to slsa directory
2024-04-19 18:14:43 -03:00
58b3d97b89
Merge pull request #3072 from gleidi-suse/revert-product-composer
Revert "gocd: microos: Release both 000product and 000productcompose ."
2024-04-11 11:00:43 +02:00
0c189092bc
Revert "gocd: microos: Release both 000product and 000productcompose ."
This reverts commit 1e9554f94fdb4d34bd7847b0bbe04a9e9b8b2f1a.
2024-04-11 10:11:08 +02:00
609489831f
Merge pull request #3070 from gleidi-suse/micro-product-composer
gocd: microos: Release both 000product and 000productcompose
2024-04-05 15:17:50 +02:00
1e9554f94f
gocd: microos: Release both 000product and 000productcompose . 2024-04-05 14:52:29 +02:00
Gustavo Yokoyama Ribeiro
9d60e6243f
Merge pull request #3069 from gleidi-suse/SL-Micro
gocd: Rename SLE-Micro to SL-Micro.
2024-03-25 07:50:02 -03:00
c60d934151
gocd: Rename SLE-Micro to SL-Micro. 2024-03-25 10:50:09 +01:00
Witek Bedyk
79b913ce40 Add Leap 15.6 to access metrics 2024-03-20 12:32:59 +01:00
Gustavo Yokoyama Ribeiro
b0862531f2
Merge pull request #3067 from g7/target-errors
gocd: sp/micro-targets: ensure the pipeline exits on failures
2024-03-15 09:23:36 -03:00
330aa29413 gocd: sp/micro-targets: ensure the pipeline exits on failures
This was already implemented in ddd2304022e313eca9b391a043b12ecb9afe3bf7
for SLE GA to TEST, but missing in Micro and on the TEST -> PUBLISH leg
in SLE.

Releasing from TEST to PUBLISH might still fail for various reasons.
If it happens, ensure the pipeline exits early with non-zero exit code.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
2024-03-15 12:19:59 +01:00
Fabian Vogt
5f5f9db962
Merge pull request #3066 from Vogtinator/less-changes-changes
pkglistgen: Don't always regenerate .changes
2024-03-12 09:35:18 +01:00
Fabian Vogt
fc97bf7c2b pkglistgen: Don't always regenerate .changes
Change file_utils.unlink_all_except to accept globs and use it to keep
.changes.
2024-03-12 09:04:03 +01:00
a2edca4481
Merge pull request #3064 from JanZerebecki/sde-create-release-changes-now
Create .changes files for reproducible builds
2024-03-11 16:03:12 +01:00
45aa258778
Merge pull request #3065 from DimStar77/bfr
build-fail-reminder: send mail to the 'new' mailing list address
2024-03-11 16:03:01 +01:00
51ffd0e2cf
build-fail-reminder: send mail to the 'new' mailing list address 2024-03-11 09:25:43 +01:00
Jan Zerebecki
57110cc66e
Create .changes files for reproducible builds
release rpm files currently do not have .changes files, but these are
needed to extract SOURCE_DATE_EPOCH for reproducible builds.

Using the time stamp of the last commit to any of the input, which is
the 000package-groups and 000update-repos source package, as the time
for the changes entry would be reproducible, however there is resistance
to that.

The other date that is related is the time of the last
source change for any input to the whole distribution, however AFAIK
this date is not cheap enough to compute for OBS-VCS. This hopefully
changes once we move to git.

However to not delay making progress with reproducible builds in
Factory, I propose this change which makes the output of this script
non-reproducible, by using the current wall-clock time. But only when
this script produced a change to be commited. The release binary rpms
will still be reproducible. We can revisit making the generated source
reproducible, later.

See https://reproducible-builds.org/ for more general information on
this topic.
2024-03-08 14:28:26 +01:00
fd5b7a66a6
Merge pull request #3058 from gyr/SLSA
SLSA support
2024-03-04 16:04:22 +01:00
Fabian Vogt
f941f9da35
Merge pull request #3060 from asdil12/slowroll
Call rabbit-repoid.py for openSUSE:Slowroll
2024-02-23 13:35:56 +01:00
Fabian Vogt
1748b2024e
Merge pull request #3063 from Vogtinator/smartfileconflicts
osclib/repochecks.py: Use libsolv for checking conflicts between packages
2024-02-22 16:41:53 +01:00
Fabian Vogt
f1f00783af osclib/repochecks.py: Use libsolv for checking conflicts between packages
Don't rely just on findfileconflicts to check whether packages have
conflicting dependencies, but use libsolv to do a full check.

Fixes #1885
2024-02-22 15:58:16 +01:00
Fabian Vogt
ac4d4047ba findfileconflicts: Quote version and release in YAML output
Otherwise they get interpreted as numbers and weird stuff happens.
2024-02-22 15:15:13 +01:00
Richard Brown
db4bd757d4 Introduce new openSUSE|SUSE.Legal group and move pipelines into them 2024-02-22 14:41:40 +01:00
3a3c97ee4c Skip SLSA scripts in smoke-test.
SLSA scripts don't have a help flag due to they are intended
to be executed by sytemd services only.
2024-02-21 12:44:34 -03:00
Fabian Vogt
84b76ec7b9
Merge pull request #3052 from witekest/merged_protocols
Add IPv4 and IPv6 handling in one file
2024-02-21 11:26:47 +01:00
Witek Bedyk
1e4d1e0059
Fix mkdir permissions argument
Co-authored-by: Fabian Vogt <fabian@ritter-vogt.de>
2024-02-21 11:11:26 +01:00
Fabian Vogt
9919e0248e
Merge pull request #3061 from rfan1/leap156_maintenance
Maintenance setup for Leap 15.6
2024-02-20 09:45:17 +01:00
rfan1
cd9db309e7 Maintenance setup for Leap 15.6
https://progress.opensuse.org/issues/133220
2024-02-20 00:22:46 -05:00
Dominik Heidler
6c8542b06a Call rabbit-repoid.py for openSUSE:Slowroll
Ticket: https://progress.opensuse.org/issues/135731
2024-02-19 14:29:26 +01:00
d380b44f52 Create SLSA user (osrt-slsa) on specfile like others osrt-* users
and remove logrotate file
2024-02-16 19:50:50 -03:00
33d56465c9 Packaging release and pkglistgen services (slsa-build-service) 2024-02-16 08:25:42 -03:00
b0c4abff68 Add a timeout for verify-repo-built-successful.py 2024-02-15 12:25:42 -03:00