Skip to content

Commit

Permalink
chore: debug CI
Browse files Browse the repository at this point in the history
Signed-off-by: Niladri Halder <[email protected]>
  • Loading branch information
niladrih committed Nov 11, 2024
1 parent 6bc1742 commit d857471
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/k8s-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ jobs:
k8s-ci:
runs-on: ubuntu-latest
steps:
- name: Bind mount /dev/sda1 to /nix
run: |
mkdir -p /nix
mount --bind /mnt /nix
lsblk
- uses: actions/checkout@v4
with:
submodules: recursive
Expand Down Expand Up @@ -36,12 +41,15 @@ jobs:
run: nix-shell ./scripts/k8s/shell.nix --run "./scripts/k8s/load-images-to-kind.sh --tag ${{ steps.build.outputs.tag }} --trim-debug-suffix"
- name: Run Pytests
run: |
export UPGRADE_TARGET_VERSION=${{ steps.build.outputs.tag }}
export TEST_DIR=${{ steps.build.outputs.bin }}
nix-shell ./shell.nix --run "./scripts/python/test.sh"
nix-shell ./scripts/helm/shell.nix --run './scripts/helm/install.sh --hosted-chart --version "2.7.1" --wait'
lsblk
df -Th
nix-shell ./scripts/k8s/shell.nix --run "kubectl get pods -A -o wide"
- name: The job has failed
if: ${{ failure() }}
run: |
lsblk
df -Th
nix-shell ./scripts/k8s/shell.nix --run "kubectl get pods -A -o wide"
nix-shell ./scripts/k8s/shell.nix --run "kubectl -n mayastor logs -lopenebs.io/release=mayastor --all-containers=true"
Expand Down

0 comments on commit d857471

Please sign in to comment.