Skip to content

Commit d17aa63

Browse files
Molter73red-hat-konflux[bot]tommartensenmsugakovStringy
authored
Backport konflux changes to 3.21 (stackrox 4.7) (#2174)
* Ensure ctest fails if no unit tests are found (#2027) * chore(deps): update konflux references (#2026) * chore(deps): update konflux references (#2037) * chore(deps): update konflux references to 752230a (#2040) * ROX-27831: set image expiration based on event type and target branch (#2035) * ROX-27831: set image expiration based on event type and target branch * update task digest and name * fix task digest * chore(deps): update konflux references to b78123a (#2045) * chore(deps): update konflux references to a3f3a4d (#2047) * chore(deps): update konflux references to 5bc6129 (#2049) * ROX-27905: Exclude sample rpmbdbs from Konflux SBOMs (#2052) * chore(deps): update konflux references (#2053) * chore: Mark more places to be reviewed by `rhtap-maintainers` (#2054) * Fix QA tag missing collector version in konflux tests (#2057) The QA tag being used for konflux tests on PRs is malformed, leading to weird errors. This should fix it. When running on a PR that bumps the QA_TAG, the test containers include the collector tag as a suffix in order to prevent collisions with other PRs that might be bumping the version, so they would look something like this: 2.0.3-3.21.x-26-g5a61d712ab-fast However, on konflux, the collector tag was not being properly set and the tags looked like this: 2.0.3- * chore(deps): update konflux references (#2060) * ROX-27856: Post Konflux metrics to BigQuery (#2071) * chore(deps): update konflux references (#2062) * ROX-20234: Add rpms prefetch, set build to hermetic (#2109) Co-authored-by: Tom Martensen <tmartens@redhat.com> * chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker digest to 3d1fbc3 (#2117) * chore(deps): update konflux references (#2088) * chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker digest to fa86065 (#2119) Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com> * chore(deps): update konflux references (#2118) Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com> * ROX-29078: switch to per component service account (#2120) * ROX-29078: switch to per component service account * move SA def to PipelineRun * ROX-28568: Add required tasks sast-shell-check and sast-unicode-check to Konflux pipelines (#2115) * ROX-26148: Announce ./rpms.* files ownership (#2127) * chore(deps): update konflux references (#2121) * chore: Bump memory limit in TA download (#2129) * chore(deps): rpm updates (#2128) * chore(deps): rpm updates [security] (#2131) * chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker digest to f1362c6 (#2122) * build(fix): Bump TA steps memory from 4 to 6Gi (#2134) * chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker digest to b4f8de3 (#2136) Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com> * ROX-29479: Use custom repos for Konflux built product (#2139) * ROX-28973: update image tagging and expiration in Konflux (#2141) * chore(deps): rpm updates [security] (#2143) * chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker digest to f251565 (#2148) * chore(deps): update konflux references (#2133) * chore(deps): [security] (#2153) * ROX-29602: Use updated `determine-image-tag` task (#2154) * chore(deps): update konflux references (#2156) * chore(deps): update all dependencies (#2155) * chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker digest to d5c4939 (#2152) * build: Fix Konflux builds (#2166) * ROX-18384: removes slim and latest images from konflux build (#2028) * ROX-18384: removes slim and latest images from konflux build * Removes matrix from extra tags step --------- Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: red-hat-konflux[bot] <126015336+red-hat-konflux[bot]@users.noreply.github.com> Co-authored-by: Tom Martensen <tmartens@redhat.com> Co-authored-by: Misha Sugakov <537715+msugakov@users.noreply.github.com> Co-authored-by: Giles Hutton <ghutton@redhat.com>
1 parent 07527c9 commit d17aa63

16 files changed

+13901
-432
lines changed

.github/CODEOWNERS

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
RELEASED_VERSIONS @stackrox/collector-team
99
RELEASED_VERSIONS.unsupported @stackrox/collector-team
1010

11-
# The RHTAP maintainers for ACS review all changes related to the RHTAP pipelines, such as new pipelines,
12-
# parameter changes or automated task updates.
13-
/.tekton/ @stackrox/rhtap-maintainers
14-
/.konflux/ @stackrox/rhtap-maintainers
11+
# The RHTAP maintainers for ACS review all changes related to the Konflux (f.k.a. RHTAP) pipelines, such as new
12+
# pipelines, parameter changes or automated task updates as well as Dockerfile updates.
13+
**/konflux.*Dockerfile @stackrox/rhtap-maintainers
14+
/.tekton/ @stackrox/rhtap-maintainers
15+
rpms.* @stackrox/rhtap-maintainers

.github/renovate.json5

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
33

44
// After making changes to this file, you can validate it by running something like this in the root of the repo:
55
// $ docker run --rm -it --entrypoint=renovate-config-validator -v "$(pwd)":/mnt -w /mnt renovate/renovate --strict
6+
// Note: ignore errors about the config for `rpm`. This is to be addressed with https://issues.redhat.com/browse/CWFHEALTH-4117
67
// There are more validation options, see https://docs.renovatebot.com/config-validation/
78

89
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
910
"extends": [
10-
// This inherits the base Konflux config.
11-
// Clickable link https://github.com/konflux-ci/mintmaker/blob/main/config/renovate/renovate.json
12-
// The following was used as example (we may want to check it if the base config gets suddenly moved):
11+
// Note that the base Konflux's MintMaker config gets inherited/included automatically per
12+
// https://redhat-internal.slack.com/archives/C04PZ7H0VA8/p1745492139282819?thread_ts=1745309786.090319&cid=C04PZ7H0VA8
13+
// The config is: https://github.com/konflux-ci/mintmaker/blob/main/config/renovate/renovate.json
14+
// We found out about it here (we may want to check that location if the base config gets suddenly moved):
1315
// https://github.com/enterprise-contract/ec-cli/blob/407847910ad420850385eea1db78e2a2e49c7e25/renovate.json#L1C1-L7C2
14-
"github>konflux-ci/mintmaker//config/renovate/renovate.json",
15-
// This tells Renovate to combine all updates in one PR so that we have less PRs to deal with.
16+
17+
// This tells Renovate to combine all updates in one PR so that we have fewer PRs to deal with.
1618
"group:all",
1719
],
1820
"timezone": "Etc/UTC",
@@ -27,21 +29,46 @@
2729
"updateNotScheduled": false,
2830
"tekton": {
2931
"schedule": [
30-
// For some reason, Konflux config defines custom schedule on each type of dependency manager and that takes
31-
// precedence over the global/default schedule. We want our own schedule and hence need to make this override.
32+
// Override Konflux custom schedule for this manager to our intended one.
3233
"after 3am and before 7am",
3334
],
35+
"packageRules": [
36+
// Note: the packageRules from the Konflux config (find URL in comments above) get merged with these.
37+
{
38+
"groupName": "StackRox custom Konflux Tasks",
39+
"matchPackageNames": [
40+
"/^quay.io/rhacs-eng/konflux-tasks/",
41+
],
42+
},
43+
],
3444
},
3545
"dockerfile": {
3646
"includePaths": [
3747
// Instruct Renovate not try to update Dockerfiles other than konflux.Dockerfile (or konflux.anything.Dockerfile)
3848
// to have less PR noise.
3949
"**/*konflux*.Dockerfile",
4050
],
51+
"schedule": [
52+
// Override Konflux custom schedule for this manager to our intended one.
53+
"after 3am and before 7am",
54+
],
55+
"postUpgradeTasks": {
56+
"commands": [
57+
// Refresh the rpm lockfile after updating image references in the dockerfile.
58+
"rpm-lockfile-prototype rpms.in.yaml",
59+
],
60+
},
61+
},
62+
"rpm": {
63+
"schedule": [
64+
// Override Konflux custom schedule for this manager to our intended one.
65+
"after 3am and before 7am",
66+
],
4167
},
4268
"enabledManagers": [
4369
// Restrict Renovate focus on Konflux things since we rely on GitHub's dependabot for everything else.
4470
"tekton",
4571
"dockerfile",
72+
"rpm",
4673
],
4774
}

.github/workflows/integration-test-containers.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ jobs:
175175

176176
- name: Set up QEMU
177177
uses: docker/setup-qemu-action@v3
178+
with:
179+
image: tonistiigi/binfmt:qemu-v9.2.2
178180

179181
- name: Set up Docker Buildx
180182
uses: docker/setup-buildx-action@v3

.github/workflows/k8s-integration-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: K8S based integration tests
33
on:
44
workflow_call:
55
inputs:
6+
collector-repo:
7+
description: |
8+
Optional repository to use for the collector image
9+
type: string
10+
default: "quay.io/rhacs-eng/collector"
611
collector-tag:
712
description: |
813
Tag used for running the integration tests
@@ -22,7 +27,7 @@ on:
2227
env:
2328
ANSIBLE_CONFIG: ${{ github.workspace }}/ansible/ansible.cfg
2429
COLLECTOR_TESTS_IMAGE: quay.io/rhacs-eng/collector-tests:${{ inputs.collector-tests-tag }}
25-
COLLECTOR_IMAGE: quay.io/rhacs-eng/collector:${{ inputs.collector-tag }}
30+
COLLECTOR_IMAGE: ${{ inputs.collector-repo }}:${{ inputs.collector-tag }}
2631

2732
jobs:
2833
k8s-integration-tests:

.github/workflows/konflux.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
4545
4646
- id: generate-tag
4747
run: |
48-
echo "collector-tag=$(make tag)-fast" >> "$GITHUB_OUTPUT"
48+
COLLECTOR_TAG="$(make tag)-fast"
49+
echo "collector-tag=${COLLECTOR_TAG}" >> "$GITHUB_OUTPUT"
4950
5051
COLLECTOR_QA_TAG="$(cat ${{ github.workspace }}/integration-tests/container/QA_TAG)"
5152
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" && "${{ steps.filter.outputs.container }}" == "true" ]]; then
@@ -62,7 +63,7 @@ jobs:
6263
- uses: stackrox/actions/release/wait-for-image@v1
6364
with:
6465
token: ${{ secrets.QUAY_RHACS_ENG_BEARER_TOKEN }}
65-
image: rhacs-eng/collector:${{ needs.init.outputs.collector-tag }}
66+
image: rhacs-eng/release-collector:${{ needs.init.outputs.collector-tag }}
6667
limit: 9000 # 2h30m
6768

6869
integration-tests-containers:
@@ -83,6 +84,7 @@ jobs:
8384
- wait-for-images
8485
- integration-tests-containers
8586
with:
87+
collector-repo: quay.io/rhacs-eng/release-collector
8688
collector-tag: ${{ needs.init.outputs.collector-tag }}
8789
collector-qa-tag: ${{ needs.init.outputs.collector-qa-tag }}
8890
collector-tests-tag: ${{ needs.integration-tests-containers.outputs.collector-tests-tag }}
@@ -94,6 +96,7 @@ jobs:
9496
k8s-integration-tests:
9597
uses: ./.github/workflows/k8s-integration-tests.yml
9698
with:
99+
collector-repo: quay.io/rhacs-eng/release-collector
97100
collector-tag: ${{ needs.init.outputs.collector-tag }}
98101
collector-qa-tag: ${{ needs.init.outputs.collector-qa-tag }}
99102
collector-tests-tag: ${{ needs.integration-tests-containers.outputs.collector-tests-tag }}

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
9090
- name: Run unit tests
9191
run: |
92-
ctest -V --test-dir cmake-build
92+
ctest --no-tests=error -V --test-dir cmake-build
9393
9494
integration-tests:
9595
uses: ./.github/workflows/integration-tests.yml

.konflux/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)