Skip to content

Commit c363d91

Browse files
thesuperzapperhenschwartz
authored andcommitted
Move commits from kubeflow/kubeflow
Signed-off-by: Hen Schwartz (EXT-Nokia) <[email protected]>
2 parents 51ea98a + e309d84 commit c363d91

File tree

1,049 files changed

+207361
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,049 files changed

+207361
-0
lines changed
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
name: VWA Frontend Tests
2+
on:
3+
pull_request:
4+
paths:
5+
- components/crud-web-apps/volumes/frontend/**
6+
- releasing/version/VERSION
7+
branches:
8+
- main
9+
- notebooks-v1
10+
11+
jobs:
12+
frontend-format-lint-check:
13+
name: Check code format and lint
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Check out code
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 16
23+
24+
- name: Check frontend code formatting
25+
run: |
26+
cd components/crud-web-apps/volumes/frontend
27+
npm i
28+
npm run format:check
29+
30+
- name: Check frontend code linting
31+
run: |
32+
cd components/crud-web-apps/volumes/frontend
33+
npm i
34+
npm run lint-check
35+
36+
frontend-unit-tests:
37+
runs-on: ubuntu-22.04
38+
name: Unit tests
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v4
42+
43+
- name: Setup node version to 16
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: 16
47+
48+
- name: Install Kubeflow common library dependecies
49+
run: |
50+
cd components/crud-web-apps/common/frontend/kubeflow-common-lib
51+
npm i
52+
npm run build
53+
npm link ./dist/kubeflow
54+
55+
- name: Install VWA dependencies
56+
run: |
57+
cd components/crud-web-apps/volumes/frontend
58+
npm i
59+
npm link kubeflow
60+
61+
- name: Run unit tests
62+
run: |
63+
cd components/crud-web-apps/volumes/frontend
64+
npm run test:prod
65+
66+
run-tests-in-chrome:
67+
name: UI tests in chrome
68+
runs-on: ubuntu-22.04
69+
steps:
70+
- name: Checkout
71+
uses: actions/checkout@v4
72+
73+
- name: Setup node version to 16
74+
uses: actions/setup-node@v4
75+
with:
76+
node-version: 16
77+
78+
- name: Install Kubeflow common library dependecies
79+
run: |
80+
cd components/crud-web-apps/common/frontend/kubeflow-common-lib
81+
npm i
82+
npm run build
83+
npm link ./dist/kubeflow
84+
85+
- name: Install VWA dependencies
86+
run: |
87+
cd components/crud-web-apps/volumes/frontend
88+
npm i
89+
npm link kubeflow
90+
91+
- name: Serve UI & run Cypress tests in Chrome
92+
uses: cypress-io/github-action@v6
93+
with:
94+
working-directory: components/crud-web-apps/volumes/frontend
95+
start: npm run serve
96+
install: false
97+
browser: chrome
98+
wait-on: "http://localhost:4200"
99+
100+
run-tests-in-firefox:
101+
name: UI tests in firefox
102+
runs-on: ubuntu-22.04
103+
steps:
104+
- name: Checkout
105+
uses: actions/checkout@v4
106+
107+
- name: Setup node version to 16
108+
uses: actions/setup-node@v4
109+
with:
110+
node-version: 16
111+
112+
- name: Install Kubeflow common library dependecies
113+
run: |
114+
cd components/crud-web-apps/common/frontend/kubeflow-common-lib
115+
npm i
116+
npm run build
117+
npm link ./dist/kubeflow
118+
119+
- name: Install VWA dependencies
120+
run: |
121+
cd components/crud-web-apps/volumes/frontend
122+
npm i
123+
npm link kubeflow
124+
125+
- name: Serve UI & run Cypress tests in Firefox
126+
uses: cypress-io/github-action@v6
127+
with:
128+
working-directory: components/crud-web-apps/volumes/frontend
129+
start: npm run serve
130+
install: false
131+
browser: firefox
132+
wait-on: "http://localhost:4200"
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: VWA Integration Test
2+
on:
3+
pull_request:
4+
paths:
5+
- components/crud-web-apps/volumes/**
6+
- components/crud-web-apps/common/**
7+
- releasing/version/VERSION
8+
branches:
9+
- main
10+
- notebooks-v1
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
14+
cancel-in-progress: true
15+
16+
env:
17+
IMG: ghcr.io/kubeflow/notebooks/volumes-web-app
18+
TAG: integration-test
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-22.04
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Setup Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
30+
- name: Build VWA Image
31+
run: |
32+
cd components/crud-web-apps/volumes
33+
make docker-build-multi-arch
34+
35+
- name: Install KinD
36+
run: ./components/testing/gh-actions/install_kind.sh
37+
38+
- name: Create KinD Cluster
39+
run: kind create cluster --config components/testing/gh-actions/kind-1-25.yaml
40+
41+
- name: Load Image into KinD Cluster
42+
run: |
43+
kind load docker-image "${IMG}:${TAG}"
44+
45+
- name: Install kustomize
46+
run: ./components/testing/gh-actions/install_kustomize.sh
47+
48+
- name: Install Istio
49+
run: ./components/testing/gh-actions/install_istio.sh
50+
51+
- name: Build & Apply manifests
52+
run: |
53+
cd components/crud-web-apps/volumes/manifests
54+
kubectl create ns kubeflow
55+
56+
export CURRENT_IMAGE="${IMG}"
57+
export PR_IMAGE="${IMG}:${TAG}"
58+
59+
# escape "." in the image names, as it is a special characters in sed
60+
export CURRENT_IMAGE=$(echo "$CURRENT_IMAGE" | sed 's|\.|\\\.|g')
61+
export PR_IMAGE=$(echo "$PR_IMAGE" | sed 's|\.|\\\.|g')
62+
63+
kustomize build overlays/istio \
64+
| sed "s|${CURRENT_IMAGE}:[a-zA-Z0-9_.-]*|${PR_IMAGE}|g" \
65+
| kubectl apply -f -
66+
67+
kubectl wait pods -n kubeflow -l app=volumes-web-app --for=condition=Ready --timeout=300s
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: VWA Multi-Arch Build Test
2+
on:
3+
pull_request:
4+
paths:
5+
- components/crud-web-apps/volumes/**
6+
- components/crud-web-apps/common/**
7+
- releasing/version/VERSION
8+
branches:
9+
- main
10+
- notebooks-v1
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
14+
cancel-in-progress: true
15+
16+
env:
17+
IMG: ghcr.io/kubeflow/notebooks/volumes-web-app
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-22.04
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Setup QEMU
27+
uses: docker/setup-qemu-action@v3
28+
29+
- name: Setup Docker Buildx
30+
uses: docker/setup-buildx-action@v3
31+
32+
- name: Build multi-arch Image
33+
run: |
34+
cd components/crud-web-apps/volumes
35+
ARCH=linux/amd64 make docker-build-multi-arch
36+
ARCH=linux/ppc64le make docker-build-multi-arch
37+
ARCH=linux/arm64/v8 make docker-build-multi-arch

components/common/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/kubeflow/kubeflow/components/common
2+
3+
go 1.12

0 commit comments

Comments
 (0)