-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for Worker-controller 2.1.3 (#943)
* Add missing worker-controller testing * Read worker count directly from broker -- dont just guess * Fix CI PR triggers * backport refactor * fix tests/test_autoscaler.py * Fix tests/test_autoscaler_rules.py * pep * f * Check both broker queue and API stauts for stuck analyses * PEP
- Loading branch information
Showing
13 changed files
with
162 additions
and
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ on: | |
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
inputs: | ||
ods_branch: | ||
|
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
5 changes: 1 addition & 4 deletions
5
.github/workflows/test-python.yml → .github/workflows/test-python_api.yml
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,47 @@ | ||
name: Python Tests - Worker Controller | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
unittest: | ||
env: | ||
JUNIT_REPORT: pytest_worker-controller_report.xml | ||
PLAT_BRANCH: ${{ github.ref }} | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Branch selection (remote trigger) | ||
if: inputs.platform_branch != '' | ||
run: echo "PLAT_BRANCH=${{ inputs.platform_branch }}" >> $GITHUB_ENV | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: OasisLMF/OasisPlatform | ||
ref: ${{ env.PLAT_BRANCH }} | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- run: | | ||
pip install pytest | ||
pip install -r kubernetes/worker-controller/requirements.txt | ||
- name: Run Pytest | ||
run: | | ||
cd kubernetes/worker-controller/src | ||
python -m pytest -v | ||
# - name: Generate Report | ||
# uses: dorny/test-reporter@v1 | ||
# if: success() || failure() # run this step even if previous step failed | ||
# with: | ||
# name: Pytest Results # Name of the check run which will be created | ||
# path: ${{ env.JUNIT_REPORT }} # Path to test results | ||
# reporter: java-junit # Format of test results | ||
# fail-on-error: 'false' |
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
Oops, something went wrong.