Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ include:
variables:
GIT_DEPTH: 5
DEVELOP_BRANCH: 'develop'
TART_VM_IMAGE: '486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/ci-platform-machine-images/tart-vm:dd-sdk-reactnative-sonoma-latest'
ANDROID_SDK_VERSION: 'commandlinetools-mac-11076708_latest'
Comment thread
alee1246 marked this conversation as resolved.
EMULATOR_NAME: 'android_emulator'
ANDROID_ARCH: 'arm64-v8a'
Expand All @@ -25,6 +26,8 @@ stages:
install-jdk-17:
- brew install openjdk@17
install-android-sdk:
- export JAVA_HOME="/opt/homebrew/opt/openjdk@17"
- export PATH="$JAVA_HOME/bin:$PATH"
Comment thread
alee1246 marked this conversation as resolved.
- curl -sSL -o commandlinetools.zip https://dl.google.com/android/repository/$ANDROID_SDK_VERSION.zip
- rm -rf ~/android_sdk
- rm -rf ~/cmdline-tools
Expand All @@ -45,7 +48,8 @@ stages:
# TESTS

test:lint:
tags: ['macos:sonoma', 'specific:true']
tags: ['macos:tart']
image: "$TART_VM_IMAGE"
stage: test
rules:
- if: '$BUILD_BENCHMARK != "true"'
Expand All @@ -55,7 +59,8 @@ test:lint:
- yarn run lint

test:js:
tags: ['macos:sonoma', 'specific:true']
tags: ['macos:tart']
image: "$TART_VM_IMAGE"
stage: test
rules:
- if: '$BUILD_BENCHMARK != "true"'
Expand All @@ -66,7 +71,8 @@ test:js:
- NODE_OPTIONS='-r dd-trace/ci/init' DD_ENV=ci DD_SERVICE=dd-sdk-reactnative yarn test

test:build:
tags: ['macos:sonoma', 'specific:true']
tags: ['macos:tart']
image: "$TART_VM_IMAGE"
stage: test
rules:
- if: '$BUILD_BENCHMARK != "true"'
Expand All @@ -76,14 +82,15 @@ test:build:
- yarn prepare

test:native-android:
tags: ['macos:sonoma', 'specific:true']
tags: ['macos:tart']
image: "$TART_VM_IMAGE"
stage: test
rules:
- if: '$BUILD_BENCHMARK != "true"'
timeout: 1h
script:
- !reference [.snippets, install-android-sdk]
- !reference [.snippets, install-jdk-17]
- !reference [.snippets, install-android-sdk]
- /opt/homebrew/opt/openjdk@17/bin/java --version
- echo "org.gradle.java.home=/opt/homebrew/opt/openjdk@17" >> packages/core/android/gradle.properties
- echo "org.gradle.java.home=/opt/homebrew/opt/openjdk@17" >> packages/react-native-session-replay/android/gradle.properties
Expand All @@ -94,7 +101,8 @@ test:native-android:
- (cd packages/internal-testing-tools/android && ./gradlew build -PDdSdkReactNative_minSdkVersion=24 -PDatadogInternalTesting_minSdkVersion=24)

test:native-ios:
tags: ['macos:sonoma', 'specific:true']
tags: ['macos:tart']
image: "$TART_VM_IMAGE"
stage: test
rules:
- if: '$BUILD_BENCHMARK != "true"'
Expand All @@ -105,7 +113,8 @@ test:native-ios:
- set -o pipefail && xcodebuild -workspace example/ios/DdSdkReactNativeExample.xcworkspace -scheme DatadogSDKReactNative test -destination "platform=iOS Simulator,OS=17.4,name=iPhone 15 Pro Max" | xcbeautify

test:native-ios-sr:
tags: ['macos:sonoma', 'specific:true']
tags: ['macos:tart']
image: "$TART_VM_IMAGE"
stage: test
rules:
- if: '$BUILD_BENCHMARK != "true"'
Expand All @@ -116,7 +125,8 @@ test:native-ios-sr:
- set -o pipefail && xcodebuild -workspace example/ios/DdSdkReactNativeExample.xcworkspace -scheme DatadogSDKReactNativeSessionReplay test -destination "platform=iOS Simulator,OS=17.4,name=iPhone 15 Pro Max" | xcbeautify

test:native-ios-newarch:
tags: ['macos:sonoma', 'specific:true']
tags: ['macos:tart']
image: "$TART_VM_IMAGE"
stage: test
rules:
- if: '$BUILD_BENCHMARK != "true"'
Expand Down
8 changes: 6 additions & 2 deletions benchmarks/.benchmarks-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include:
variables:
GIT_DEPTH: 5
NODE_VERSION: '22.5.1'
TART_VM_IMAGE: '486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/ci-platform-machine-images/tart-vm:dd-sdk-reactnative-sonoma-latest'
ANDROID_SDK_VERSION: 'commandlinetools-mac-11076708_latest'
Comment thread
alee1246 marked this conversation as resolved.
EMULATOR_NAME: 'android_emulator'
ANDROID_ARCH: 'arm64-v8a'
Expand Down Expand Up @@ -36,6 +37,8 @@ stages:
install-jdk-17:
- brew install openjdk@17
install-android-sdk:
- export JAVA_HOME="/opt/homebrew/opt/openjdk@17"
- export PATH="$JAVA_HOME/bin:$PATH"
Comment thread
alee1246 marked this conversation as resolved.
- curl -sSL -o commandlinetools.zip https://dl.google.com/android/repository/$ANDROID_SDK_VERSION.zip
- rm -rf ~/android_sdk
- rm -rf ~/cmdline-tools
Expand All @@ -60,11 +63,12 @@ stages:

build-and-upload:app:
stage: build-and-upload
tags: ['macos:sonoma', 'specific:true']
tags: ['macos:tart']
image: "$TART_VM_IMAGE"
script:
- !reference [.snippets, install-node]
- !reference [.snippets, install-android-sdk]
- !reference [.snippets, install-jdk-17]
- !reference [.snippets, install-android-sdk]
- !reference [.snippets, check-versions]

- echo $(pwd)
Expand Down
8 changes: 8 additions & 0 deletions benchmarks/scripts/secrets/get-secret.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ get_secret() {

export VAULT_ADDR=$DD_VAULT_ADDR
if [ "$CI" = "true" ]; then
if [ -z "${AWS_ACCESS_KEY_ID:-}" ] || [ -z "${AWS_SECRET_ACCESS_KEY:-}" ]; then
local aws_env
if ! aws_env="$(aws configure export-credentials --format env)"; then
echo "Error: Failed to export AWS credentials via 'aws configure export-credentials'." >&2
exit 1
fi
eval "$aws_env"
Comment thread
alee1246 marked this conversation as resolved.
fi
vault login -method=aws -no-print
Comment thread
Copilot marked this conversation as resolved.
else
if vault token lookup &>/dev/null; then
Expand Down