Skip to content
Merged
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
12 changes: 7 additions & 5 deletions .gitlab/generate-profiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,18 @@
stage: test
tags: [ "arch:${ARCH}" ]
image: registry.ddbuild.io/images/mirror/datadog/dd-trace-ci:${IMAGE_PREFIX}${PHP_MAJOR_MINOR}${IMAGE_SUFFIX}
# Setting the *_REQUEST and *_LIMIT variables to be the same, and setting
# them for both the build and helper allows using Guaranteed QoS instead of
# Burstable. This means nproc and similar tools will work as expected.
variables:
KUBERNETES_CPU_REQUEST: 3
KUBERNETES_CPU_LIMIT: 3
KUBERNETES_MEMORY_REQUEST: 6Gi
KUBERNETES_MEMORY_LIMIT: 6Gi
KUBERNETES_HELPER_CPU_REQUEST: 1
KUBERNETES_HELPER_CPU_LIMIT: 1
KUBERNETES_HELPER_MEMORY_REQUEST: 2Gi
KUBERNETES_HELPER_MEMORY_LIMIT: 2Gi
CARGO_TARGET_DIR: /mnt/ramdisk/cargo # ramdisk??
libdir: /tmp/datadog-profiling
parallel:
Expand All @@ -41,11 +48,6 @@
- cd profiling
- 'echo "nproc: $(nproc)"'
- 'echo "KUBERNETES_CPU_REQUEST: ${KUBERNETES_CPU_REQUEST:-<unset>}"'
- |
if [ -n "${KUBERNETES_CPU_REQUEST:-}" ]; then
export CARGO_BUILD_JOBS="${KUBERNETES_CPU_REQUEST}"
fi
echo "CARGO_BUILD_JOBS: ${CARGO_BUILD_JOBS}"
- export TEST_PHP_EXECUTABLE=$(which php)
- run_tests_php=$(find $(php-config --prefix) -name run-tests.php) # don't anticipate there being more than one
- cp -v "${run_tests_php}" tests
Expand Down
Loading