-
Notifications
You must be signed in to change notification settings - Fork 235
Expand file tree
/
Copy pathtask_runner_connectivity_e2e.yml
More file actions
87 lines (75 loc) · 2.63 KB
/
task_runner_connectivity_e2e.yml
File metadata and controls
87 lines (75 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
# Task Runner E2E tests to check connectivity.
name: Task_Runner_Connectivity_E2E # Please do not modify the name as it is used in the composite action
on:
workflow_call:
inputs:
commit_id:
required: false
type: string
workflow_dispatch:
permissions:
contents: read
env:
COMMIT_ID: ${{ inputs.commit_id || github.sha }} # use commit_id from the calling workflow
jobs:
test_gRPC_connectivity:
name: Task Runner gRPC connectivity (no-op, 3.10)
if: |
(github.event_name == 'schedule' && github.repository_owner == 'securefederatedai') ||
(github.event_name == 'workflow_dispatch') ||
(github.event.pull_request.draft == false)
runs-on: ubuntu-22.04
timeout-minutes: 30
env:
MODEL_NAME: 'no-op'
PYTHON_VERSION: '3.10'
steps:
- name: Checkout OpenFL repository
id: checkout_openfl
uses: actions/checkout@v6
with:
ref: ${{ env.COMMIT_ID }}
- name: Pre test run
uses: ./.github/actions/tr_pre_test_run
if: ${{ always() }}
- name: Run Task Runner gRPC connectivity test
id: run_tests
run: |
python -m pytest -s tests/end_to_end/test_suites/task_runner_tests.py -k test_federation_connectivity --model_name ${{ env.MODEL_NAME }}
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: "TLS_Connectivity_gRPC"
test_rest_connectivity:
name: Task Runner Rest connectivity (no-op, 3.11)
if: |
(github.event_name == 'schedule' && github.repository_owner == 'securefederatedai') ||
(github.event_name == 'workflow_dispatch') ||
(github.event.pull_request.draft == false)
runs-on: ubuntu-22.04
timeout-minutes: 30
env:
MODEL_NAME: 'no-op'
PYTHON_VERSION: '3.11'
steps:
- name: Checkout OpenFL repository
id: checkout_openfl
uses: actions/checkout@v6
with:
ref: ${{ env.COMMIT_ID }}
- name: Pre test run
uses: ./.github/actions/tr_pre_test_run
if: ${{ always() }}
- name: Run Task Runner rest connectivity test
id: run_tests
run: |
python -m pytest -s tests/end_to_end/test_suites/task_runner_tests.py -k test_federation_connectivity --model_name ${{ env.MODEL_NAME }} --tr_rest_protocol
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: "TLS_Connectivity_REST"