Skip to content

fix(ci): isolate tests from egress proxy - #4078

Merged
realFlowControl merged 3 commits into
masterfrom
florian/ciexe-714-unset-fabric-proxy-for-phpt
Jul 30, 2026
Merged

fix(ci): isolate tests from egress proxy#4078
realFlowControl merged 3 commits into
masterfrom
florian/ciexe-714-unset-fabric-proxy-for-phpt

Conversation

@realFlowControl

@realFlowControl realFlowControl commented Jul 30, 2026

Copy link
Copy Markdown
Member

Description

The Fabric Egress Gateway now injects proxy environment variables into CI jobs and routes outbound traffic through a local fabric-proxy sidecar. This changed tests that rely on direct network failure semantics: upstream curl PHPTs received proxy response bodies instead of curl errors, curl and Guzzle integration tests reached the proxy for deliberately invalid hosts, and tracer startup diagnostics no longer reported an unreachable agent. The AppSec PHPT harness also copied HTTP_PROXY into $_SERVER and reported it as an incoming Proxy request header.

This unsets the HTTP, HTTPS, and fallback proxy variables immediately before PHP language, integration, web, AppSec extension, AppSec coverage, and PECL test execution. AppSec performs the cleanup in run-tests-wrapper.sh, after xtest dependencies have been built but before the PHPT runner starts. The proxy remains available to earlier package installation, Composer, Cargo, CMake, and service-readiness steps that may require network access, while tests run with the direct network behavior they expect.

Related infrastructure rollout: CIEXE-714.

Testing

  • PHP syntax checks for all modified CI generators
  • bash -n .gitlab/run_php_language_tests.sh appsec/cmake/run-tests-wrapper.sh
  • Generated and parsed profiler, tracer, AppSec, and package child-pipeline YAML successfully
  • Verified both test wrappers remove all configured proxy variants
  • Reproduced the curl failures with a local HTTP proxy returning the observed response bodies

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Jul 30, 2026

Copy link
Copy Markdown

Pipelines  Tests

Unblock PR with BitsAI

⚠️ Warnings

🚦 11 Pipeline jobs failed

DataDog/apm-reliability/dd-trace-php | framework test: [phpredis5]   View in Datadog   GitLab

DataDog/apm-reliability/dd-trace-php | pecl tests: [7.1]   View in Datadog   GitLab

DataDog/apm-reliability/dd-trace-php | pecl tests: [7.2]   View in Datadog   GitLab

View all 11 failed jobs.

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

Useful? React with 👍 / 👎

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

@realFlowControl realFlowControl changed the title fix(ci): isolate PHPTs from Fabric egress proxy fix(ci): isolate tests from Fabric egress proxy Jul 30, 2026
@realFlowControl
realFlowControl marked this pull request as ready for review July 30, 2026 09:00
@realFlowControl
realFlowControl requested a review from a team as a code owner July 30, 2026 09:00

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 847cfbb738

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .gitlab/generate-tracer.php
Comment thread .gitlab/generate-appsec.php Outdated
Comment thread .gitlab/generate-appsec.php Outdated
@realFlowControl realFlowControl changed the title fix(ci): isolate tests from Fabric egress proxy fix(ci): isolate tests from egress proxy Jul 30, 2026
@realFlowControl
realFlowControl requested a review from a team as a code owner July 30, 2026 10:13
@realFlowControl
realFlowControl force-pushed the florian/ciexe-714-unset-fabric-proxy-for-phpt branch from 914a290 to 645c602 Compare July 30, 2026 10:25
@realFlowControl
realFlowControl merged commit e3b075e into master Jul 30, 2026
2182 of 2196 checks passed
@realFlowControl
realFlowControl deleted the florian/ciexe-714-unset-fabric-proxy-for-phpt branch July 30, 2026 11:26
@github-actions github-actions Bot added this to the 1.24.0 milestone Jul 30, 2026
cataphract pushed a commit that referenced this pull request Aug 2, 2026
* fix(ci): isolate PHPTs from Fabric egress proxy

* fix(ci): isolate integration tests from Fabric proxy

* fix(appsec): unset proxy in test wrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants