Skip to content

Commit 99ee2c1

Browse files
committed
test: add debug logs
Signed-off-by: Alexandre Rulleau <[email protected]>
1 parent 9b0c55d commit 99ee2c1

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

docker-compose.linux.override.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ services:
1616
# --- Alpine ---
1717
'8.0-alpine': { <<: *linux_php_service }
1818
# --- Buster ---
19-
'7.0-buster': { <<: *linux_php_service }
20-
'7.1-buster': { <<: *linux_php_service }
21-
'7.2-buster': { <<: *linux_php_service }
22-
'7.3-buster': { <<: *linux_php_service }
23-
'7.4-buster': { <<: *linux_php_service }
24-
'8.0-buster': { <<: *linux_php_service }
25-
'8.1-buster': { <<: *linux_php_service }
26-
'8.2-buster': { <<: *linux_php_service }
27-
'8.3-buster': { <<: *linux_php_service }
28-
'8.4-buster': { <<: *linux_php_service }
19+
'7.0-bookworm': { <<: *linux_php_service }
20+
'7.1-bookworm': { <<: *linux_php_service }
21+
'7.2-bookworm': { <<: *linux_php_service }
22+
'7.3-bookworm': { <<: *linux_php_service }
23+
'7.4-bookworm': { <<: *linux_php_service }
24+
'8.0-bookworm': { <<: *linux_php_service }
25+
'8.1-bookworm': { <<: *linux_php_service }
26+
'8.2-bookworm': { <<: *linux_php_service }
27+
'8.3-bookworm': { <<: *linux_php_service }
28+
'8.4-bookworm': { <<: *linux_php_service }

tests/ext/library_config/fleet_config.phpt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ copy(__DIR__.'/fleet_config.yaml', '/tmp/test_c_fleet_config.yaml');
1818
_DD_TEST_LIBRARY_CONFIG_FLEET_FILE=/tmp/test_c_fleet_config.yaml
1919
_DD_TEST_LIBRARY_CONFIG_LOCAL_FILE=/foo
2020
DD_TRACE_SPANS_LIMIT=42
21+
DD_TRACE_DEBUG=1
22+
DD_TRACE_LOG_FILE=/tmp/log-fleet-config.txt
2123
--INI--
2224
datadog.trace.agent_url="file://{PWD}/fleet-config-telemetry.out"
2325
--FILE--
@@ -68,6 +70,12 @@ for ($i = 0; $i < 100; ++$i) {
6870
}
6971
}
7072

73+
74+
if (!file_exists(__DIR__ . '/fleet-config-telemetry.out')) {
75+
var_dump("Telemetry file not found");
76+
var_dump(file_get_contents('/tmp/log-fleet-config.txt'));
77+
}
78+
7179
?>
7280
--EXPECT--
7381
DD_SERVICE: service_from_fleet_config

tests/ext/library_config/local_config.phpt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ copy(__DIR__.'/local_config.yaml', '/tmp/test_c_local_config.yaml');
1818
_DD_TEST_LIBRARY_CONFIG_FLEET_FILE=/foo
1919
_DD_TEST_LIBRARY_CONFIG_LOCAL_FILE=/tmp/test_c_local_config.yaml
2020
DD_TRACE_SPANS_LIMIT=42
21+
DD_TRACE_DEBUG=1
22+
DD_TRACE_LOG_FILE=/tmp/log-local-config.txt
2123
--INI--
2224
datadog.trace.agent_url="file://{PWD}/local-config-telemetry.out"
2325
--FILE--
@@ -68,6 +70,11 @@ for ($i = 0; $i < 100; ++$i) {
6870
}
6971
}
7072

73+
if (!file_exists(__DIR__ . '/local-config-telemetry.out')) {
74+
var_dump("Telemetry file not found");
75+
var_dump(file_get_contents('/tmp/log-local-config.txt'));
76+
}
77+
7178
?>
7279
--EXPECT--
7380
DD_SERVICE: service_from_local_config

0 commit comments

Comments
 (0)