Skip to content
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

changed resource name for conformance tests #2

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3dfd14a
conformance 1.2.1 (adds storage class)
fabricebrito Feb 9, 2022
557babb
update for conformance againts 1.2.0
fabricebrito Feb 9, 2022
45b869d
conformance 1.2.0
fabricebrito Feb 10, 2022
0b283f5
Update README.md
fabricebrito Feb 10, 2022
769ac00
Update README.md
fabricebrito Feb 10, 2022
248ba11
Update README.md
fabricebrito Feb 10, 2022
51a15c5
Update README.md
fabricebrito Feb 10, 2022
12a3361
instructions to copy the badges
fabricebrito Feb 10, 2022
47d4ed4
tidy badges
fabricebrito Feb 10, 2022
0f6b9da
conformance
fabricebrito Feb 10, 2022
e97210e
badges
fabricebrito Feb 14, 2022
7825b42
conformance jobs
fabricebrito Feb 14, 2022
571c590
add badges for 1.1.0
fabricebrito Feb 14, 2022
60c4206
fixes badges for 1.1.0
fabricebrito Feb 14, 2022
7d9f3d6
badges 1.0.2
fabricebrito Feb 14, 2022
ce26a0d
fixes badges for 1.0.2
fabricebrito Feb 14, 2022
14a3689
fixes badges
fabricebrito Feb 14, 2022
5580300
Update README.md
fabricebrito May 12, 2022
7ea7986
gitignore
fabricebrito Sep 28, 2022
9141564
Merge branch 'conformance-1.2.1' of https://github.com/Terradue/calri…
fabricebrito Sep 28, 2022
8831587
Merge branch 'main' into conformance-1.2.1
emmanuelmathot Nov 10, 2022
c0ec099
changed resource name for conformance tests
emmanuelmathot Nov 10, 2022
c31c6d6
updated changelog
emmanuelmathot Feb 2, 2023
2ea23ec
must retry if IncompleteStatusException
emmanuelmathot Feb 2, 2023
77cb435
Merge pull request #139 from Terradue/feature/pod-exit-code-logs
fabricebrito Feb 3, 2023
ee5be1b
generic for minikube
emmanuelmathot Feb 3, 2023
0cb8f6a
update to latest cwltool
emmanuelmathot Feb 3, 2023
4312d94
Merge branch 'master' into dep-updates
emmanuelmathot Feb 3, 2023
b242baa
RETRY_ATTEMPTS decreased for faster tests
emmanuelmathot Feb 3, 2023
48569b8
restored freezegun
emmanuelmathot Feb 3, 2023
e9b92ec
Merge pull request #142 from Duke-GCB/dep-updates
emmanuelmathot Feb 3, 2023
baabbb2
ready to release 0.12.0
emmanuelmathot Feb 13, 2023
60b2947
fix release dep
emmanuelmathot Feb 13, 2023
337569c
Merge branch 'master' into conformance-1.2.1
emmanuelmathot Apr 3, 2023
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
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
command: |
. venv/bin/activate
nose2
environment:
RETRY_ATTEMPTS: 1
deploy:
docker:
- image: circleci/python:3.7
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ tests/__pycache__/
.vscode
env37
build
*.egg
*.egg
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [v0.12.0] - 2023-02-13

### Added

