-
Notifications
You must be signed in to change notification settings - Fork 173
konflux: integrate Testing Farm for multi-arch kola testing #4030
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
base: testing-devel
Are you sure you want to change the base?
Changes from 1 commit
61f312b
48e20b5
900f4a4
051c986
dd6a865
56f002b
5148221
68fd398
382a84b
25be9f8
0ff4256
9326d84
83befdd
1f26d3a
5d2647d
0e72aac
610beb7
9568370
3efe01d
fa71ba6
19c15dc
5bebef6
41271e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,3 +5,4 @@ resources: | |
| - on-pull-request | ||
| - on-pull-request-overrides | ||
| - on-push | ||
| - testing-farm.yaml | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| apiVersion: appstudio.redhat.com/v1beta2 | ||
| kind: IntegrationTestScenario | ||
| metadata: | ||
| labels: | ||
| test.appstudio.openshift.io/optional: "true" | ||
| name: fedora-coreos-testing-devel-kola-tests-x86-64 | ||
| spec: | ||
| application: fedora-coreos-testing-devel | ||
| contexts: | ||
| - name: component_fedora-coreos-testing-devel | ||
| resolverRef: | ||
| params: | ||
| - name: url | ||
| value: https://gitlab.com/testing-farm/integrations-konflux | ||
| - name: revision | ||
| value: v3.16 | ||
| - name: pathInRepo | ||
| value: pipeline/tmt-via-testing-farm/tmt-via-testing-farm.yaml | ||
| resolver: git | ||
| params: | ||
| - name: COMPOSE | ||
| value: Fedora-43 | ||
| - name: ARCH | ||
| value: x86_64 | ||
| - name: IMAGE_TAG | ||
| value: v3.16 | ||
| - name: GIT_URL | ||
| value: https://github.com/Roshan-R/fedora-coreos-config | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update to coreos org |
||
| - name: GIT_REF | ||
| value: kola-testing-farm | ||
|
||
| - name: TMT_PLAN | ||
| value: tmt | ||
| --- | ||
| apiVersion: appstudio.redhat.com/v1beta2 | ||
| kind: IntegrationTestScenario | ||
| metadata: | ||
| labels: | ||
| test.appstudio.openshift.io/optional: "true" | ||
| name: fedora-coreos-testing-devel-kola-tests-aarch64 | ||
| spec: | ||
| application: fedora-coreos-testing-devel | ||
| contexts: | ||
| - name: component_fedora-coreos-testing-devel | ||
| resolverRef: | ||
| params: | ||
| - name: url | ||
| value: https://gitlab.com/testing-farm/integrations-konflux | ||
| - name: revision | ||
| value: v3.16 | ||
| - name: pathInRepo | ||
| value: pipeline/tmt-via-testing-farm/tmt-via-testing-farm.yaml | ||
| resolver: git | ||
| params: | ||
| - name: COMPOSE | ||
| value: Fedora-43 | ||
Roshan-R marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - name: ARCH | ||
| value: aarch64 | ||
| - name: IMAGE_TAG | ||
| value: v3.16 | ||
| - name: GIT_URL | ||
| value: https://github.com/Roshan-R/fedora-coreos-config | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. update to coreOS org |
||
| - name: GIT_REF | ||
| value: kola-testing-farm | ||
|
||
| - name: TMT_PLAN | ||
| value: tmt | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| /kola: | ||
| enabled: true | ||
| discover: | ||
| how: fmf | ||
| path: tmt |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| discover: | ||
| how: fmf | ||
| test: kola | ||
| adjust+: | ||
| - when: arch == x86_64 or arch == aarch64 | ||
| provision: | ||
| hardware: | ||
| cpu: | ||
| processors: ">= 4" | ||
| memory: ">= 8 GB" | ||
| disk: | ||
| - size: ">= 100 GB" | ||
| virtualization: | ||
| is-supported: true | ||
| prepare: | ||
| - how: install | ||
| package: | ||
| - libvirt | ||
| - qemu-kvm | ||
| - qemu-img | ||
| - skopeo | ||
| - virt-install | ||
| - wget | ||
| - jq | ||
| - git | ||
| - how: shell | ||
| script: podman pull quay.io/coreos-assembler/coreos-assembler:latest | ||
| execute: | ||
| how: tmt | ||
|
|
||
| /qemu: | ||
| summary: QEMU tests | ||
| tag: qemu | ||
| environment+: | ||
| PLATFORM: qemu | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| test: ./test.sh | ||
| duration: 3h | ||
| environment: | ||
| TEST_CASE: kola |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,31 @@ | ||||||
| #!/bin/bash | ||||||
| set -euo pipefail | ||||||
|
|
||||||
| cat <<EOF > $HOME/utils.sh | ||||||
| export COSA_DIR=\$HOME/workspace/build; | ||||||
| cosa () | ||||||
| { | ||||||
| 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} "\$@"; | ||||||
jbtrystram marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| rc=\$?; | ||||||
| set +x; | ||||||
| return \$rc | ||||||
| } | ||||||
| EOF | ||||||
| set -x | ||||||
| source $HOME/utils.sh | ||||||
| mkdir -p $COSA_DIR | ||||||
| echo $TMT_TEST_DATA | ||||||
| cosa init --force https://github.com/coreos/fedora-coreos-config | ||||||
|
|
||||||
| echo $IMAGE_URL | ||||||
| cosa import docker://$IMAGE_URL | ||||||
| CONFIG_COMMIT=$(jq -r ".\"coreos-assembler.oci-imported-labels\".vcs-ref" ${COSA_DIR}/builds/latest/$(arch)/meta.json) | ||||||
| pushd ${COSA_DIR}/src/config | ||||||
| git checkout $CONFIG_COMMIT | ||||||
| popd | ||||||
| cosa buildextend-qemu | ||||||
|
||||||
| cosa buildextend-qemu | |
| cosa osbuild qemu |
Outdated
There was a problem hiding this comment.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
Roshan-R marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| if [ "$TEST_CASE" = "kola" ]; then | ||
| ./kola.sh | ||
| else | ||
| echo "Error: Test case $TEST_CASE not found!" | ||
| exit 1 | ||
| fi | ||
Uh oh!
There was an error while loading. Please reload this page.