Skip to content

Commit

Permalink
Keep mount directories created in advance
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishad-M-I-M committed May 18, 2024
1 parent 52bf1d2 commit fb38bd4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:

- name: Run unit test
run: |
mkdir /var/tmp/worker0 /var/tmp/worker1 /var/tmp/worker2 /var/tmp/worker3
chmod +x ./.github/workflows/resources/unit-test.sh
./.github/workflows/resources/unit-test.sh
Expand Down Expand Up @@ -85,5 +86,6 @@ jobs:

- name: K8S integration tests
run: |
mkdir /var/tmp/worker0 /var/tmp/worker1
chmod +x test-k8s.sh
./test-k8s.sh
3 changes: 3 additions & 0 deletions start-k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ cur_timestamp="$(date +%s)"
end_timestamp="$((cur_timestamp + TIMEOUT_SECONDS))"
while true; do
if [ "$(date +%s)" -gt "$end_timestamp" ]; then
for pod in $(kubectl get pods -o jsonpath='{.items[*].metadata.name}'); do
kubectl describe pod "$pod"
done
echo "Pods are not running"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion test-k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ build_and_run_on_k8s() {
set -e

./start-k8s.sh --META_DB_PATH "${TEST_ROOT}/env/databases/metadb" \
--PERFORMANCE_DB_PATH performancedb_path "${TEST_ROOT}/env/databases/performancedb" \
--PERFORMANCE_DB_PATH "${TEST_ROOT}/env/databases/performancedb" \
--DATA_PATH "${TEST_ROOT}/env/data" \
--LOG_PATH "${LOG_DIR}" \
--AGGREGATE_PATH "${TEST_ROOT}/env/aggregate" \
Expand Down
Empty file.
Empty file.
Empty file.

0 comments on commit fb38bd4

Please sign in to comment.