Skip to content

Straggler tests and Dockerize step fix #2

Straggler tests and Dockerize step fix

Straggler tests and Dockerize step fix #2

---
# 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

Check failure on line 22 in .github/workflows/task_runner_straggler_e2e.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/task_runner_straggler_e2e.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
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"