-
-
Notifications
You must be signed in to change notification settings - Fork 427
Expand file tree
/
Copy pathstress-test-tcp-open-close-macos.yml
More file actions
130 lines (122 loc) · 4.67 KB
/
stress-test-tcp-open-close-macos.yml
File metadata and controls
130 lines (122 loc) · 4.67 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: MacOS TCP Open/Close Stress Tests
on:
schedule:
- cron: "00 6 * * *"
workflow_dispatch:
inputs:
sha:
description: 'SHA to test'
required: true
type: string
default: 'main'
permissions:
packages: read
jobs:
x86_64-macos:
runs-on: macos-13
strategy:
fail-fast: false
matrix:
include:
- name: "x86-64 macOS [release]"
target: test-stress-tcp-open-close-release
- name: "x86-64 macOS [debug]"
target: test-stress-tcp-open-close-debug
- name: "x86-64 macOS [cd] [release]"
target: test-stress-tcp-open-close-with-cd-release
- name: "x86-64 macOS [cd] [debug]"
target: test-stress-tcp-open-close-with-cd-debug
name: ${{matrix.target}}:${{ matrix.name }}
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
ref: ${{ github.event.inputs.sha || 'main' }}
- name: Restore Libs Cache
id: restore-libs
uses: actions/cache/restore@v4
with:
path: build/libs
key: libs-x86-macos-13-${{ hashFiles('Makefile', 'CMakeLists.txt', 'lib/CMakeLists.txt') }}
- name: Build Libs
if: steps.restore-libs.outputs.cache-hit != 'true'
run: make libs build_flags=-j8
- name: Save Libs Cache
if: steps.restore-libs.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: build/libs
key: libs-x86-macos-13-${{ hashFiles('Makefile', 'CMakeLists.txt', 'lib/CMakeLists.txt') }}
- name: Build Debug Runtime
run: |
make configure arch=x86-64 config=debug
make build config=debug
- name: Configure networking
run: bash .ci-scripts/macOS-configure-networking.bash
- name: Run Stress Test
run: make ${{ matrix.target }} config=debug usedebugger=lldb
- name: Send alert on failure
if: ${{ failure() }}
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5
with:
api-key: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_API_KEY }}
email: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_EMAIL }}
organization-url: 'https://ponylang.zulipchat.com/'
to: notifications
type: stream
topic: ${{ github.repository }} scheduled job failure
content: ${{ github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }} failed.
arm64-macos:
runs-on: macos-14
strategy:
fail-fast: false
matrix:
include:
- name: "arm64 macOS [release]"
target: test-stress-tcp-open-close-release
- name: "arm64 macOS [debug]"
target: test-stress-tcp-open-close-debug
- name: "arm64 macOS [cd] [release]"
target: test-stress-tcp-open-close-with-cd-release
- name: "arm64 macOS [cd] [debug]"
target: test-stress-tcp-open-close-with-cd-debug
name: ${{matrix.target}}:${{ matrix.name }}
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
ref: ${{ github.event.inputs.sha || 'main' }}
- name: Restore Libs Cache
id: restore-libs
uses: actions/cache/restore@v4
with:
path: build/libs
key: libs-arm64-macos-14-${{ hashFiles('Makefile', 'CMakeLists.txt', 'lib/CMakeLists.txt') }}
- name: Build Libs
if: steps.restore-libs.outputs.cache-hit != 'true'
run: make libs build_flags=-j8
- name: Save Libs Cache
if: steps.restore-libs.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: build/libs
key: libs-arm64-macos-14-${{ hashFiles('Makefile', 'CMakeLists.txt', 'lib/CMakeLists.txt') }}
- name: Build Debug Runtime
run: |
make configure config=debug
make build config=debug
- name: Configure networking
run: bash .ci-scripts/macOS-configure-networking.bash
- name: Run Stress Test
run: make ${{ matrix.target }} config=debug usedebugger=lldb
- name: Send alert on failure
if: ${{ failure() }}
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5
with:
api-key: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_API_KEY }}
email: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_EMAIL }}
organization-url: 'https://ponylang.zulipchat.com/'
to: notifications
type: stream
topic: ${{ github.repository }} scheduled job failure
content: ${{ github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }} failed.