- adds an argument `--tool-logs-basepath <local_folder_path>` that enable the tool to fetch the pod logs by tool specified in the workflow (PR #139)
- returns proper exit code when the pod fails (PR #139)

### Changed

- contraints the pod to complete with a proper termination status or raise an exception. (PR #139)

## [v0.11.0] - 2022-11-10

Expand Down
2 changes: 1 addition & 1 deletion calrissian/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def follow_logs(self):
log.info('[{}] follow_logs end'.format(pod_name))


@retry_exponential_if_exception_type((ApiException, HTTPError,), log)
@retry_exponential_if_exception_type((ApiException, HTTPError, IncompleteStatusException), log)
def wait_for_completion(self) -> CompletionResult:
w = watch.Watch()
for event in w.stream(self.core_api_instance.list_namespaced_pod, self.namespace, field_selector=self._get_pod_field_selector()):
Expand Down
23 changes: 17 additions & 6 deletions conformance/ConformanceTestsJob-1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ metadata:
name: conformance-output-data-1-0
spec:
accessModes:
- ReadWriteOnce
- ReadWriteMany
resources:
requests:
storage: 1Gi
storageClassName: openebs-kernel-nfs-scw
---
apiVersion: batch/v1
kind: Job
Expand All @@ -27,13 +28,23 @@ spec:
name: conformance-output-data-1-0
containers:
- name: tests-1-0
image: calrissian:conformance
image: terradue/calrissian:conformance
workingDir: "/conformance/common-workflow-language-1.0.2"
command: ["./run_test.sh"]
command: ["cwltest"]
args:
- "RUNNER=calrissian"
- "--verbose"
- "EXTRA=--max-ram 8G --max-cores 4 --default-container debian:stretch-slim"
- "--test"
- "/conformance/common-workflow-language-1.0.2/v1.0/conformance_test_v1.0.yaml"
- "--tool"
- "calrissian"
- "--badgedir"
- "/output/badges-1.0.2"
- "--"
- "--max-ram"
- "8G"
- "--max-cores"
- "4"
- "--default-container"
- "debian:stretch-slim"
env:
- name: CALRISSIAN_POD_NAME
valueFrom:
Expand Down
24 changes: 18 additions & 6 deletions conformance/ConformanceTestsJob-1.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ metadata:
name: conformance-output-data-1-1
spec:
accessModes:
- ReadWriteOnce
- ReadWriteMany
resources:
requests:
storage: 1Gi
storageClassName: openebs-kernel-nfs-scw

---
apiVersion: batch/v1
kind: Job
Expand All @@ -27,13 +29,23 @@ spec:
name: conformance-output-data-1-1
containers:
- name: tests-1-1
image: calrissian:conformance
image: terradue/calrissian:conformance
workingDir: "/conformance/cwl-v1.1-1.1.0"
command: ["./run_test.sh"]
command: ["cwltest"]
args:
- "RUNNER=calrissian"
- "--verbose"
- "EXTRA=--max-ram 8G --max-cores 4 --default-container debian:stretch-slim"
- "--test"
- "/conformance/cwl-v1.1-1.1.0/conformance_tests.yaml"
- "--tool"
- "calrissian"
- "--badgedir"
- "/output/badges-1.1.0"
- "--"
- "--max-ram"
- "8G"
- "--max-cores"
- "4"
- "--default-container"
- "debian:stretch-slim"
env:
- name: CALRISSIAN_POD_NAME
valueFrom:
Expand Down
70 changes: 70 additions & 0 deletions conformance/ConformanceTestsJob-1.2.1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: conformance-output-data-1-2-1
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi

---
apiVersion: batch/v1
kind: Job
metadata:
name: conformance-tests-1-2-1
spec:
backoffLimit: 0
template:
spec:
initContainers:
- name: prep-1-2-1
image: alpine:3.10
command: ["chmod", "777", "/output"]
volumeMounts:
- mountPath: /output
name: conformance-output-data-1-2-1
containers:
- name: tests-1-2-1
image: terradue/calrissian:conformance
workingDir: "/conformance/cwl-v1.2-1.2.1_proposed"
command: ["cwltest"]
args:
- "--test"
- "/conformance/cwl-v1.2-1.2.1_proposed/conformance_tests.yaml"
- "--tool"
- "calrissian"
- "--badgedir"
- "/output/badges-1.2.1_proposed"
- "--verbose"
- "--"
- "--max-ram"
- "8G"
- "--max-cores"
- "4"
- "--default-container"
- "debian:stretch-slim"
env:
- name: CALRISSIAN_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: TMPDIR
value: "/output"
volumeMounts:
- mountPath: /conformance
name: conformance-test-data-1-2-1
readOnly: true
- mountPath: /output
name: conformance-output-data-1-2-1
restartPolicy: Never
volumes:
- name: conformance-test-data-1-2-1
persistentVolumeClaim:
claimName: conformance-test-data-1-2-1
readOnly: true
- name: conformance-output-data-1-2-1
persistentVolumeClaim:
claimName: conformance-output-data-1-2-1
71 changes: 71 additions & 0 deletions conformance/ConformanceTestsJob-1.2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: conformance-output-data-1-2
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi

---
apiVersion: batch/v1
kind: Job
metadata:
name: conformance-tests-1-2
spec:
backoffLimit: 0
template:
spec:
initContainers:
- name: prep-1-2
image: alpine:3.10
command: ["chmod", "777", "/output"]
volumeMounts:
- mountPath: /output
name: conformance-output-data-1-2
containers:
- name: tests-1-2
image: calrissian:conformance
workingDir: "/conformance/cwl-v1.2-1.2.0"
command: ["cwltest"]
args:
- "--test"
- "/conformance/cwl-v1.2-1.2.0/conformance_tests.yaml"
- "--tool"
- "calrissian"
- "--badgedir"
- "/output/badges-1.2.0"
- "--"
- "--max-ram"
- "8G"
- "--max-cores"
- "4"
- "--default-container"
- "debian:stretch-slim"
env:
- name: CALRISSIAN_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: RETRY_ATTEMPTS
value: "1"
- name: TMPDIR
value: "/output"
volumeMounts:
- mountPath: /conformance
name: conformance-test-data-1-2
readOnly: true
- mountPath: /output
name: conformance-output-data-1-2
restartPolicy: Never
volumes:
- name: conformance-test-data-1-2
persistentVolumeClaim:
claimName: conformance-test-data-1-2
readOnly: true
- name: conformance-output-data-1-2
persistentVolumeClaim:
claimName: conformance-output-data-1-2
Loading