-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: payalcha <[email protected]>
- Loading branch information
Showing
7 changed files
with
150 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,84 @@ | ||
--- | ||
# Task Runner E2E tests with straggler handling policy with bare metal approach | ||
|
||
name: Task_Runner_Straggler_E2E # Please do not modify the name as it is used in the composite action | ||
|
||
on: | ||
schedule: | ||
- cron: "0 7 * * *" # Run every day at 7 am UTC | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test_straggler_percentage_cutoff: | ||
name: Straggler PercentageCutoff | ||
if: | | ||
(github.event_name == 'schedule' && github.repository_owner == 'securefederatedai') || | ||
(github.event_name == 'workflow_dispatch') | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 30 | ||
fail-fast: false # do not immediately fail if one of the combinations fail | ||
env: | ||
MODEL_NAME: 'torch/mnist_straggler_check' | ||
PYTHON_VERSION: 3.10 | ||
steps: | ||
- name: Checkout OpenFL repository | ||
id: checkout_openfl | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 # needed for detecting changes | ||
submodules: "true" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Pre test run | ||
uses: ./.github/actions/tr_pre_test_run | ||
if: ${{ always() }} | ||
|
||
- name: Run Task Runner E2E tests with TLS | ||
id: run_tests | ||
run: | | ||
python -m pytest -s tests/end_to_end/test_suites/tr_resiliency_tests.py -k test_straggler_percent_cutoff | ||
echo "Task runner end to end test run completed" | ||
- name: Post test run | ||
uses: ./.github/actions/tr_post_test_run | ||
if: ${{ always() }} | ||
with: | ||
test_type: "With_TLS" | ||
|
||
test_straggler_cutoff: | ||
name: Without TLS | ||
if: | | ||
(github.event_name == 'schedule' && github.repository_owner == 'securefederatedai') || | ||
(github.event_name == 'workflow_dispatch') | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 30 | ||
env: | ||
MODEL_NAME: 'torch/mnist_straggler_check' | ||
PYTHON_VERSION: 3.10 | ||
steps: | ||
- name: Checkout OpenFL repository | ||
id: checkout_openfl | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 # needed for detecting changes | ||
submodules: "true" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Pre test run | ||
uses: ./.github/actions/tr_pre_test_run | ||
if: ${{ always() }} | ||
|
||
- name: Run Task Runner E2E tests without TLS | ||
id: run_tests | ||
run: | | ||
python -m pytest -s tests/end_to_end/test_suites/tr_resiliency_tests.py -k test_straggler_cutoff | ||
echo "Task runner end to end test run completed" | ||
- name: Post test run | ||
uses: ./.github/actions/tr_post_test_run | ||
if: ${{ always() }} | ||
with: | ||
test_type: "With_TLS" |
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