Skip to content

Backport konflux changes to 3.20 (stackrox 4.6) #2176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 66 commits into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
e6e548c
chore(deps): update konflux references (#1896)
red-hat-konflux[bot] Oct 22, 2024
2c9d856
build: Switch `git-url` from `repo_url` to `source_url` (#1903)
msugakov Oct 23, 2024
54767cc
chore(deps): update konflux references (#1905)
red-hat-konflux[bot] Oct 24, 2024
ab14499
chore(deps): update konflux references (#1907)
red-hat-konflux[bot] Oct 30, 2024
5732351
chore(deps): update quay.io/redhat-appstudio/build-trusted-artifacts:…
red-hat-konflux[bot] Nov 1, 2024
c414a87
chore(deps): update konflux references (#1921)
red-hat-konflux[bot] Nov 12, 2024
99bd83b
Always build multiarch tests for the konflux workflows (#1974)
Molter73 Dec 2, 2024
1880bbf
chore: Update Renovate config (#1979)
msugakov Dec 4, 2024
fb6a196
chore(deps): update konflux references (master) (#1976)
red-hat-konflux[bot] Dec 5, 2024
2f79a01
chore(deps): update quay.io/redhat-appstudio/build-trusted-artifacts:…
red-hat-konflux[bot] Dec 5, 2024
be4bc77
chore(deps): update konflux references (master) (#1984)
red-hat-konflux[bot] Dec 6, 2024
978e35a
chore(deps): update konflux references (master) (#1985)
red-hat-konflux[bot] Dec 9, 2024
d4b2d02
ROX-27350: Switch `determine-image-tag` to trusted task (#1992)
msugakov Dec 20, 2024
e5af00b
ROX-27485: Add comment not to delete source-location LABEL from Konfl…
tommartensen Jan 3, 2025
95114ce
chore: Kill `Java` mentions from Konflux pipelines (#2006)
msugakov Jan 8, 2025
47bbf92
ROX-24530: let Konflux images expire after 13w (#2007)
tommartensen Jan 9, 2025
9ddeb83
chore(deps): update konflux references (master) (#1988)
red-hat-konflux[bot] Jan 14, 2025
4f00700
chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker dig…
red-hat-konflux[bot] Jan 14, 2025
e5e27c7
ROX-27384: Use the updated `determine-image-tag` task (#2001)
msugakov Jan 20, 2025
a5c582d
chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker dig…
red-hat-konflux[bot] Jan 21, 2025
aab1be4
chore(deps): update konflux references (master) (#2008)
red-hat-konflux[bot] Jan 21, 2025
353394a
chore(deps): update konflux references (master) (#2015)
red-hat-konflux[bot] Jan 27, 2025
649eaf6
chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker dig…
red-hat-konflux[bot] Jan 30, 2025
4bd5589
chore(deps): update konflux references (#2022)
red-hat-konflux[bot] Feb 4, 2025
bf99d11
Ensure ctest fails if no unit tests are found (#2027)
Molter73 Feb 11, 2025
6374a2e
chore(deps): update konflux references (#2026)
red-hat-konflux[bot] Feb 11, 2025
182006d
chore(deps): update konflux references (#2037)
red-hat-konflux[bot] Feb 12, 2025
3bcd12c
chore(deps): update konflux references to 752230a (#2040)
red-hat-konflux[bot] Feb 13, 2025
cea79aa
ROX-27831: set image expiration based on event type and target branch…
tommartensen Feb 14, 2025
ab2e35c
chore(deps): update konflux references to b78123a (#2045)
red-hat-konflux[bot] Feb 17, 2025
998f253
chore(deps): update konflux references to a3f3a4d (#2047)
red-hat-konflux[bot] Feb 24, 2025
cf65414
chore(deps): update konflux references to 5bc6129 (#2049)
red-hat-konflux[bot] Feb 25, 2025
eef4ae9
ROX-27905: Exclude sample rpmbdbs from Konflux SBOMs (#2052)
msugakov Mar 3, 2025
b97f119
chore(deps): update konflux references (#2053)
red-hat-konflux[bot] Mar 3, 2025
4a90360
chore: Mark more places to be reviewed by `rhtap-maintainers` (#2054)
msugakov Mar 4, 2025
65c6960
Fix QA tag missing collector version in konflux tests (#2057)
Molter73 Mar 10, 2025
d8af725
chore(deps): update konflux references (#2060)
red-hat-konflux[bot] Mar 17, 2025
b6d6940
ROX-27856: Post Konflux metrics to BigQuery (#2071)
msugakov Apr 9, 2025
f7e7a04
chore(deps): update konflux references (#2062)
red-hat-konflux[bot] Apr 15, 2025
334fa64
ROX-20234: Add rpms prefetch, set build to hermetic (#2109)
msugakov May 7, 2025
ac5eadb
chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker dig…
red-hat-konflux[bot] May 9, 2025
8aa42db
chore(deps): update konflux references (#2088)
red-hat-konflux[bot] May 9, 2025
1b87e18
chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker dig…
red-hat-konflux[bot] May 12, 2025
9ae21ce
chore(deps): update konflux references (#2118)
red-hat-konflux[bot] May 12, 2025
f433960
ROX-29078: switch to per component service account (#2120)
tommartensen May 14, 2025
c6e2439
ROX-28568: Add required tasks sast-shell-check and sast-unicode-check…
tommartensen May 14, 2025
e3f183b
ROX-26148: Announce ./rpms.* files ownership (#2127)
msugakov May 19, 2025
bfb276f
chore(deps): update konflux references (#2121)
red-hat-konflux[bot] May 20, 2025
2a1fd2e
chore: Bump memory limit in TA download (#2129)
msugakov May 20, 2025
0f65c14
chore(deps): rpm updates (#2128)
red-hat-konflux[bot] May 20, 2025
da7572c
chore(deps): rpm updates [security] (#2131)
red-hat-konflux[bot] May 21, 2025
6e1b576
chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker dig…
red-hat-konflux[bot] May 21, 2025
d26685d
build(fix): Bump TA steps memory from 4 to 6Gi (#2134)
msugakov May 21, 2025
34e80be
chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker dig…
red-hat-konflux[bot] May 27, 2025
b2b9278
ROX-29479: Use custom repos for Konflux built product (#2139)
tommartensen May 27, 2025
6231744
ROX-28973: update image tagging and expiration in Konflux (#2141)
tommartensen May 28, 2025
05e9f83
chore(deps): rpm updates [security] (#2143)
red-hat-konflux[bot] May 28, 2025
b57d4c3
chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker dig…
red-hat-konflux[bot] May 30, 2025
528c5ca
chore(deps): update konflux references (#2133)
red-hat-konflux[bot] May 30, 2025
18eb321
chore(deps): [security] (#2153)
red-hat-konflux[bot] Jun 4, 2025
69277a2
ROX-29602: Use updated `determine-image-tag` task (#2154)
msugakov Jun 6, 2025
fd06689
chore(deps): update konflux references (#2156)
red-hat-konflux[bot] Jun 10, 2025
349cbfd
chore(deps): update all dependencies (#2155)
red-hat-konflux[bot] Jun 10, 2025
bac3891
chore(deps): update quay.io/rhacs-eng/konflux-tasks:latest docker dig…
red-hat-konflux[bot] Jun 10, 2025
a273780
build: Fix Konflux builds (#2166)
msugakov Jun 12, 2025
8d9cc13
Stop installing jq to the builder image (#1925)
Molter73 Nov 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
RELEASED_VERSIONS @stackrox/collector-team
RELEASED_VERSIONS.unsupported @stackrox/collector-team

# The RHTAP maintainers for ACS review all changes related to the RHTAP pipelines, such as new pipelines,
# parameter changes or automated task updates.
/.tekton/ @stackrox/rhtap-maintainers
/.konflux/ @stackrox/rhtap-maintainers
# The RHTAP maintainers for ACS review all changes related to the Konflux (f.k.a. RHTAP) pipelines, such as new
# pipelines, parameter changes or automated task updates as well as Dockerfile updates.
**/konflux.*Dockerfile @stackrox/rhtap-maintainers
/.tekton/ @stackrox/rhtap-maintainers
rpms.* @stackrox/rhtap-maintainers
48 changes: 42 additions & 6 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,73 @@
// This configures Konflux Renovate bot, the thing that keeps our pipelines use up-to-date tasks.

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

"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
// This inherits the base Konflux config.
// Clickable link https://github.com/konflux-ci/mintmaker/blob/main/config/renovate/renovate.json
// The following was used as example (we may want to check it if the base config gets suddenly moved):
// Note that the base Konflux's MintMaker config gets inherited/included automatically per
// https://redhat-internal.slack.com/archives/C04PZ7H0VA8/p1745492139282819?thread_ts=1745309786.090319&cid=C04PZ7H0VA8
// The config is: https://github.com/konflux-ci/mintmaker/blob/main/config/renovate/renovate.json
// We found out about it here (we may want to check that location if the base config gets suddenly moved):
// https://github.com/enterprise-contract/ec-cli/blob/407847910ad420850385eea1db78e2a2e49c7e25/renovate.json#L1C1-L7C2
"github>konflux-ci/mintmaker//config/renovate/renovate.json"

// This tells Renovate to combine all updates in one PR so that we have fewer PRs to deal with.
"group:all",
],
"timezone": "Etc/UTC",
"schedule": [
// Allowed syntax: https://docs.renovatebot.com/configuration-options/#schedule
// The time was selected (with the help of https://time.fyi/timezones) so that Renovate isn't active during business
// hours from Germany to US West Coast. This way, after we merge a PR, a new one does not pop up immediately after
// that.
"after 3am and before 7am"
"after 3am and before 7am",
],
// Tell Renovate not to update PRs when outside of schedule.
"updateNotScheduled": false,
"tekton": {
"schedule": [
// Override Konflux custom schedule for this manager to our intended one.
"after 3am and before 7am",
],
"packageRules": [
// Note: the packageRules from the Konflux config (find URL in comments above) get merged with these.
{
"groupName": "StackRox custom Konflux Tasks",
"matchPackageNames": [
"/^quay.io/rhacs-eng/konflux-tasks/",
],
},
],
},
"dockerfile": {
"includePaths": [
// Instruct Renovate not try to update Dockerfiles other than konflux.Dockerfile (or konflux.anything.Dockerfile)
// to have less PR noise.
"**/*konflux*.Dockerfile",
],
"schedule": [
// Override Konflux custom schedule for this manager to our intended one.
"after 3am and before 7am",
],
"postUpgradeTasks": {
"commands": [
// Refresh the rpm lockfile after updating image references in the dockerfile.
"rpm-lockfile-prototype rpms.in.yaml",
],
},
},
"rpm": {
"schedule": [
// Override Konflux custom schedule for this manager to our intended one.
"after 3am and before 7am",
],
},
"enabledManagers": [
// Restrict Renovate focus on Konflux things since we rely on GitHub's dependabot for everything else.
"tekton",
"dockerfile",
"rpm",
],
}
40 changes: 33 additions & 7 deletions .github/workflows/integration-test-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
type: boolean
required: true
description: Whether the QA containers should be rebuilt
is-konflux:
type: boolean
default: false
description: The current workflow is tied to konflux
outputs:
collector-tests-tag:
description: The tag used for the integration test image
Expand Down Expand Up @@ -75,11 +79,11 @@ jobs:

- name: Create Ansible Vars (inc. Secrets)
run: |
{
echo "---"
echo "rhacs_eng_username: ${{ secrets.QUAY_RHACS_ENG_RW_USERNAME }}"
echo "rhacs_eng_password: ${{ secrets.QUAY_RHACS_ENG_RW_PASSWORD }}"
} > ${{ github.workspace }}/ansible/secrets.yml
cat << EOF > ${{ github.workspace }}/ansible/secrets.yml
---
rhacs_eng_username: ${{ secrets.QUAY_RHACS_ENG_RW_USERNAME }}
rhacs_eng_password: ${{ secrets.QUAY_RHACS_ENG_RW_PASSWORD }}
EOF

if [[ "${RUNNER_DEBUG}" == "1" ]]; then
echo "ANSIBLE_STDOUT_CALLBACK=debug" >> "${GITHUB_ENV}"
Expand All @@ -98,12 +102,32 @@ jobs:
echo "COLLECTOR_TESTS_TAG=${COLLECTOR_TESTS_TAG}" >> "$GITHUB_ENV"
echo "collector-tests-tag=${COLLECTOR_TESTS_TAG}" >> "$GITHUB_OUTPUT"

- name: Check if multiarch is needed
run: |
BUILD_MULTI_ARCH="false"

if [[ "${GITHUB_EVENT_NAME}" != "pull_request" ]]; then
BUILD_MULTI_ARCH="true"
fi

if [[ "${{ inputs.is-konflux }}" == "true" ]]; then
BUILD_MULTI_ARCH="true"
fi

if [[ "${{ contains(github.event.pull_request.labels.*.name, 'run-multiarch-builds') }}" == "true" ]]; then
BUILD_MULTI_ARCH="true"
fi

if [[ "${{ contains(github.event.pull_request.labels.*.name, 'run-cpaas-steps') }}" == "true" ]]; then
BUILD_MULTI_ARCH="true"
fi

echo "BUILD_MULTI_ARCH=${BUILD_MULTI_ARCH}" >> "$GITHUB_ENV"

- name: Build images
run: |
ansible-galaxy install -r ansible/requirements.yml

BUILD_MULTI_ARCH="${{ contains(github.event.pull_request.labels.*.name, 'run-multiarch-builds') || contains(github.event.pull_request.labels.*.name, 'run-cpaas-steps') || github.event_name == 'push' || github.event_name == 'schedule' }}"

# build_multi_arch passed in as json to ensure boolean type
ansible-playbook \
--connection local -i localhost, --limit localhost \
Expand Down Expand Up @@ -151,6 +175,8 @@ jobs:

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v9.2.2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/k8s-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: K8S based integration tests
on:
workflow_call:
inputs:
collector-repo:
description: |
Optional repository to use for the collector image
type: string
default: "quay.io/rhacs-eng/collector"
collector-tag:
description: |
Tag used for running the integration tests
Expand All @@ -22,7 +27,7 @@ on:
env:
ANSIBLE_CONFIG: ${{ github.workspace }}/ansible/ansible.cfg
COLLECTOR_TESTS_IMAGE: quay.io/rhacs-eng/collector-tests:${{ inputs.collector-tests-tag }}
COLLECTOR_IMAGE: quay.io/rhacs-eng/collector:${{ inputs.collector-tag }}
COLLECTOR_IMAGE: ${{ inputs.collector-repo }}:${{ inputs.collector-tag }}

jobs:
k8s-integration-tests:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/konflux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:

- id: generate-tag
run: |
echo "collector-tag=$(make tag)-fast" >> "$GITHUB_OUTPUT"
COLLECTOR_TAG="$(make tag)-fast"
echo "collector-tag=${COLLECTOR_TAG}" >> "$GITHUB_OUTPUT"

COLLECTOR_QA_TAG="$(cat ${{ github.workspace }}/integration-tests/container/QA_TAG)"
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" && "${{ steps.filter.outputs.container }}" == "true" ]]; then
Expand All @@ -62,7 +63,7 @@ jobs:
- uses: stackrox/actions/release/wait-for-image@v1
with:
token: ${{ secrets.QUAY_RHACS_ENG_BEARER_TOKEN }}
image: rhacs-eng/collector:${{ needs.init.outputs.collector-tag }}
image: rhacs-eng/release-collector:${{ needs.init.outputs.collector-tag }}
limit: 9000 # 2h30m

integration-tests-containers:
Expand All @@ -73,6 +74,7 @@ jobs:
collector-tag: ${{ needs.init.outputs.collector-tag }}
collector-qa-tag: ${{ needs.init.outputs.collector-qa-tag }}
rebuild-qa-containers: ${{ needs.init.outputs.rebuild-qa-containers == 'true' }}
is-konflux: true
secrets: inherit

run-konflux-tests:
Expand All @@ -82,6 +84,7 @@ jobs:
- wait-for-images
- integration-tests-containers
with:
collector-repo: quay.io/rhacs-eng/release-collector
collector-tag: ${{ needs.init.outputs.collector-tag }}
collector-qa-tag: ${{ needs.init.outputs.collector-qa-tag }}
collector-tests-tag: ${{ needs.integration-tests-containers.outputs.collector-tests-tag }}
Expand All @@ -93,6 +96,7 @@ jobs:
k8s-integration-tests:
uses: ./.github/workflows/k8s-integration-tests.yml
with:
collector-repo: quay.io/rhacs-eng/release-collector
collector-tag: ${{ needs.init.outputs.collector-tag }}
collector-qa-tag: ${{ needs.init.outputs.collector-qa-tag }}
collector-tests-tag: ${{ needs.integration-tests-containers.outputs.collector-tests-tag }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:

- name: Run unit tests
run: |
ctest -V --test-dir cmake-build
ctest --no-tests=error -V --test-dir cmake-build

integration-tests:
uses: ./.github/workflows/integration-tests.yml
Expand Down
3 changes: 0 additions & 3 deletions .konflux/README.md

This file was deleted.

34 changes: 0 additions & 34 deletions .konflux/scripts/fail-build-if-git-is-dirty.sh

This file was deleted.

Loading
Loading