Skip to content

Commit 94bd5cf

Browse files
Arief Rahmansyahdeadlycoconuts
andauthored
chore(ui): Upgrade UI dependencies (#384)
* Upgrade UI deps * Update node version * Update js packages * Update turing github cicd file * Remove helm-chart release workflow * Update ensembler job and service workflows * Update setup-python action in turing workflow * Make setup-go optional for certain test-e2e test runs * Update python caching in go actions * Update cluster setup and publishing actions * Update artifact uploading action * Remove unsupported conda cache type from ensembler job and service workflows * Update docker login actions * Update k8s await workloads action * Add engines field in package.json * Update github workflow publish step to use local github file definition * Deprecate ReactDOM.render * Replace EuiLoadingContent with EuiSkeletonText * Import queryString directly from package instead of individual functions * Update imports from react-collapsed * Fix all tables * Remove deprecated table props * Remove deprecated hasActions prop * Update MLP version * Downgrade eui package version * Refactor EuiDescriptionList column width styles * Remove unused styles for standard exp engine config table * Add additional spacer to realign accordion title and icon * Upgrade caraml-dev/ui-lib and add comments --------- Co-authored-by: ewezy <ziyi.ewe@gojek.com>
1 parent bb73a1f commit 94bd5cf

File tree

47 files changed

+4702
-4825
lines changed

Some content is hidden

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

47 files changed

+4702
-4825
lines changed

.github/actions/build-cluster-init/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ runs:
3131
cluster-init:${{ steps.build-image.outputs.cluster-init-version }}
3232
3333
- name: Publish Artifact
34-
uses: actions/upload-artifact@v2
34+
uses: actions/upload-artifact@v4
3535
with:
3636
name: cluster-init.${{ steps.build-image.outputs.cluster-init-version }}.tar
3737
path: cluster-init.${{ steps.build-image.outputs.cluster-init-version }}.tar

.github/actions/setup-test-cluster/action.yaml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,28 @@ runs:
5959
using: composite
6060
steps:
6161
- name: Set up Go
62-
uses: actions/setup-go@v4
62+
uses: actions/setup-go@v5
6363
with:
6464
go-version: ${{ inputs.go-version }}
65+
cache-dependency-path: api/go.sum
6566

6667
- name: Download Turing API Docker tar archive
67-
uses: actions/download-artifact@v2
68+
uses: actions/download-artifact@v4
6869
with:
6970
name: ${{ inputs.turing_api_tar_archive_name }}
7071

7172
- name: Download Turing Router Docker tar archive
72-
uses: actions/download-artifact@v2
73+
uses: actions/download-artifact@v4
7374
with:
7475
name: ${{ inputs.turing_router_tar_archive_name }}
7576

7677
- name: Download Experiment Engine Plugin Docker tar archive
77-
uses: actions/download-artifact@v2
78+
uses: actions/download-artifact@v4
7879
with:
7980
name: ${{ inputs.experiment_engine_plugin_archive_name }}
8081

8182
- name: Download Cluster Init Docker tar archive
82-
uses: actions/download-artifact@v2
83+
uses: actions/download-artifact@v4
8384
with:
8485
name: ${{ inputs.cluster_init_tar_archive_name }}
8586

@@ -209,7 +210,7 @@ runs:
209210
kubectl apply -f infra/e2e/turing.mockserver.yaml
210211
211212
- name: Run action await k8 workloads
212-
uses: jupyterhub/action-k8s-await-workloads@v1
213+
uses: jupyterhub/action-k8s-await-workloads@v3
213214
id: wait-for-deployment
214215
with:
215216
workloads: >-
@@ -240,11 +241,3 @@ runs:
240241
--request POST \
241242
--data @payload.json \
242243
http://turing-gateway.127.0.0.1.nip.io/api/v1/projects
243-
244-
- name: Cache Test Dependencies
245-
uses: actions/cache@v2
246-
with:
247-
path: api/.go/pkg/mod/
248-
key: |
249-
gomod-${{ hashFiles('api/go.mod') }}
250-
restore-keys: gomod-

.github/workflows/cluster-init.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
outputs:
3030
release-type: ${{ steps.release-rules.outputs.release-type }}
3131
steps:
32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3333
- id: release-rules
3434
uses: ./.github/actions/release-rules
3535
with:
@@ -41,7 +41,7 @@ jobs:
4141
cluster-init-version: ${{ steps.build-cluster-init.outputs.cluster-init-version }}
4242
steps:
4343
- name: Check out code
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
4545
with:
4646
fetch-depth: 0
4747

@@ -62,10 +62,10 @@ jobs:
6262
- build-cluster-init
6363
steps:
6464
- name: Check out code
65-
uses: actions/checkout@v3
65+
uses: actions/checkout@v4
6666

6767
- name: Download Cluster Init Docker tar archieve
68-
uses: actions/download-artifact@v2
68+
uses: actions/download-artifact@v4
6969
with:
7070
name: cluster-init.${{ env.CLUSTER_INIT_VERSION }}.tar
7171

@@ -130,19 +130,19 @@ jobs:
130130
- build-cluster-init
131131
- test-e2e
132132
steps:
133-
- uses: actions/checkout@v3
133+
- uses: actions/checkout@v4
134134
with:
135135
fetch-depth: 0
136136

137137
- name: Log in to the Container registry
138-
uses: docker/login-action@v1
138+
uses: docker/login-action@v3
139139
with:
140140
registry: ghcr.io
141141
username: ${{ github.actor }}
142142
password: ${{ secrets.GITHUB_TOKEN }}
143143

144144
- name: Download Cluster Init Docker tar archieve
145-
uses: actions/download-artifact@v2
145+
uses: actions/download-artifact@v4
146146
with:
147147
name: cluster-init.${{ needs.build-cluster-init.outputs.cluster-init-version }}.tar
148148

.github/workflows/fluentd-plugin.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
outputs:
2222
release-type: ${{ steps.release-rules.outputs.release-type }}
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- id: release-rules
2626
uses: ./.github/actions/release-rules
2727
with:
@@ -46,12 +46,12 @@ jobs:
4646
needs:
4747
- release-rules
4848
steps:
49-
- uses: actions/checkout@v3
49+
- uses: actions/checkout@v4
5050
with:
5151
fetch-depth: 0
5252

5353
- name: Log in to the Container registry
54-
uses: docker/login-action@v1
54+
uses: docker/login-action@v3
5555
with:
5656
registry: ghcr.io
5757
username: ${{ github.actor }}

.github/workflows/helm-chart.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/pyfunc-ensembler-job.yaml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,16 @@ jobs:
3333
python-version: ["3.8", "3.9", "3.10"]
3434

3535
steps:
36-
- uses: actions/checkout@v3
36+
- uses: actions/checkout@v4
3737

3838
- name: Setup Python ${{ matrix.python-version }}
39-
uses: actions/setup-python@v2
39+
uses: actions/setup-python@v5
4040
with:
4141
python-version: ${{ matrix.python-version }}
42+
cache-dependency-path: |
43+
engines/pyfunc-ensembler-job/env-${{ matrix.python-version }}.yaml
44+
engines/pyfunc-ensembler-job/requirements.txt
45+
engines/pyfunc-ensembler-job/requirements.dev.txt
4246
4347
- name: Setup Java
4448
uses: actions/setup-java@v2
@@ -51,14 +55,6 @@ jobs:
5155
with:
5256
auto-update-conda: true
5357

54-
- name: Cache Conda environment
55-
uses: actions/cache@v2
56-
with:
57-
path: engines/pyfunc-ensembler-job/env
58-
key: |
59-
conda-${{ hashFiles('engines/pyfunc-ensembler-job/env-${{ matrix.python-version }}.yaml') }}-${{ hashFiles('engines/pyfunc-ensembler-job/requirements.txt') }}-${{ hashFiles('engines/pyfunc-ensembler-job/requirements.dev.txt') }}
60-
restore-keys: conda-
61-
6258
- name: Run Tests
6359
working-directory: engines/pyfunc-ensembler-job
6460
run: |
@@ -70,7 +66,7 @@ jobs:
7066
outputs:
7167
release-type: ${{ steps.release-rules.outputs.release-type }}
7268
steps:
73-
- uses: actions/checkout@v3
69+
- uses: actions/checkout@v4
7470
- id: release-rules
7571
uses: ./.github/actions/release-rules
7672
with:
@@ -97,12 +93,12 @@ jobs:
9793
- release-rules
9894
- test
9995
steps:
100-
- uses: actions/checkout@v3
96+
- uses: actions/checkout@v4
10197
with:
10298
fetch-depth: 0
10399

104100
- name: Log in to the Container registry
105-
uses: docker/login-action@v1
101+
uses: docker/login-action@v3
106102
with:
107103
registry: ghcr.io
108104
username: ${{ github.actor }}

.github/workflows/pyfunc-ensembler-service.yaml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,22 @@ jobs:
3333
python-version: ["3.8", "3.9", "3.10"]
3434

3535
steps:
36-
- uses: actions/checkout@v3
36+
- uses: actions/checkout@v4
3737

3838
- name: Setup Python ${{ matrix.python-version }}
39-
uses: actions/setup-python@v2
39+
uses: actions/setup-python@v5
4040
with:
4141
python-version: ${{ matrix.python-version }}
42+
cache-dependency-path: |
43+
engines/pyfunc-ensembler-service/env-${{ matrix.python-version }}.yaml
44+
engines/pyfunc-ensembler-service/requirements.txt
45+
engines/pyfunc-ensembler-service/requirements.dev.txt
4246
4347
- name: Setup Conda
4448
uses: conda-incubator/setup-miniconda@v2
4549
with:
4650
auto-update-conda: true
4751

48-
- name: Cache Conda environment
49-
uses: actions/cache@v2
50-
with:
51-
path: engines/pyfunc-ensembler-service/env
52-
key: |
53-
conda-${{ hashFiles('engines/pyfunc-ensembler-service/env-${{ matrix.python-version }}.yaml') }}-${{ hashFiles('engines/pyfunc-ensembler-service/requirements.txt') }}-${{ hashFiles('engines/pyfunc-ensembler-service/requirements.dev.txt') }}
54-
restore-keys: conda-
55-
5652
- name: Run Tests
5753
working-directory: engines/pyfunc-ensembler-service
5854
run: |
@@ -64,7 +60,7 @@ jobs:
6460
outputs:
6561
release-type: ${{ steps.release-rules.outputs.release-type }}
6662
steps:
67-
- uses: actions/checkout@v3
63+
- uses: actions/checkout@v4
6864
- id: release-rules
6965
uses: ./.github/actions/release-rules
7066
with:
@@ -91,12 +87,12 @@ jobs:
9187
- release-rules
9288
- test
9389
steps:
94-
- uses: actions/checkout@v3
90+
- uses: actions/checkout@v4
9591
with:
9692
fetch-depth: 0
9793

9894
- name: Log in to the Container registry
99-
uses: docker/login-action@v1
95+
uses: docker/login-action@v3
10096
with:
10197
registry: ghcr.io
10298
username: ${{ github.actor }}

.github/workflows/sdk.yaml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,17 @@ jobs:
3232
working-directory: ./sdk
3333
steps:
3434
- name: Check out code
35-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3636

3737
- name: Setup Python ${{ matrix.python-version }}
38-
uses: actions/setup-python@v2
38+
uses: actions/setup-python@v5
3939
with:
4040
python-version: ${{ matrix.python-version }}
41-
42-
- name: Cache pip dependencies
43-
uses: actions/cache@v2
44-
with:
45-
path: ~/.cache/pip
46-
key: |
47-
pip-${{ hashFiles('sdk/requirements.txt') }}-${{ hashFiles('sdk/requirements.dev.txt') }}-${{ matrix.python-version }}
48-
restore-keys: pip-
41+
cache: pip
42+
cache-dependency-path: |
43+
sdk/requirements.txt
44+
sdk/requirements.dev.txt
45+
engines/pyfunc-ensembler-service/requirements.dev.txt
4946
5047
- name: Install dependencies
5148
run: make setup
@@ -65,7 +62,7 @@ jobs:
6562
outputs:
6663
release-type: ${{ steps.release-rules.outputs.release-type }}
6764
steps:
68-
- uses: actions/checkout@v3
65+
- uses: actions/checkout@v4
6966
- id: release-rules
7067
uses: ./.github/actions/release-rules
7168
with:
@@ -87,23 +84,20 @@ jobs:
8784
environment: ${{ needs.release-rules.outputs.release-type == 'dev' && 'manual' || '' }}
8885
steps:
8986
- name: Check out code
90-
uses: actions/checkout@v3
87+
uses: actions/checkout@v4
9188
with:
9289
# fetch full history for a proper version number assignment
9390
fetch-depth: 0
9491

9592
- name: Setup Python
96-
uses: actions/setup-python@v2
93+
uses: actions/setup-python@v5
9794
with:
9895
python-version: 3.8
99-
100-
- name: Cache pip dependencies
101-
uses: actions/cache@v2
102-
with:
103-
path: ~/.cache/pip
104-
key: |
105-
pip-${{ hashFiles('sdk/requirements.txt') }}-${{ hashFiles('sdk/requirements.dev.txt') }}
106-
restore-keys: pip-
96+
cache: pip
97+
cache-dependency-path: |
98+
sdk/requirements.txt
99+
sdk/requirements.dev.txt
100+
engines/pyfunc-ensembler-service/requirements.dev.txt
107101
108102
- name: Build
109103
working-directory: ./sdk

0 commit comments

Comments
 (0)