|
45 | 45 |
|
46 | 46 | - '# NTS' |
47 | 47 | - command -v switch-php && switch-php "${PHP_MAJOR_MINOR}" |
48 | | - - cargo build --profile profiler-release --all-features |
| 48 | + - cargo build --profile profiler-release |
49 | 49 | - mkdir -p "${CI_PROJECT_DIR}/artifacts/profiler-tests" |
50 | 50 | - (cd tests; TEST_PHP_JUNIT="${CI_PROJECT_DIR}/artifacts/profiler-tests/nts-results.xml" php run-tests.php -d "extension=/mnt/ramdisk/cargo/profiler-release/libdatadog_php_profiling.so" --show-diff -g "FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP" "phpt") |
51 | 51 |
|
52 | 52 | - touch build.rs #make sure `build.rs` gets executed after `switch-php` call |
53 | 53 |
|
54 | 54 | - '# ZTS' |
55 | 55 | - command -v switch-php && switch-php "${PHP_MAJOR_MINOR}-zts" |
56 | | - - cargo build --profile profiler-release --all-features |
| 56 | + - cargo build --profile profiler-release |
57 | 57 | - (cd tests; TEST_PHP_JUNIT="${CI_PROJECT_DIR}/artifacts/profiler-tests/zts-results.xml" php run-tests.php -d "extension=/mnt/ramdisk/cargo/profiler-release/libdatadog_php_profiling.so" --show-diff -g "FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP" "phpt") |
58 | 58 | after_script: |
59 | 59 | - .gitlab/upload-junit-to-datadog.sh "test.source.file:profiling" |
|
67 | 67 | "clippy NTS": |
68 | 68 | stage: test |
69 | 69 | tags: [ "arch:amd64" ] |
70 | | - image: registry.ddbuild.io/images/mirror/datadog/dd-trace-ci:php-${PHP_MAJOR_MINOR}_bookworm-5 |
| 70 | + image: registry.ddbuild.io/images/mirror/datadog/dd-trace-ci:php-${PHP_MAJOR_MINOR}_bookworm-6 |
71 | 71 | variables: |
72 | 72 | KUBERNETES_CPU_REQUEST: 5 |
73 | 73 | KUBERNETES_MEMORY_REQUEST: 3Gi |
|
83 | 83 | - sed -i -e "s/crate-type.*$/crate-type = [\"rlib\"]/g" Cargo.toml |
84 | 84 | - cargo clippy --all-targets --all-features -- -D warnings -Aunknown-lints |
85 | 85 |
|
| 86 | +"Cargo test": |
| 87 | + stage: test |
| 88 | + tags: [ "arch:amd64" ] |
| 89 | + image: registry.ddbuild.io/images/mirror/datadog/dd-trace-ci:php-8.5_bookworm-5 |
| 90 | + variables: |
| 91 | + KUBERNETES_CPU_REQUEST: 5 |
| 92 | + KUBERNETES_MEMORY_REQUEST: 3Gi |
| 93 | + KUBERNETES_MEMORY_LIMIT: 4Gi |
| 94 | + # CARGO_TARGET_DIR: /mnt/ramdisk/cargo # ramdisk?? |
| 95 | + libdir: /tmp/datadog-profiling |
| 96 | + script: |
| 97 | + - switch-php nts # not compatible with debug |
| 98 | + - cd profiling |
| 99 | + - cargo test --all-features |
0 commit comments