Repository navigation
167 lines (128 loc) · 5.6 KB
/
Copy pathconformance.yml
File metadata and controls
167 lines (128 loc) · 5.6 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
name: Conformance
on:
workflow_call:
permissions:
contents: read
jobs:
conformance:
name: Conformance, ${{ matrix.implementation }}
runs-on: ubuntu-26.04
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
implementation: [python@main, python@release, rust@main]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# python@release finds the newest pydocket tag.
fetch-depth: 0
- name: Install uv and set Python version
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
python-version: "3.15"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install dependencies
run: uv sync --dev --upgrade-package redis
- name: Install Rust
if: startsWith(matrix.implementation, 'rust')
uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
- name: Cache the Rust build
if: startsWith(matrix.implementation, 'rust')
uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: rust
- name: backoff
run: uv run python -m conformance backoff --implementation ${{ matrix.implementation }}
- name: perpetual
run: uv run python -m conformance perpetual --implementation ${{ matrix.implementation }}
- name: cancel-before-start
run: uv run python -m conformance cancel-before-start --implementation ${{ matrix.implementation }}
- name: graceful-drain
run: uv run python -m conformance graceful-drain --implementation ${{ matrix.implementation }}
- name: concurrency-limit
run: uv run python -m conformance concurrency-limit --implementation ${{ matrix.implementation }}
- name: redelivery
run: uv run python -m conformance redelivery --implementation ${{ matrix.implementation }}
- name: perpetual-single-flight
run: uv run python -m conformance perpetual-single-flight --implementation ${{ matrix.implementation }}
- name: same-key
run: uv run python -m conformance same-key --implementation ${{ matrix.implementation }}
- name: telemetry
run: uv run python -m conformance telemetry --implementation ${{ matrix.implementation }}
- name: admission-failure
run: uv run python -m conformance admission-failure --implementation ${{ matrix.implementation }}
# The newest pydocket release predates the generation checks on a
# perpetual task's cancel of itself and on a retry, so these two hold
# only the working trees to them.
- name: stop-after-replace
if: matrix.implementation != 'python@release'
run: uv run python -m conformance stop-after-replace --implementation ${{ matrix.implementation }}
- name: retry-after-replace
if: matrix.implementation != 'python@release'
run: uv run python -m conformance retry-after-replace --implementation ${{ matrix.implementation }}
telemetry:
name: Telemetry, python@main and rust@main
runs-on: ubuntu-26.04
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv and set Python version
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
python-version: "3.15"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install dependencies
run: uv sync --dev --upgrade-package redis
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: rust
- name: telemetry
run: uv run python -m conformance telemetry --implementation python@main --implementation rust@main
chaos:
name: Chaos tests, python@main and python@release
runs-on: ubuntu-26.04
timeout-minutes: 6
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0
- name: Install uv and set Python version
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
python-version: "3.15"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install dependencies
run: uv sync --dev --upgrade-package redis
- name: chaos
run: uv run python -m conformance chaos --implementation python@main --implementation python@release
chaos-rust:
name: Chaos tests, rust@main
runs-on: ubuntu-26.04
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv and set Python version
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
python-version: "3.15"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install dependencies
run: uv sync --dev --upgrade-package redis
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: rust
- name: chaos
run: uv run python -m conformance chaos --implementation rust@main