Skip to content

Commit 6f8e127

Browse files
ci(bdd): use larger runner for testing
Signed-off-by: Tiago Castro <[email protected]>
1 parent 1b1b4aa commit 6f8e127

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/k8s-ci.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: K8s CI
22
on:
33
workflow_call:
4+
push:
5+
branches:
6+
- pytest
47

58
jobs:
69
k8s-ci:
7-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-latest-16-cores
811
steps:
912
- name: Bind mount /dev/sda1 to /nix
1013
run: |
@@ -23,12 +26,13 @@ jobs:
2326
export NIX_PATH=nixpkgs=$(jq '.nixpkgs.url' nix/sources.json -r)
2427
echo "NIX_PATH=$NIX_PATH" >> $GITHUB_ENV
2528
nix-shell ./scripts/k8s/shell.nix --run "echo"
29+
nix-shell ./scripts/helm/shell.nix --run "echo"
2630
- name: Build binaries and images
2731
id: build
2832
run: |
29-
TAG=$(nix-shell ./shell.nix --run './scripts/python/generate-test-tag.sh')
33+
TAG=$(nix-shell ./scripts/helm/shell.nix --run './scripts/python/generate-test-tag.sh')
3034
TEST_DIR=$(realpath $(mktemp -d ./test-dir-XXXXXX))
31-
nix-shell ./shell.nix --run "./scripts/python/tag-chart.sh $TAG"
35+
nix-shell ./scripts/helm/shell.nix --run "./scripts/python/tag-chart.sh $TAG"
3236
RUSTFLAGS="-C debuginfo=0 -C strip=debuginfo" ./scripts/release.sh --tag $TAG --build-binary-out $TEST_DIR --no-static-linking --skip-publish --debug
3337
echo "tag=$TAG" >> $GITHUB_OUTPUT
3438
echo "bin=$TEST_DIR" >> $GITHUB_OUTPUT
@@ -50,7 +54,7 @@ jobs:
5054
nix-shell ./scripts/k8s/shell.nix --run "kubectl -n mayastor logs -l app=upgrade --all-containers=true"
5155
5256
k8s-ci-vm:
53-
runs-on: ubuntu-latest
57+
runs-on: ubuntu-latest-16-cores
5458
steps:
5559
- uses: actions/checkout@v4
5660
- uses: DeterminateSystems/nix-installer-action@v11
@@ -61,8 +65,8 @@ jobs:
6165
run: |
6266
export NIX_PATH=nixpkgs=$(jq '.nixpkgs.url' nix/sources.json -r)
6367
echo "NIX_PATH=$NIX_PATH" >> $GITHUB_ENV
64-
nix-shell ./scripts/k8s/shell.nix --run "echo"
68+
nix-shell ./scripts/helm/shell.nix --run "echo"
6569
- name: Test on VM
6670
run: |
67-
nix-shell ./scripts/k8s/shell.nix --run "cd chart; helm dependency update"
71+
nix-shell ./scripts/helm/shell.nix --run "cd chart; helm dependency update"
6872
nix-build ./tests/helm/test.nix --option sandbox false

0 commit comments

Comments
 (0)