Skip to content

Commit ff428e6

Browse files
authored
Merge pull request #144 from shiguredo/feature/e2e-test-authz-simulcast
video toolbox に authz のテストを追加する
2 parents 45af5e6 + 985852d commit ff428e6

File tree

6 files changed

+320
-95
lines changed

6 files changed

+320
-95
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: e2e-test-apple-video-toolbox
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- ".github/workflows/e2e-test-apple-video-toolbox.yml"
8+
- "tests/test_apple_video_toolbox.py"
9+
# C++ SDK のアップデートしたときテストするため
10+
- "VERSION"
11+
schedule:
12+
# UTC の 01:00 は JST だと 10:00 。
13+
# 1-5 で 月曜日から金曜日
14+
- cron: "0 1 * * 1-5"
15+
16+
env:
17+
TEST_SIGNALING_URLS: ${{ secrets.TEST_SIGNALING_URLS }}
18+
TEST_CHANNEL_ID_PREFIX: ${{ secrets.TEST_CHANNEL_ID_PREFIX }}
19+
TEST_SECRET_KEY: ${{ secrets.TEST_SECRET_KEY }}
20+
TEST_API_URL: ${{ secrets.TEST_API_URL }}
21+
APPLE_VIDEO_TOOLBOX: true
22+
23+
jobs:
24+
e2e_test_apple_video_toolbox:
25+
strategy:
26+
fail-fast: true
27+
matrix:
28+
python_version:
29+
# TODO: push 時には 3.13 でテストする、schedule 時には全部でテストする
30+
# - "3.11"
31+
# - "3.12"
32+
- "3.13"
33+
runs-on:
34+
group: Self
35+
labels: [self-hosted, self-hosted, macOS, ARM64, M2Pro]
36+
timeout-minutes: 15
37+
if: >-
38+
${{
39+
contains(github.event.head_commit.message, '[e2e]') ||
40+
contains(github.ref, 'feature/e2e-test') ||
41+
github.event_name == 'workflow_dispatch' ||
42+
github.event_name == 'push' ||
43+
github.event_name == 'schedule'
44+
}}
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: astral-sh/setup-uv@v5
48+
with:
49+
enable-cache: false
50+
- run: uv python pin ${{ matrix.python_version }}
51+
- run: uv sync
52+
- run: uv run python run.py macos_arm64
53+
- run: uv run pytest tests/test_apple_video_toolbox.py -v
54+
55+
# slack_notify_succeeded:
56+
# needs: [e2e_test_ubuntu, e2e_test_macos, e2e_test_windows]
57+
# runs-on: ubuntu-24.04
58+
# if: success()
59+
# steps:
60+
# - name: Slack Notification
61+
# uses: rtCamp/action-slack-notify@v2
62+
# env:
63+
# SLACK_CHANNEL: sora-python-sdk
64+
# SLACK_COLOR: good
65+
# SLACK_TITLE: SUCCEEDED
66+
# SLACK_ICON_EMOJI: ":star-struck:"
67+
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
68+
69+
slack_notify_failed:
70+
needs: [e2e_test_apple_video_toolbox]
71+
runs-on: ubuntu-24.04
72+
if: failure()
73+
steps:
74+
- name: Slack Notification
75+
uses: rtCamp/action-slack-notify@v2
76+
env:
77+
SLACK_CHANNEL: sora-python-sdk
78+
SLACK_COLOR: danger
79+
SLACK_TITLE: "FAILED"
80+
SLACK_ICON_EMOJI: ":japanese_ogre:"
81+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/e2e-test-vpl.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ env:
2525
jobs:
2626
e2e_test_vpl:
2727
strategy:
28-
fail-fast: false
28+
fail-fast: true
2929
matrix:
3030
python_version:
31-
- "3.11"
32-
- "3.12"
31+
# TODO: push 時には 3.13 でテストする、schedule 時には全部でテストする
32+
# - "3.11"
33+
# - "3.12"
3334
- "3.13"
3435
runs-on: [self-hosted, linux, x64, Intel-VPL]
3536
timeout-minutes: 15
@@ -49,7 +50,7 @@ jobs:
4950
- run: uv python pin ${{ matrix.python_version }}
5051
- run: uv sync
5152
- run: uv run python run.py ubuntu-24.04_x86_64
52-
- run: uv run pytest tests/test_intel_vpl.py -s -v
53+
- run: uv run pytest tests/test_intel_vpl.py -v
5354

5455
# slack_notify_succeeded:
5556
# needs: [e2e_test_ubuntu, e2e_test_macos, e2e_test_windows]

.github/workflows/e2e-test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
paths-ignore:
77
- "**.md"
88
- "tests/test_intel_vpl.py"
9+
- "tests/test_apple_video_toolbox.py"
910
schedule:
1011
# UTC の 01:00 は JST だと 10:00 。
1112
# 1-5 で 月曜日から金曜日
@@ -79,7 +80,7 @@ jobs:
7980
- run: uv python pin ${{ matrix.python_version }}
8081
- run: uv sync
8182
- run: uv run python run.py ${{ matrix.platform.target }}
82-
- run: uv run pytest tests -s
83+
- run: uv run pytest tests -v
8384

8485
e2e_test_macos:
8586
strategy:
@@ -112,7 +113,7 @@ jobs:
112113
- run: uv python pin ${{ matrix.python_version }}
113114
- run: uv sync
114115
- run: uv run python run.py macos_arm64
115-
- run: uv run pytest tests -s
116+
- run: uv run pytest tests -v
116117

117118
e2e_test_windows:
118119
strategy:
@@ -148,7 +149,7 @@ jobs:
148149
- run: uv python pin ${{ matrix.python_version }}
149150
- run: uv sync
150151
- run: uv run python run.py windows_x86_64
151-
- run: uv run pytest tests -s
152+
- run: uv run pytest tests -v
152153

153154
# slack_notify_succeeded:
154155
# needs: [e2e_test_ubuntu, e2e_test_macos, e2e_test_windows]

0 commit comments

Comments
 (0)