Commit f798a28
ci: use prebuilt wheels in system-tests (#14447)
## Overview
Optimizes the system tests CI workflow by building wheels once and
reusing them across jobs instead of checking out and building from
source multiple times.
## Motivation
The current system tests workflow checks out the dd-trace-py repository
and builds from source in each job, leading to:
- Redundant build time across multiple jobs
- Increased CI resource usage
- Longer overall workflow execution time
- Build dependencies required in system-tests
This change centralizes wheel building in a dedicated job and
distributes the pre-built wheels to consuming jobs, eliminating the need
for build dependencies in system test runners.
## Changes
- Created a new build-wheels job that calls the existing
build_python_3.yml reusable workflow
- Replaced "Checkout dd-trace-py" steps with "Download wheels to
binaries directory" in both system-tests-build-weblog and parametric
jobs
- Added job dependencies to ensure wheels are built before being
consumed
## Testing Strategy
Only ci changes. Tested by running the system tests workflow to
completion.
## Risks
- Low risk: If wheel building fails, all dependent jobs will fail fast
rather than building individually
- Mitigation: The reusable workflow build_python_3.yml is already proven
and used in other workflows
## Checklist
- [x] PR author has checked that all the criteria below are met
- The PR description includes an overview of the change
- The PR description articulates the motivation for the change
- The change includes tests OR the PR description describes a testing
strategy
- The PR description notes risks associated with the change, if any
- Newly-added code is easy to change
- The change follows the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
- The change includes or references documentation updates if necessary
- Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))
## Reviewer Checklist
- [x] Reviewer has checked that all the criteria below are met
- Title is accurate
- All changes are related to the pull request's stated goal
- Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- Testing strategy adequately addresses listed risks
- Newly-added code is easy to change
- Release note makes sense to a user of the library
- If necessary, author has acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment
- Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
---------
Co-authored-by: Charles de Beauchesne <charles.de.beauchesne@gmail.com>1 parent 23ec7b4 commit f798a28
2 files changed
+23
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
43 | | - | |
| 50 | + | |
44 | 51 | | |
45 | | - | |
46 | | - | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
93 | | - | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
| 267 | + | |
| 268 | + | |
263 | 269 | | |
264 | 270 | | |
265 | 271 | | |
| |||
273 | 279 | | |
274 | 280 | | |
275 | 281 | | |
276 | | - | |
277 | | - | |
278 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
279 | 285 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
284 | 289 | | |
285 | 290 | | |
286 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments