mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-05-13 06:49:26 +00:00
- remove RUNNER_IMAGE because the cs-dist-tests image is dumb -- it clones the cs-dist-tests repo, checkouts the branch in BRANCH and then runs the release tests. So instead, always use the :latest image (which is built when there are commits to master) - add the BRANCH workflow input so you can test cs-dist-test changes in the runner if needed - remove COMMAND arg, it's always going to be 'dotnet test Tests/CodexReleaseTests' - remove NAMESPACE env variable and just use 'default'. The cluster is ephermal and so all resources deployed are for the release tests, no namespaces needed.
62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: ${NAMEPREFIX}
|
|
namespace: default
|
|
labels:
|
|
name: ${NAMEPREFIX}
|
|
runid: ${RUNID}
|
|
spec:
|
|
ttlSecondsAfterFinished: 86400
|
|
backoffLimit: 0
|
|
template:
|
|
metadata:
|
|
name: ${NAMEPREFIX}
|
|
labels:
|
|
app: ${TEST_TYPE}-runner
|
|
name: ${NAMEPREFIX}
|
|
runid: ${RUNID}
|
|
spec:
|
|
priorityClassName: system-node-critical
|
|
nodeSelector:
|
|
workload-type: "tests-runners-ci"
|
|
containers:
|
|
- name: runner
|
|
image: logosstorage/cs-codex-dist-tests:latest
|
|
imagePullPolicy: Always
|
|
resources:
|
|
requests:
|
|
memory: "1Gi"
|
|
env:
|
|
- name: KUBECONFIG
|
|
value: "/opt/kubeconfig.yaml"
|
|
- name: LOGPATH
|
|
value: "/var/log/codex-${TEST_TYPE}"
|
|
- name: BRANCH
|
|
value: "${BRANCH}"
|
|
- name: SOURCE
|
|
value: "${SOURCE}"
|
|
- name: RUNID
|
|
value: "${RUNID}"
|
|
- name: CODEXDOCKERIMAGE
|
|
value: "${CODEXDOCKERIMAGE}"
|
|
- name: TESTID
|
|
value: "${TESTID}"
|
|
- name: TESTS_TYPE
|
|
value: "${TEST_TYPE}"
|
|
volumeMounts:
|
|
- name: kubeconfig
|
|
mountPath: /opt/kubeconfig.yaml
|
|
subPath: kubeconfig.yaml
|
|
- name: logs
|
|
mountPath: /var/log/codex-${TEST_TYPE}
|
|
args: ["dotnet", "test", "Tests/CodexReleaseTests"]
|
|
restartPolicy: Never
|
|
volumes:
|
|
- name: kubeconfig
|
|
secret:
|
|
secretName: codex-dist-tests-app-kubeconfig
|
|
- name: logs
|
|
hostPath:
|
|
path: /var/log/codex-${TEST_TYPE}
|