Skip to content

Commit 1e22549

Browse files
ci: install mock for encoders profile (#9485)
This change attempts to resolve main-branch CI failures like [this one](https://github.com/DataDog/dd-trace-py/actions/runs/9387454355/job/25850411962) by installing `mock` in the profile's environment. ## Checklist - [x] Change(s) are motivated and described in the PR description - [x] Testing strategy is described if automated tests are not included in the PR - [x] Risks are described (performance impact, potential for breakage, maintainability) - [x] Change is maintainable (easy to change, telemetry, documentation) - [x] [Library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) are followed or label `changelog/no-changelog` is set - [x] Documentation is included (in-code, generated user docs, [public corp docs](https://github.com/DataDog/documentation/)) - [x] Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) - [x] If this PR changes the public interface, I've notified `@DataDog/apm-tees`. ## Reviewer Checklist - [x] Title is accurate - [x] All changes are related to the pull request's stated goal - [x] Description motivates each change - [x] Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes - [x] Testing strategy adequately addresses listed risks - [x] Change is maintainable (easy to change, telemetry, documentation) - [x] Release note makes sense to a user of the library - [x] Author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment - [x] 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: Brett Langdon <[email protected]>
1 parent e859b8d commit 1e22549

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/profiles/encoders/setup.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
set -eu
44

5-
if [[ "$OSTYPE" != "linux-gnu"* ]]
6-
then
7-
echo "Platform $OSTYPE not supported."
8-
exit 1
5+
if [[ "$OSTYPE" != "linux-gnu"* ]]; then
6+
echo "Platform $OSTYPE not supported."
7+
exit 1
98
fi
109

1110
PREFIX=${1}
@@ -19,7 +18,7 @@ source ${PREFIX}/bin/activate
1918
pip install pip --upgrade
2019

2120
# Install dependencies
22-
pip install hypothesis msgpack pytest austin-python~=1.7 austin-dist~=3.6
21+
pip install hypothesis msgpack pytest mock austin-python~=1.7 austin-dist~=3.6
2322

2423
# Install ddtrace
2524
pip install -e .

0 commit comments

Comments
 (0)