Skip to content

Commit

Permalink
Revert "Disable sidecar on 8.3 (#2700)"
Browse files Browse the repository at this point in the history
This reverts commit d943c71.
  • Loading branch information
pierotibou authored and bwoebi committed Oct 2, 2024
1 parent f87446c commit 9f1fc46
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ define run_composer_with_retry
endef

define run_tests_without_coverage
$(TEST_EXTRA_ENV) $(ENV_OVERRIDE) php $(TEST_EXTRA_INI) -d datadog.instrumentation_telemetry_enabled=$(shell (test $(TELEMETRY_ENABLED) && echo 1) || (test $(PHP_MAJOR_MINOR) -ge 84 && echo 1) || echo 0) -d datadog.trace.sidecar_trace_sender=$(shell test $(PHP_MAJOR_MINOR) -ge 84 && echo 1 || echo 0) $(TRACER_SOURCES_INI) $(PHPUNIT) $(1) --filter=$(FILTER)
$(TEST_EXTRA_ENV) $(ENV_OVERRIDE) php $(TEST_EXTRA_INI) -d datadog.instrumentation_telemetry_enabled=$(shell (test $(TELEMETRY_ENABLED) && echo 1) || (test $(PHP_MAJOR_MINOR) -ge 83 && echo 1) || echo 0) -d datadog.trace.sidecar_trace_sender=$(shell test $(PHP_MAJOR_MINOR) -ge 83 && echo 1 || echo 0) $(TRACER_SOURCES_INI) $(PHPUNIT) $(1) --filter=$(FILTER)
endef

define run_tests_with_coverage
Expand Down
2 changes: 1 addition & 1 deletion ext/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ enum ddtrace_sampling_rules_format {
#define DD_INTEGRATION_ANALYTICS_ENABLED_DEFAULT false
#define DD_INTEGRATION_ANALYTICS_SAMPLE_RATE_DEFAULT 1

#if PHP_VERSION_ID >= 80400 || defined(_WIN32)
#if PHP_VERSION_ID >= 80300 || defined(_WIN32)
#define DD_SIDECAR_TRACE_SENDER_DEFAULT true
#else
#define DD_SIDECAR_TRACE_SENDER_DEFAULT false
Expand Down
2 changes: 1 addition & 1 deletion tests/ext/background-sender/sidecar_fallback.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Send telemetry about the sidecar being disabled
--SKIPIF--
<?php include __DIR__ . '/../includes/skipif_no_dev_env.inc'; ?>
<?php if (PHP_VERSION_ID < 80400) die('skip: Sidecar fallback exists only on PHP 8.4'); ?>
<?php if (PHP_VERSION_ID < 80300) die('skip: Sidecar fallback exists only on PHP 8.3'); ?>
<?php if (strncasecmp(PHP_OS, "WIN", 3) == 0) die('skip: There is no background sender on Windows'); ?>
<?php if (getenv('USE_ZEND_ALLOC') === '0' && !getenv("SKIP_ASAN")) die('skip: valgrind reports sendmsg(msg.msg_control) points to uninitialised byte(s), but it is unproblematic and outside our control in rust code'); ?>
<?php include __DIR__ . '/../includes/request_replayer.inc'; $rr = new RequestReplayer; usleep(5000); $rr->replayRequest(); /* avoid cross-pollination */ ?>
Expand Down
2 changes: 1 addition & 1 deletion tests/ext/sidecar_disabled_when_telemetry_disabled.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Sidecar should be disabled when telemetry is disabled
<?php
include_once 'startup_logging.inc';

// IN PHP 8.4, the sidecar is enabled
// IN PHP 8.3, the sidecar is enabled
// In all other versions the sidecar is disabled.
// But we disable in all cases if telemetry is disabled.
// So in this test, the sidecar should be disabled all the time
Expand Down
2 changes: 1 addition & 1 deletion tests/ext/sidecar_enabled.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Sidecar should be enabled by default on PHP 8.4
<?php
include_once 'startup_logging.inc';

// IN PHP 8.4, the sidecar is enabled by default, let's test this here
// IN PHP 8.3, the sidecar is enabled by default, let's test this here
// In all other versions the sidecar is disabled but this is tested by sidecar_disabled_when_telemetry_disabled.phpt
$logs = dd_get_startup_logs([], [
'DD_TRACE_DEBUG' => '1',
Expand Down

0 comments on commit 9f1fc46

Please sign in to comment.