Skip to content

konflux: integrate Testing Farm for multi-arch kola testing#4030

Open
Roshan-R wants to merge 22 commits intocoreos:testing-develfrom
Roshan-R:testing-farm-kola
Open

konflux: integrate Testing Farm for multi-arch kola testing#4030
Roshan-R wants to merge 22 commits intocoreos:testing-develfrom
Roshan-R:testing-farm-kola

Conversation

@Roshan-R
Copy link
Contributor

Enable execution of kola tests in Konflux through Testing Farm using the upstream tmt-via-testing-farm Tekton pipeline.

This introduces two IntegrationTestScenario resources for x86_64 and aarch64, enabling Testing Farm to provision infrastructure and run kola via tmt. Other architectures are not yet enabled due to current Testing Farm provisioning limitations

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request integrates Testing Farm for multi-arch kola testing by adding new Tekton and TMT configurations. The review has identified several important issues that need to be addressed. There are critical copy-paste errors in two shell scripts (tmt/tests/kola.sh and tmt/tests/test.sh) where diff headers have been included, which will cause them to fail. Additionally, there are high-severity concerns regarding the use of a privileged container, which is a security risk, and the hardcoding of a personal GitHub fork in the test scenarios, which impacts maintainability. Other medium-severity suggestions include verifying a potentially incorrect Fedora compose version and improving shell script robustness. Please address these points to ensure the changes are secure, correct, and maintainable.

Comment on lines +26 to +29
- name: GIT_URL
value: https://github.com/Roshan-R/fedora-coreos-config
- name: GIT_REF
value: kola-testing-farm

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The GIT_URL is set to a personal fork and GIT_REF to a development branch. For long-term maintainability and stability, this should point to the official upstream repository and a stable reference (e.g., a tag or main branch) rather than a personal fork, especially before merging.

Comment on lines +58 to +61
- name: GIT_URL
value: https://github.com/Roshan-R/fedora-coreos-config
- name: GIT_REF
value: kola-testing-farm

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The GIT_URL is set to a personal fork and GIT_REF to a development branch. For long-term maintainability and stability, this should point to the official upstream repository and a stable reference (e.g., a tag or main branch) rather than a personal fork, especially before merging.

@Roshan-R
Copy link
Contributor Author

/retest

@Roshan-R Roshan-R force-pushed the testing-farm-kola branch from 6e776e7 to 52b58ca Compare March 2, 2026 08:19
Enable execution of kola tests in Konflux through Testing Farm
using the upstream tmt-via-testing-farm Tekton pipeline.

This introduces two IntegrationTestScenario resources for
x86_64 and aarch64, enabling Testing Farm to provision infrastructure
and run kola via tmt. Other architectures are not yet enabled
due to current Testing Farm provisioning limitations
@Roshan-R Roshan-R force-pushed the testing-farm-kola branch from 52b58ca to 61f312b Compare March 2, 2026 09:10
Copy link
Member

@jbtrystram jbtrystram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initial review

Comment on lines +29 to +31
cosa buildextend-qemu
cosa kola run --rerun --allow-rerun-success=tags=needs-internet --build=latest --on-warn-failure-exit-77 --arch=$(arch) '--tag=!reprovision' --parallel=5
mv $COSA_DIR/tmp/kola $TMT_TEST_DATA
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we probably want to also test the ISO and build all the artifacts

- name: IMAGE_TAG
value: v3.16
- name: GIT_URL
value: https://github.com/Roshan-R/fedora-coreos-config
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update to coreos org

- name: IMAGE_TAG
value: v3.16
- name: GIT_URL
value: https://github.com/Roshan-R/fedora-coreos-config
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update to coreOS org

Comment on lines +31 to +35
/qemu:
summary: QEMU tests
tag: qemu
environment+:
PLATFORM: qemu
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's split that in /build-qemu and /test-qemu at least

env | grep --color=auto COREOS_ASSEMBLER;
local -r COREOS_ASSEMBLER_CONTAINER_LATEST="quay.io/coreos-assembler/coreos-assembler:latest";
set -x;
podman run --rm -ti --security-opt=label=disable --privileged --uidmap=1000:0:1 --uidmap=0:1:1000 --uidmap=1001:1001:64536 -v=\${COSA_DIR}:/srv/ --device=/dev/kvm --device=/dev/fuse --tmpfs=/tmp -v=/var/tmp:/var/tmp --name=cosa \${COREOS_ASSEMBLER_CONFIG_GIT:+-v=\$COREOS_ASSEMBLER_CONFIG_GIT:/srv/src/config/:ro} \${COREOS_ASSEMBLER_GIT:+-v=\$COREOS_ASSEMBLER_GIT/src/:/usr/lib/coreos-assembler/:ro} \${COREOS_ASSEMBLER_ADD_CERTS:+-v=/etc/pki/ca-trust:/etc/pki/ca-trust:ro} \${COREOS_ASSEMBLER_CONTAINER_RUNTIME_ARGS} \${COREOS_ASSEMBLER_CONTAINER:-\$COREOS_ASSEMBLER_CONTAINER_LATEST} "\$@";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can drop the customization env vars here

pushd ${COSA_DIR}/src/config
git checkout $CONFIG_COMMIT
popd
cosa buildextend-qemu
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cosa buildextend-qemu
cosa osbuild qemu

@Roshan-R Roshan-R force-pushed the testing-farm-kola branch from f9b2765 to 42b66b7 Compare March 4, 2026 13:02
@Roshan-R Roshan-R force-pushed the testing-farm-kola branch 6 times, most recently from fca7f79 to f4d9f74 Compare March 4, 2026 20:34
@Roshan-R Roshan-R force-pushed the testing-farm-kola branch from f4d9f74 to 051c986 Compare March 4, 2026 21:13
@Roshan-R
Copy link
Contributor Author

Roshan-R commented Mar 5, 2026

/retest

@Roshan-R Roshan-R force-pushed the testing-farm-kola branch 3 times, most recently from 06c8300 to da3f958 Compare March 5, 2026 14:53
@Roshan-R Roshan-R force-pushed the testing-farm-kola branch from da3f958 to dd6a865 Compare March 6, 2026 10:44
@Roshan-R Roshan-R force-pushed the testing-farm-kola branch from e3ac542 to 56f002b Compare March 6, 2026 12:54
@Roshan-R
Copy link
Contributor Author

Roshan-R commented Mar 9, 2026

/retest

@Roshan-R Roshan-R force-pushed the testing-farm-kola branch from edd4824 to cdb149d Compare March 9, 2026 13:27
@Roshan-R Roshan-R force-pushed the testing-farm-kola branch 2 times, most recently from 57b9b52 to 55ad4fa Compare March 10, 2026 09:00
@Roshan-R Roshan-R force-pushed the testing-farm-kola branch from 55ad4fa to 0ff4256 Compare March 10, 2026 10:04
@Roshan-R Roshan-R force-pushed the testing-farm-kola branch from 10fe25f to 9326d84 Compare March 10, 2026 12:58
@Roshan-R
Copy link
Contributor Author

/retest

1 similar comment
@Roshan-R
Copy link
Contributor Author

/retest

environment:
TEST_CASE: test-qemu

/build-iso:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can put build-iso and test-iso in another VM to make the running time shorter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants