Skip to content

fix(ci): skip rc_process_tags.phpt before PHP 7.4 (skip-task sidecar leak)#3992

Open
Leiyks wants to merge 2 commits into
masterfrom
leiyks/fix-ci-rc-process-tags-windows
Open

fix(ci): skip rc_process_tags.phpt before PHP 7.4 (skip-task sidecar leak)#3992
Leiyks wants to merge 2 commits into
masterfrom
leiyks/fix-ci-rc-process-tags-windows

Conversation

@Leiyks

@Leiyks Leiyks commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

What this does

Adds the request-replayer family's standard SKIPIF guard to tests/ext/remote_config/rc_process_tags.phpt:

if (PHP_VERSION_ID < 70400) die("skip: Before PHP 7.4, the skip-task would cause the sidecar to fetch the info already.");

On PHP < 7.4 the SKIPIF/skip-task makes the sidecar fetch process tags during the skip phase, leaking the .skip entrypoint into the FILE-phase RC request (entrypoint.name:rc_process_tags.skip). RC is polled by the sidecar (ext/sidecar.c dd_sidecar_post_connect passes process_tags + RC config to the session), so the leak is a sidecar-state leak. This matches client_side_stats*, dd_trace_agent_env, shm_data_internal_fns.

Scope / honesty note

This fixes a real but non-fatal sub-failure: rc_process_tags.phpt was reporting FAIL on Windows 7.2/7.3 (now correctly SKIP).

It does NOT make the windows test_c [7.2]/[7.3] jobs green. Those jobs fail via a 1-hour timeout / hang that is independent of this test: with this fix applied, rc_process_tags is cleanly skipped but the job still hangs ~52 min after tests/ext/sandbox/die_in_sandbox.phpt and is killed at the 1h limit (identical hang point on master without this change). That hang is a separate issue (tracked separately) — likely a thread-mode sidecar shutdown deadlock on Windows.

So: merge this as a legitimate test-correctness cleanup, but it should not be expected to turn windows test_c green on its own.

@datadog-official

datadog-official Bot commented Jun 16, 2026

Copy link
Copy Markdown

Pipelines  Tests

Fix all issues with BitsAI

⚠️ Warnings

🚦 15 Pipeline jobs failed

DataDog/apm-reliability/dd-trace-php | ASAN test_c with multiple observers: [8.3]   View in Datadog   GitLab

DataDog/apm-reliability/dd-trace-php | Cargo test   View in Datadog   GitLab

DataDog/apm-reliability/dd-trace-php | test_extension_ci: [7.0]   View in Datadog   GitLab

View all 15 failed jobs.

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 54.09% (+0.01%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: f8bb9ac | Docs | Datadog PR Page | Give us feedback!

…leak)

On PHP < 7.4 the SKIPIF/skip-task causes the sidecar to fetch process
tags already, leaking the .skip entrypoint name into the FILE-phase RC
request (entrypoint.name:rc_process_tags.skip). This surfaced as the
windows test_c [7.2]/[7.3] failure (and 1h hang). Match the existing
request-replayer family guard (client_side_stats, dd_trace_agent_env,
shm_data_internal_fns) which skips on all platforms for PHP < 7.4.

[windows test_c]
@Leiyks Leiyks force-pushed the leiyks/fix-ci-rc-process-tags-windows branch from 3e027ba to 94db34b Compare June 16, 2026 15:31
@Leiyks Leiyks changed the title fix(ci): skip rc_process_tags.phpt on Windows PHP 7.2/7.3 — windows test_c fix(ci): skip rc_process_tags.phpt before PHP 7.4 (skip-task sidecar leak) Jun 16, 2026
@Leiyks Leiyks marked this pull request as ready for review June 16, 2026 15:35
@Leiyks Leiyks requested a review from a team as a code owner June 16, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants