-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Test] Reduce Katib GitHub Action Runs (#2036)
* [Test] Reduce Katib GitHub Action Runs * Add cancel-in-progress flag * Use single job for Charmed Katib * Add cancel-in-progress for all actions except publish * Bump ubuntu to 20.04 for Charmed tests
- Loading branch information
1 parent
831e1d3
commit b123dbf
Showing
19 changed files
with
137 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: E2E Test with Katib UI, random search, and postgres | ||
|
||
on: | ||
- pull_request | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
e2e: | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 120 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Test Env | ||
uses: ./.github/workflows/template-setup-e2e-test | ||
with: | ||
kubernetes-version: ${{ matrix.kubernetes-version }} | ||
|
||
- name: Run e2e test with ${{ matrix.experiments }} experiments | ||
uses: ./.github/workflows/template-e2e-test | ||
with: | ||
experiments: random | ||
# Comma Delimited | ||
trial-images: mxnet-mnist | ||
katib-ui: true | ||
database-type: postgres | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
kubernetes-version: ["v1.23.13", "v1.24.7", "v1.25.3"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
name: Charmed Katib | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'pkg/new-ui/v1beta1/frontend/**' | ||
pull_request: | ||
paths-ignore: | ||
- 'pkg/new-ui/v1beta1/frontend/**' | ||
- "pkg/new-ui/v1beta1/frontend/**" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
charmed: | ||
name: Lint and Test | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Check out code | ||
|
@@ -21,38 +22,25 @@ jobs: | |
run: | | ||
set -eux | ||
sudo apt update | ||
sudo apt install -y python3-pip | ||
sudo apt install python3-setuptools | ||
sudo pip3 install black flake8 | ||
sudo snap install juju --classic | ||
sudo snap install juju-bundle --classic | ||
sudo snap install juju-wait --classic | ||
sudo pip3 install charmcraft==1.3.1 | ||
- name: Check black | ||
run: black --check operators/*/src | ||
|
||
- name: Check flake8 | ||
run: cd operators && flake8 ./katib*/src | ||
|
||
build: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v3 | ||
|
||
- uses: balchua/[email protected] | ||
with: | ||
channel: "1.21/stable" | ||
addons: '["dns", "storage", "rbac"]' | ||
|
||
- name: Install dependencies | ||
run: | | ||
set -eux | ||
sudo apt update | ||
sudo apt install -y python3-pip | ||
sudo snap install juju --classic | ||
sudo snap install juju-bundle --classic | ||
sudo snap install juju-wait --classic | ||
sudo pip3 install charmcraft==1.3.1 | ||
- name: Set Up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
|
Oops, something went wrong.