Skip to content

Commit

Permalink
chore(ui): Upgrade UI dependencies (caraml-dev#384)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
Arief Rahmansyah and deadlycoconuts authored Jul 17, 2024
1 parent bb73a1f commit 94bd5cf
Show file tree
Hide file tree
Showing 47 changed files with 4,702 additions and 4,825 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-cluster-init/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:
cluster-init:${{ steps.build-image.outputs.cluster-init-version }}
- name: Publish Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: cluster-init.${{ steps.build-image.outputs.cluster-init-version }}.tar
path: cluster-init.${{ steps.build-image.outputs.cluster-init-version }}.tar
Expand Down
21 changes: 7 additions & 14 deletions .github/actions/setup-test-cluster/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,27 +59,28 @@ runs:
using: composite
steps:
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go-version }}
cache-dependency-path: api/go.sum

- name: Download Turing API Docker tar archive
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ${{ inputs.turing_api_tar_archive_name }}

- name: Download Turing Router Docker tar archive
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ${{ inputs.turing_router_tar_archive_name }}

- name: Download Experiment Engine Plugin Docker tar archive
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ${{ inputs.experiment_engine_plugin_archive_name }}

- name: Download Cluster Init Docker tar archive
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ${{ inputs.cluster_init_tar_archive_name }}

Expand Down Expand Up @@ -209,7 +210,7 @@ runs:
kubectl apply -f infra/e2e/turing.mockserver.yaml
- name: Run action await k8 workloads
uses: jupyterhub/action-k8s-await-workloads@v1
uses: jupyterhub/action-k8s-await-workloads@v3
id: wait-for-deployment
with:
workloads: >-
Expand Down Expand Up @@ -240,11 +241,3 @@ runs:
--request POST \
--data @payload.json \
http://turing-gateway.127.0.0.1.nip.io/api/v1/projects
- name: Cache Test Dependencies
uses: actions/cache@v2
with:
path: api/.go/pkg/mod/
key: |
gomod-${{ hashFiles('api/go.mod') }}
restore-keys: gomod-
14 changes: 7 additions & 7 deletions .github/workflows/cluster-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
outputs:
release-type: ${{ steps.release-rules.outputs.release-type }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: release-rules
uses: ./.github/actions/release-rules
with:
Expand All @@ -41,7 +41,7 @@ jobs:
cluster-init-version: ${{ steps.build-cluster-init.outputs.cluster-init-version }}
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -62,10 +62,10 @@ jobs:
- build-cluster-init
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

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

Expand Down Expand Up @@ -130,19 +130,19 @@ jobs:
- build-cluster-init
- test-e2e
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

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

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/fluentd-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
outputs:
release-type: ${{ steps.release-rules.outputs.release-type }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: release-rules
uses: ./.github/actions/release-rules
with:
Expand All @@ -46,12 +46,12 @@ jobs:
needs:
- release-rules
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/helm-chart.yaml

This file was deleted.

22 changes: 9 additions & 13 deletions .github/workflows/pyfunc-ensembler-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ jobs:
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache-dependency-path: |
engines/pyfunc-ensembler-job/env-${{ matrix.python-version }}.yaml
engines/pyfunc-ensembler-job/requirements.txt
engines/pyfunc-ensembler-job/requirements.dev.txt
- name: Setup Java
uses: actions/setup-java@v2
Expand All @@ -51,14 +55,6 @@ jobs:
with:
auto-update-conda: true

- name: Cache Conda environment
uses: actions/cache@v2
with:
path: engines/pyfunc-ensembler-job/env
key: |
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') }}
restore-keys: conda-

- name: Run Tests
working-directory: engines/pyfunc-ensembler-job
run: |
Expand All @@ -70,7 +66,7 @@ jobs:
outputs:
release-type: ${{ steps.release-rules.outputs.release-type }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: release-rules
uses: ./.github/actions/release-rules
with:
Expand All @@ -97,12 +93,12 @@ jobs:
- release-rules
- test
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
22 changes: 9 additions & 13 deletions .github/workflows/pyfunc-ensembler-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,22 @@ jobs:
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache-dependency-path: |
engines/pyfunc-ensembler-service/env-${{ matrix.python-version }}.yaml
engines/pyfunc-ensembler-service/requirements.txt
engines/pyfunc-ensembler-service/requirements.dev.txt
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true

- name: Cache Conda environment
uses: actions/cache@v2
with:
path: engines/pyfunc-ensembler-service/env
key: |
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') }}
restore-keys: conda-

- name: Run Tests
working-directory: engines/pyfunc-ensembler-service
run: |
Expand All @@ -64,7 +60,7 @@ jobs:
outputs:
release-type: ${{ steps.release-rules.outputs.release-type }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: release-rules
uses: ./.github/actions/release-rules
with:
Expand All @@ -91,12 +87,12 @@ jobs:
- release-rules
- test
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Log in to the Container registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
36 changes: 15 additions & 21 deletions .github/workflows/sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,17 @@ jobs:
working-directory: ./sdk
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Cache pip dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: |
pip-${{ hashFiles('sdk/requirements.txt') }}-${{ hashFiles('sdk/requirements.dev.txt') }}-${{ matrix.python-version }}
restore-keys: pip-
cache: pip
cache-dependency-path: |
sdk/requirements.txt
sdk/requirements.dev.txt
engines/pyfunc-ensembler-service/requirements.dev.txt
- name: Install dependencies
run: make setup
Expand All @@ -65,7 +62,7 @@ jobs:
outputs:
release-type: ${{ steps.release-rules.outputs.release-type }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: release-rules
uses: ./.github/actions/release-rules
with:
Expand All @@ -87,23 +84,20 @@ jobs:
environment: ${{ needs.release-rules.outputs.release-type == 'dev' && 'manual' || '' }}
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# fetch full history for a proper version number assignment
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8

- name: Cache pip dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: |
pip-${{ hashFiles('sdk/requirements.txt') }}-${{ hashFiles('sdk/requirements.dev.txt') }}
restore-keys: pip-
cache: pip
cache-dependency-path: |
sdk/requirements.txt
sdk/requirements.dev.txt
engines/pyfunc-ensembler-service/requirements.dev.txt
- name: Build
working-directory: ./sdk
Expand Down
Loading

0 comments on commit 94bd5cf

Please sign in to comment.