Skip to content

Commit c8e474d

Browse files
chore: bump installer to v14 (#24)
1 parent 9057dec commit c8e474d

2 files changed

Lines changed: 22 additions & 10 deletions

File tree

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ test_node:
1818
script:
1919
- |
2020
LANGUAGES="js" SITE="datadoghq.com" API_KEY="YOUR_API_KEY_SECRET" \
21-
SRC=$(curl -fsSL https://github.com/DataDog/test-optimization-gitlab-script/releases/download/v1.2.8/script.sh); \
22-
echo "$SRC" | sha256sum | grep -q '^f2b93329e8b7ae59ec8901ce362c1a0492faeb54e60dbf6d0216ea81a1e5b1fe' && \
21+
SRC=$(curl -fsSL https://github.com/DataDog/test-optimization-gitlab-script/releases/download/v1.2.9/script.sh); \
22+
echo "$SRC" | sha256sum | grep -q '^b38d0740f178e9706e6cf129281494656974db25528e3ac6187a8ce1077f7c6f' && \
2323
source <(echo "$SRC") || \
2424
echo "ERROR: SHA256 mismatch. Datadog Test Optimization autoinstrumentation not enabled." >&2
2525
- npm run test
@@ -37,6 +37,8 @@ The script takes in the following environment variables:
3737
| SERVICE | The name of the service or library being tested. | false | |
3838
| DOTNET_TRACER_VERSION | The version of Datadog .NET tracer to use. Defaults to the latest release. | false | |
3939
| JAVA_TRACER_VERSION | The version of Datadog Java tracer to use. Defaults to the latest release. | false | |
40+
| JAVA_TRACER_REPOSITORY_URL | Base URL of a Maven repository (or proxy/mirror) used to download the Java tracer JAR and its `.sha256`. The path under the base must follow the standard Maven layout for `com.datadoghq:dd-java-agent`. Defaults to `https://repo1.maven.org/maven2/com/datadoghq/dd-java-agent`. | false | |
41+
| JAVA_AUTH_HEADER | HTTP header used to authenticate against `JAVA_TRACER_REPOSITORY_URL`, provided as a complete `Name: Value` string (e.g. `Authorization: Bearer <token>`). Requires `JAVA_TRACER_REPOSITORY_URL` to be set to a custom repository URL. Redirects are not followed when this option is set. | false | |
4042
| JS_TRACER_VERSION | The version of Datadog JS tracer to use. Defaults to the latest release. | false | |
4143
| PYTHON_TRACER_VERSION | The version of Datadog Python tracer to use. Defaults to the latest release. | false | |
4244
| PYTHON_COVERAGE_VERSION | The version of the Python `coverage` package to install. Defaults to `7.13.5`. | false | 7.13.5 |
@@ -58,8 +60,8 @@ test_node:
5860
- export DD_TAGS="layer:api,team:intake,key:value"
5961
- |
6062
LANGUAGES="js" SITE="datadoghq.com" \
61-
SRC=$(curl -fsSL https://github.com/DataDog/test-optimization-gitlab-script/releases/download/v1.2.8/script.sh); \
62-
echo "$SRC" | sha256sum | grep -q '^f2b93329e8b7ae59ec8901ce362c1a0492faeb54e60dbf6d0216ea81a1e5b1fe' && \
63+
SRC=$(curl -fsSL https://github.com/DataDog/test-optimization-gitlab-script/releases/download/v1.2.9/script.sh); \
64+
echo "$SRC" | sha256sum | grep -q '^b38d0740f178e9706e6cf129281494656974db25528e3ac6187a8ce1077f7c6f' && \
6365
source <(echo "$SRC") || \
6466
echo "ERROR: SHA256 mismatch. Datadog Test Optimization autoinstrumentation not enabled." >&2
6567
- npm run test
@@ -75,8 +77,8 @@ test_go:
7577
script:
7678
- |
7779
LANGUAGES="go" SITE="datadoghq.com" API_KEY="YOUR_API_KEY_SECRET" GO_MODULE_DIR="./services/payments" \
78-
SRC=$(curl -fsSL https://github.com/DataDog/test-optimization-gitlab-script/releases/download/v1.2.8/script.sh); \
79-
echo "$SRC" | sha256sum | grep -q '^f2b93329e8b7ae59ec8901ce362c1a0492faeb54e60dbf6d0216ea81a1e5b1fe' && \
80+
SRC=$(curl -fsSL https://github.com/DataDog/test-optimization-gitlab-script/releases/download/v1.2.9/script.sh); \
81+
echo "$SRC" | sha256sum | grep -q '^b38d0740f178e9706e6cf129281494656974db25528e3ac6187a8ce1077f7c6f' && \
8082
source <(echo "$SRC") || \
8183
echo "ERROR: SHA256 mismatch. Datadog Test Optimization autoinstrumentation not enabled." >&2
8284
- cd services/payments
@@ -97,8 +99,8 @@ test_node_vitest:
9799
script:
98100
- |
99101
LANGUAGES="js" SITE="datadoghq.com" API_KEY="YOUR_API_KEY_SECRET" \
100-
SRC=$(curl -fsSL https://github.com/DataDog/test-optimization-gitlab-script/releases/download/v1.2.8/script.sh); \
101-
echo "$SRC" | sha256sum | grep -q '^f2b93329e8b7ae59ec8901ce362c1a0492faeb54e60dbf6d0216ea81a1e5b1fe' && \
102+
SRC=$(curl -fsSL https://github.com/DataDog/test-optimization-gitlab-script/releases/download/v1.2.9/script.sh); \
103+
echo "$SRC" | sha256sum | grep -q '^b38d0740f178e9706e6cf129281494656974db25528e3ac6187a8ce1077f7c6f' && \
102104
source <(echo "$SRC") || \
103105
echo "ERROR: SHA256 mismatch. Datadog Test Optimization autoinstrumentation not enabled." >&2
104106
- export NODE_OPTIONS="$NODE_OPTIONS --import $DD_TRACE_ESM_IMPORT"

script.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ if [ -n "$JAVA_TRACER_VERSION" ]; then
4343
export DD_SET_TRACER_VERSION_JAVA=${JAVA_TRACER_VERSION}
4444
fi
4545

46+
# $JAVA_TRACER_REPOSITORY_URL or $DD_SET_TRACER_REPOSITORY_URL_JAVA are optional
47+
if [ -n "$JAVA_TRACER_REPOSITORY_URL" ]; then
48+
export DD_SET_TRACER_REPOSITORY_URL_JAVA=${JAVA_TRACER_REPOSITORY_URL}
49+
fi
50+
51+
# $JAVA_AUTH_HEADER or $DD_SET_AUTH_HEADER_JAVA are optional
52+
if [ -n "$JAVA_AUTH_HEADER" ]; then
53+
export DD_SET_AUTH_HEADER_JAVA=${JAVA_AUTH_HEADER}
54+
fi
55+
4656
# $JS_TRACER_VERSION or $DD_SET_TRACER_VERSION_JS are optional
4757
if [ -n "$JS_TRACER_VERSION" ]; then
4858
export DD_SET_TRACER_VERSION_JS=${JS_TRACER_VERSION}
@@ -82,8 +92,8 @@ export DD_CIVISIBILITY_AUTO_INSTRUMENTATION_PROVIDER="gitlab"
8292

8393
# Keep the installer URL and checksum pinned together so the wrapper executes a
8494
# deterministic upstream payload.
85-
installation_script_url="https://install.datadoghq.com/scripts/install_test_visibility_v13.sh"
86-
installation_script_checksum="1271425bc94d25ff771111802f1b010104f3a9245bd491b67f1be561529f6b89"
95+
installation_script_url="https://install.datadoghq.com/scripts/install_test_visibility_v14.sh"
96+
installation_script_checksum="73824cfac695ed17177b4a2fc0b9afb3b19b639d27a20166190bf8997248423b"
8797
script_filepath="install_test_visibility.sh"
8898

8999
if command -v curl >/dev/null 2>&1; then

0 commit comments

Comments
 (0)