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

Release v0.0.4 #60

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[submodule "testsuite/submodules/slurm-docker-cluster"]
path = testsuite/submodules/slurm-docker-cluster
url = [email protected]:DataWorkflowServices/slurm-docker-cluster.git
[submodule "testsuite/submodules/dws-test-driver"]
path = testsuite/submodules/dws-test-driver
url = [email protected]:DataWorkflowServices/dws-test-driver.git
[submodule "testsuite/submodules/dws"]
path = testsuite/submodules/dws
url = [email protected]:DataWorkflowServices/dws.git
[submodule "testsuite/submodules/dws-test-driver"]
path = testsuite/submodules/dws-test-driver
url = [email protected]:DataWorkflowServices/dws-test-driver.git
3 changes: 3 additions & 0 deletions src/burst_buffer/burst_buffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ end
function DWS:kubectl_cache_home()

local dir_exists = function(dname)
if dname == nil or dname == '' then
return false
end
local cmd = "test -d " .. dname
local done, _ = self:io_popen(cmd)
return done
Expand Down
5 changes: 4 additions & 1 deletion testsuite/integration/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ FROM rockylinux:9 AS testbase

COPY requirements.txt /requirements.txt

ARG TARGETARCH
ARG TARGETOS

RUN sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/rocky* && \
sed -i 's|^#baseurl=|baseurl=|' /etc/yum.repos.d/rocky*

Expand All @@ -13,7 +16,7 @@ RUN yum update -y && \
dnf check-update && \
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo && \
dnf install -y docker-ce-cli && \
curl -k -LO "https://dl.k8s.io/release/$(curl -k -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
curl -k -LO "https://dl.k8s.io/release/$(curl -k -L -s https://dl.k8s.io/release/stable.txt)/bin/${TARGETOS}/${TARGETARCH}/kubectl" && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
pip install -r requirements.txt

Expand Down
6 changes: 3 additions & 3 deletions testsuite/integration/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2022-2023 Hewlett Packard Enterprise Development LP
# Copyright 2022-2024 Hewlett Packard Enterprise Development LP
# Other additional copyright holders may be indicated within.
#
# The entirety of this work is licensed under the Apache License,
Expand Down Expand Up @@ -50,8 +50,8 @@ setup-dws-test-driver:
@{\
set -e ; \
cd ../submodules/dws-test-driver ; \
docker buildx build -t local/dws-test-driver:test --load . ; \
IMAGE_TAG_BASE=local/dws-test-driver VERSION=test KIND_CLUSTER=dws make kind-push deploy ; \
docker buildx build -t ghcr.io/dataworkflowservices/dws-test-driver:local-test --load . ; \
VERSION=local-test KIND_CLUSTER=dws make kind-push deploy ; \
kubectl wait deployment --timeout=60s -n dws-test-system dws-test-driver-controller-manager --for condition=Available=True ; \
}

Expand Down
8 changes: 4 additions & 4 deletions testsuite/integration/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2022 Hewlett Packard Enterprise Development LP
# Copyright 2022-2024 Hewlett Packard Enterprise Development LP
# Other additional copyright holders may be indicated within.
#
# The entirety of this work is licensed under the Apache License,
Expand All @@ -24,8 +24,8 @@ services:
image: local/integration-test:${TAG:-test}
build:
context: .
cache_from:
- "/tmp/.buildx-cache"
# cache_from:
# - local/integration-test:test
container_name: integration-test
privileged: true
hostname: integration-test
Expand All @@ -40,4 +40,4 @@ services:
networks:
default:
name: slurm_default
external: true
external: true
6 changes: 3 additions & 3 deletions testsuite/integration/kind/kind.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

#
# Copyright 2022-2023 Hewlett Packard Enterprise Development LP
# Copyright 2022-2024 Hewlett Packard Enterprise Development LP
# Other additional copyright holders may be indicated within.
#
# The entirety of this work is licensed under the Apache License,
Expand Down Expand Up @@ -52,7 +52,7 @@ install_dependencies () {

# Pull cert-manager into the local cache and push into KIND. Sometimes
# the KIND env cannot pull it from upstream.
CERTVER=v1.11.1
CERTVER=v1.13.1
for part in controller webhook cainjector
do
image=quay.io/jetstack/cert-manager-$part:$CERTVER
Expand All @@ -71,7 +71,7 @@ install_dependencies () {
prep_kubeconfig () {
set -e
cp ~/.kube/config kubeconfig
yq -i e '(.clusters | map(select(.name=="kind-dws")))[0].cluster.server |= "https://dws-control-plane:6443"' kubeconfig
KUBECONFIG=kubeconfig kubectl config set-cluster kind-dws --server https://dws-control-plane:6443
chmod a+r kubeconfig
KUBECONFIG=kubeconfig kubectl config use-context kind-dws
KUBECONFIG=kubeconfig kubectl config set-context --current --namespace=slurm
Expand Down
8 changes: 4 additions & 4 deletions testsuite/integration/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pytest == 7
pytest-bdd == 6
pytest-html == 3
docker == 6
kubernetes >= 25.3
tenacity == 8
pytest-html == 4
docker == 7
kubernetes >= 27.2
tenacity == 8
6 changes: 3 additions & 3 deletions testsuite/integration/slurm/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2022 Hewlett Packard Enterprise Development LP
# Copyright 2022-2024 Hewlett Packard Enterprise Development LP
# Other additional copyright holders may be indicated within.
#
# The entirety of this work is licensed under the Apache License,
Expand Down Expand Up @@ -57,8 +57,8 @@ services:
context: ../../submodules/slurm-docker-cluster
args:
SLURM_TAG: ${SLURM_TAG:-slurm-22-05-4-1}
cache_from:
- "/tmp/.buildx-cache"
#cache_from:
# - slurm-bb:slurm-22-05-4-1
command: ["slurmctld"]
container_name: slurmctld
hostname: slurmctld
Expand Down
2 changes: 1 addition & 1 deletion testsuite/submodules/dws
Submodule dws updated 1053 files
2 changes: 1 addition & 1 deletion testsuite/submodules/dws-test-driver
Submodule dws-test-driver updated 693 files
2 changes: 1 addition & 1 deletion testsuite/submodules/slurm-docker-cluster
Loading