File tree Expand file tree Collapse file tree 8 files changed +169
-24
lines changed Expand file tree Collapse file tree 8 files changed +169
-24
lines changed Original file line number Diff line number Diff line change 1+ name : Build Noobaa Image
2+ # This workflow builds the noobaa image and uploads it as an artifact.
3+ on : [push, pull_request]
4+
5+ jobs :
6+ build-noobaa-image :
7+ runs-on : ubuntu-latest
8+ timeout-minutes : 90
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.ref }}
11+ cancel-in-progress : true
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+
16+ - name : make noobaa image
17+ run : make test
18+
19+ - name : create docker artifact
20+ run : |
21+ docker save --output noobaa.tar noobaa
22+ docker save --output noobaa-tester.tar noobaa-tester
23+
24+ - name : upload noobaa docker image
25+ uses : actions/upload-artifact@v4
26+ with :
27+ name : noobaa-image
28+ path : noobaa.tar
29+ retention-days : " 1"
30+
31+ - name : upload noobaa-tester docker image
32+ uses : actions/upload-artifact@v4
33+ with :
34+ name : noobaa-tester
35+ path : noobaa-tester.tar
36+ retention-days : " 1"
Original file line number Diff line number Diff line change 11name : NSFS Ceph S3 Tests
2- on : [push, pull_request, workflow_dispatch]
2+ on :
3+ workflow_run :
4+ workflows : ["Build Noobaa Image"]
5+ types :
6+ - completed
37
48jobs :
59 nsfs-ceph-s3-tests :
913 group : ${{ github.workflow }}-${{ github.ref }}
1014 cancel-in-progress : true
1115 steps :
12- - name : Checkout noobaa-core
16+ - name : Checkout
1317 uses : actions/checkout@v4
1418 with :
15- repository : ' noobaa/noobaa-core'
19+ repository : noobaa/noobaa-core
1620 path : ' noobaa-core'
1721
22+ - name : Download artifact
23+ uses : actions/download-artifact@v4
24+ with :
25+ name : noobaa-tester
26+ path : /tmp
27+ run-id : ${{ github.event.workflow_run.id }}
28+ github-token : ${{ github.token }}
29+
30+ - name : Load image
31+ run : docker load --input /tmp/noobaa-tester.tar
32+
1833 - name : Run NSFS Ceph s3-tests
1934 run : |
2035 set -x
2136 cd ./noobaa-core
2237 mkdir -p logs/ceph-nsfs-test-logs
2338 chmod 777 logs/ceph-nsfs-test-logs
24- make test-nsfs-cephs3
39+ make test-nsfs-cephs3 -o tester
Original file line number Diff line number Diff line change 1- name : Ceph S3 Tests
2- on : [push, pull_request, workflow_dispatch]
1+ name : NSFS Ceph S3 Tests
2+ on :
3+ workflow_run :
4+ workflows : ["Build Noobaa Image"]
5+ types :
6+ - completed
37
48jobs :
5- ceph-s3-tests :
9+ nsfs- ceph-s3-tests :
610 runs-on : ubuntu-latest
711 timeout-minutes : 90
812 concurrency :
@@ -15,10 +19,21 @@ jobs:
1519 repository : ' noobaa/noobaa-core'
1620 path : ' noobaa-core'
1721
18- - name : Run Ceph s3-tests
22+ - name : Download artifact
23+ uses : actions/download-artifact@v4
24+ with :
25+ name : noobaa-tester
26+ path : /tmp
27+ run-id : ${{ github.event.workflow_run.id }}
28+ github-token : ${{ github.token }}
29+
30+ - name : Load image
31+ run : docker load --input /tmp/noobaa-tester.tar
32+
33+ - name : Run NSFS Ceph s3-tests
1934 run : |
2035 set -x
2136 cd ./noobaa-core
22- mkdir -p logs/ceph-test-logs
23- chmod 777 logs/ceph-test-logs
24- make test-cephs3
37+ mkdir -p logs/ceph-nsfs- test-logs
38+ chmod 777 logs/ceph-nsfs- test-logs
39+ make test-nsfs- cephs3 -o tester
Original file line number Diff line number Diff line change 11name : Non Containerized Unit Tests
2- on : [push, pull_request]
2+ on :
3+ workflow_run :
4+ workflows : ["Build Noobaa Image"]
5+ types :
6+ - completed
37
48jobs :
59 run-nc-unit-tests :
913 group : ${{ github.workflow }}-${{ github.ref }}
1014 cancel-in-progress : true
1115 steps :
12- - name : checkout
16+ - name : Checkout
1317 uses : actions/checkout@v4
1418
19+ - name : Download artifact
20+ uses : actions/download-artifact@v4
21+ with :
22+ name : noobaa-tester
23+ path : /tmp
24+ run-id : ${{ github.event.workflow_run.id }}
25+ github-token : ${{ github.token }}
26+
27+ - name : Load image
28+ run : docker load --input /tmp/noobaa-tester.tar
29+
1530 - name : Run Non Containerized Test
1631 run : |
17- make run-nc-tests
32+ make run-nc-tests -o tester
Original file line number Diff line number Diff line change 11name : Unit Tests with Postgres
2- on : [push, pull_request]
2+ on :
3+ workflow_run :
4+ workflows : ["Build Noobaa Image"]
5+ types :
6+ - completed
37
48jobs :
59 run-unit-tests-postgres :
10+ permissions : read-all
611 runs-on : ubuntu-latest
712 timeout-minutes : 90
813 concurrency :
1217 - name : Checkout
1318 uses : actions/checkout@v4
1419
20+ - name : Download artifact
21+ uses : actions/download-artifact@v4
22+ with :
23+ name : noobaa-tester
24+ path : /tmp
25+ run-id : ${{ github.event.workflow_run.id }}
26+ github-token : ${{ github.token }}
27+
28+ - name : Load image
29+ run : docker load --input /tmp/noobaa-tester.tar
30+
1531 - name : Run Unit Tests with Postgres
16- run : make test-postgres
32+ run : make test-postgres -o tester
Original file line number Diff line number Diff line change 11name : Build & Sanity SSL
2- on : [push, pull_request]
2+ on :
3+ workflow_run :
4+ workflows : ["Build Noobaa Image"]
5+ types :
6+ - completed
37
48jobs :
59 run-sanity-ssl-tests :
1216 - name : Checkout
1317 uses : actions/checkout@v4
1418
19+ - name : Download artifact
20+ uses : actions/download-artifact@v4
21+ with :
22+ name : noobaa-tester
23+ path : /tmp
24+ run-id : ${{ github.event.workflow_run.id }}
25+ github-token : ${{ github.token }}
26+
27+ - name : Load image
28+ run : docker load --input /tmp/noobaa-tester.tar
29+
1530 - name : Run Build & SSL Sanity Tests
1631 run : |
1732 set -x
1833 mkdir -p logs/sanity-test-logs
1934 chmod 777 logs/sanity-test-logs
20- make test-external-pg-sanity
35+ make test-external-pg-sanity -o tester
Original file line number Diff line number Diff line change 11name : Build & Sanity
2- on : [push, pull_request]
2+ on :
3+ workflow_run :
4+ workflows : ["Build Noobaa Image"]
5+ types :
6+ - completed
37
48jobs :
59 run-sanity-tests :
1216 - name : Checkout
1317 uses : actions/checkout@v4
1418
19+ - name : Download artifact
20+ uses : actions/download-artifact@v4
21+ with :
22+ name : noobaa-tester
23+ path : /tmp
24+ run-id : ${{ github.event.workflow_run.id }}
25+ github-token : ${{ github.token }}
26+
27+ - name : Load image
28+ run : docker load --input /tmp/noobaa-tester.tar
29+
1530 - name : Run Build & Sanity Tests
1631 run : |
1732 set -x
1833 mkdir -p logs/sanity-test-logs
1934 chmod 777 logs/sanity-test-logs
20- make test-sanity
35+ make test-sanity -o tester
Original file line number Diff line number Diff line change 11name : Unit Tests
2- on : [push, pull_request]
2+ on :
3+ workflow_run :
4+ workflows : ["Build Noobaa Image"]
5+ types :
6+ - completed
37
48jobs :
59 run-unit-tests :
913 group : ${{ github.workflow }}-${{ github.ref }}
1014 cancel-in-progress : true
1115 steps :
12- - name : checkout
16+ - name : Checkout
1317 uses : actions/checkout@v4
18+ with :
19+ repository : nadavMiz/noobaa-core
20+ path : ' noobaa-core'
21+
22+ - name : Download artifact
23+ uses : actions/download-artifact@v4
24+ with :
25+ name : noobaa-tester
26+ path : /tmp
27+ run-id : ${{ github.event.workflow_run.id }}
28+ github-token : ${{ github.token }}
29+
30+ - name : Load image
31+ run : docker load --input /tmp/noobaa-tester.tar
1432
1533 - name : Run Test
1634 run : |
17- make test
18- make root-perm-test
35+ make test -o tester
36+ make root-perm-test -o tester
You can’t perform that action at this time.
0 commit comments