Repository navigation
test(npm): fix TCP congestion e2e suite and enable it in CI - #56683
gh-worker-dd-mergequeue-cf854d[bot] merged 10 commits into
Conversation
Tests routinely succeed while their `iperf3 -t 60` client is still mid-session, so the next test's BeforeTest killall aborts the server's current session. The single-session `iperf3 -s -D` server may still be finishing (or wedged on) the aborted session when the next test's client connects, which manifests as a rejected cookie exchange followed by a data connection that transfers nothing — the signature seen in the flaky TestTCPCongestion_RecoveryCount failures (288 retransmits, 0 bytes, 0 recovery events). BeforeTest only restarted the server if it had died; an alive-but- wedged server was never recovered. Kill the daemon, wait for it to release port 5201, start a fresh listener, and wait until it accepts connections again.
The ubuntu:22.04 containers ship procps (pgrep/pkill) but not psmisc (killall), so BeforeTest's killall silently failed and the subsequent pgrep wait timed out with exit 124, failing every subtest. - Replace all killall invocations with pkill -9 -x - Wait for port 5201 to be released instead of waiting for the iperf3 process to disappear: a killed daemonized process can linger as a zombie that pgrep still reports
There was a problem hiding this comment.
AI review by Codex (OpenAI) - workflow run
The patch is incorrect: enabling this suite introduces public DockerHub pulls and runtime Ubuntu package downloads into CI, contrary to the E2E dependency requirements. The cleanup changes otherwise look reasonable. Validation was limited to static review.
…estion-fixes-enable
Gitlab CI Configuration ChangesModified Jobsnew-e2e-npm-packages new-e2e-npm-packages:
after_script:
- $CI_PROJECT_DIR/tools/ci/junit_upload.sh "junit-${CI_JOB_ID}.tgz" "$E2E_RESULT_JSON"
- "if [ -d \"$E2E_COVERAGE_OUT_DIR\" ]; then\n dda inv -- -e coverage.process-e2e-coverage-folders\
\ $E2E_COVERAGE_OUT_DIR\n dda inv -- -e dyntest.compute-and-upload-job-index\
\ --bucket-uri $S3_PERMANENT_ARTIFACTS_URI --coverage-folder $E2E_COVERAGE_OUT_DIR\
\ --commit-sha $CI_COMMIT_SHA --job-id $CI_JOB_ID\nfi\n"
- "if [ -d \"$E2E_COVERAGE_OUT_DIR\" ]; then\n DD_API_KEY=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh\
\ $AGENT_API_KEY_ORG2 token) || exit $?; export DD_API_KEY\n for coverage in\
\ \"$E2E_COVERAGE_OUT_DIR\"/*/coverage.txt; do\n datadog-ci coverage upload\
\ --format=go-coverprofile \"$coverage\" || true\n done\nfi\n"
artifacts:
expire_in: 2 weeks
paths:
- $E2E_OUTPUT_DIR
- $E2E_RESULT_JSON
- junit-*.tgz
- $E2E_COVERAGE_OUT_DIR
reports:
annotations:
- $EXTERNAL_LINKS_PATH
when: always
before_script:
- mkdir -p $GOPATH/pkg/mod/cache && zstd -dc modcache_e2e.tar.zst | tar xf - -C
$GOPATH/pkg/mod/cache
- rm -f modcache_e2e.tar.zst
- mkdir -p ~/.pulumi && zstd -dc pulumi_plugins.tar.zst | tar xf - -C ~/.pulumi
- rm -f pulumi_plugins.tar.zst
- mkdir -p ~/.aws
- "if [ -n \"$E2E_USE_AWS_PROFILE\" ]; then\n echo Using agent-qa-ci aws profile\n\
\ $CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_QA_E2E profile >> ~/.aws/config\
\ || exit $?\n # Now all `aws` commands target the agent-qa profile\n export\
\ AWS_PROFILE=agent-qa-ci\nelse\n # Assume role to fetch only once credentials\
\ and avoid rate limits\n echo Assuming ddbuild-agent-ci role\n roleoutput=\"\
$(aws sts assume-role --role-arn arn:aws:iam::669783387624:role/ddbuild-agent-ci\
\ --external-id ddbuild-agent-ci --role-session-name RoleSession)\"\n export\
\ AWS_ACCESS_KEY_ID=\"$(echo \"$roleoutput\" | jq -r '.Credentials.AccessKeyId')\"\
\n export AWS_SECRET_ACCESS_KEY=\"$(echo \"$roleoutput\" | jq -r '.Credentials.SecretAccessKey')\"\
\n export AWS_SESSION_TOKEN=\"$(echo \"$roleoutput\" | jq -r '.Credentials.SessionToken')\"\
\nfi\n"
- $CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_QA_E2E ssh_public_key_rsa > $E2E_AWS_PUBLIC_KEY_PATH
|| exit $?
- touch $E2E_AWS_PRIVATE_KEY_PATH && chmod 600 $E2E_AWS_PRIVATE_KEY_PATH && $CI_PROJECT_DIR/tools/ci/fetch_secret.sh
$AGENT_QA_E2E ssh_key_rsa > $E2E_AWS_PRIVATE_KEY_PATH || exit $?
- $CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_QA_E2E ssh_public_key_rsa > $E2E_AZURE_PUBLIC_KEY_PATH
|| exit $?
- touch $E2E_AZURE_PRIVATE_KEY_PATH && chmod 600 $E2E_AZURE_PRIVATE_KEY_PATH &&
$CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_QA_E2E ssh_key_rsa > $E2E_AZURE_PRIVATE_KEY_PATH
|| exit $?
- $CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_QA_E2E ssh_public_key_rsa > $E2E_GCP_PUBLIC_KEY_PATH
|| exit $?
- touch $E2E_GCP_PRIVATE_KEY_PATH && chmod 600 $E2E_GCP_PRIVATE_KEY_PATH && $CI_PROJECT_DIR/tools/ci/fetch_secret.sh
$AGENT_QA_E2E ssh_key_rsa > $E2E_GCP_PRIVATE_KEY_PATH || exit $?
- pulumi login "s3://dd-pulumi-state?region=us-east-1&awssdk=v2&profile=$AWS_PROFILE"
- ARM_CLIENT_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_AZURE client_id)
|| exit $?; export ARM_CLIENT_ID
- ARM_CLIENT_SECRET=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_AZURE token)
|| exit $?; export ARM_CLIENT_SECRET
- ARM_TENANT_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_AZURE tenant_id)
|| exit $?; export ARM_TENANT_ID
- ARM_SUBSCRIPTION_ID=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_AZURE subscription_id)
|| exit $?; export ARM_SUBSCRIPTION_ID
- $CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_GCP credentials_json > ~/gcp-credentials.json
|| exit $?
- export GOOGLE_APPLICATION_CREDENTIALS=~/gcp-credentials.json
- 'gcp_acr_key=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $E2E_GCP credentials_acr_readonly)
|| exit $?
export E2E_GCP_IMAGE_PULL_PASSWORD="b64=$(printf ''%s'' "$gcp_acr_key" | base64
-w 0)"
'
- dda inv -- -e gitlab.generate-ci-visibility-links --output=$EXTERNAL_LINKS_PATH
- export DD_ENV=nativetest
- export DD_CIVISIBILITY_ENABLED=true
- export DD_CIVISIBILITY_AGENTLESS_ENABLED=true
- export DD_CIVISIBILITY_FLAKY_RETRY_ENABLED=false
- export DD_TAGS="gitlab.pipeline_source:${CI_PIPELINE_SOURCE}"
- DD_API_KEY=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $AGENT_API_KEY_ORG2 token)
|| exit $?; export DD_API_KEY
- export WINDOWS_DDNPM_DRIVER=${WINDOWS_DDNPM_DRIVER:-$(dda inv release.get-release-json-value
"dependencies::WINDOWS_DDNPM_DRIVER" --no-worktree)}
- export WINDOWS_DDPROCMON_DRIVER=${WINDOWS_DDPROCMON_DRIVER:-$(dda inv release.get-release-json-value
"dependencies::WINDOWS_DDPROCMON_DRIVER" --no-worktree)}
cache:
- key:
files:
- .bazelversion
prefix: bazelversion-$CI_RUNNER_DESCRIPTION
paths:
- .cache/bazelisk
- .cache/bazel/*/install
policy: pull$BAZEL_CACHE_POLICY_SUFFIX
when: on_success
- key:
files:
- MODULE.bazel.lock
prefix: bazel-$CI_JOB_NAME
paths:
- .cache/bazel/*/cache
- .cache/go
- .cache/golangci-lint
- .cache/ms-go
- .cache/pip
policy: pull$BAZEL_CACHE_POLICY_SUFFIX
when: on_success
id_tokens:
BUILDBARN_ID_TOKEN:
aud: buildbarn.us1.ddbuild.io
image: registry.ddbuild.io/ci/datadog-agent-buildimages/linux$CI_IMAGE_LINUX_SUFFIX:$CI_IMAGE_LINUX
needs:
- go_e2e_deps
- artifacts: false
job: go_e2e_test_binaries
- job: new-e2e-base-coverage
optional: true
- job: publish_fakeintake
optional: true
- job: publish_fakeintake_pinned
optional: true
- agent_deb-x64-a7
- agent_rpm-x64-a7
rules:
- if: $RUN_E2E_TESTS == "off"
when: never
- if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/ || ($GIT_BASE_BRANCH != null &&
$GIT_BASE_BRANCH != "main" && $GIT_BASE_BRANCH !~ /^[67]\.[0-9]+\.x$/)
when: never
- changes:
compare_to: $COMPARE_TO_BRANCH
paths:
- test/fakeintake/cmd/server/**/*.go
- test/fakeintake/server/**/*.go
- test/fakeintake/aggregator/**/*.go
- test/fakeintake/api/**/*.go
- test/fakeintake/go.mod
- test/fakeintake/go.sum
- test/fakeintake/Dockerfile
- test/fakeintake/version/VERSION
- .gitlab/build/binary_build/fakeintake.yml
- .gitlab/deploy/container_build/fakeintake.yml
- .gitlab/deploy/dev_container_deploy/fakeintake.yml
if: $COMPARE_TO_BRANCH == "main"
variables:
E2E_FAKEINTAKE_IMAGE_OVERRIDE: public.ecr.aws/datadog/fakeintake:v$CI_COMMIT_SHORT_SHA
when: on_success
- if: $RUN_E2E_TESTS == "on"
when: on_success
- if: $CI_COMMIT_BRANCH == "main"
when: on_success
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+\.x$/
when: on_success
- if: $CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$/
when: on_success
- changes:
compare_to: $COMPARE_TO_BRANCH
paths:
- test/fakeintake/**/*
- .gitlab/build/binary_build/fakeintake.yml
- .gitlab/deploy/container_build/fakeintake.yml
- .gitlab/deploy/dev_container_deploy/fakeintake.yml
when: on_success
- changes:
compare_to: $COMPARE_TO_BRANCH
paths:
- pkg/config/schema/**/*
- .gitlab/test/e2e/*.yml
- bazel/rules/go_shim/**/*
- internal/tools/**/*
- test/e2e-framework/**/*
- test/new-e2e/go.mod
- flakes.yaml
- release.json
- changes:
compare_to: $COMPARE_TO_BRANCH
paths:
- pkg/network/**/*
- test/new-e2e/tests/npm/**/*
- if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/ || ($GIT_BASE_BRANCH != null &&
$GIT_BASE_BRANCH != "main" && $GIT_BASE_BRANCH !~ /^[67]\.[0-9]+\.x$/)
when: never
- allow_failure: true
when: manual
script:
- export IS_DEV_BRANCH="$(dda inv -- -e pipeline.is-dev-branch)"
- DYNAMIC_TESTS_BREAKGLASS=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $DYNAMIC_TESTS_BREAKGLASS
value) || exit $?; export DYNAMIC_TESTS_BREAKGLASS
- "if [ \"$DYNAMIC_TESTS_BREAKGLASS\" == \"true\" ] || [ \"$IS_DEV_BRANCH\" == \"\
false\" ] || [ \"$RUN_E2E_TESTS\" == \"on\" ]; then\n export DYNAMIC_TESTS_FLAG=\"\
\"\nfi\n"
- export E2E_IMAGE_PULL_PASSWORD=$(aws ecr get-login-password),$E2E_GCP_IMAGE_PULL_PASSWORD
- dda inv -- -e new-e2e-tests.run $DYNAMIC_TESTS_FLAG $PRE_BUILT_BINARIES_FLAG $MAX_RETRIES_FLAG
--local-package $CI_PROJECT_DIR/$OMNIBUS_BASE_DIR --result-json $E2E_RESULT_JSON
--targets $TARGETS --junit-tar junit-${CI_JOB_ID}.tgz ${EXTRA_PARAMS} --test-washer
--logs-folder=$E2E_OUTPUT_DIR/logs --logs-post-processing --logs-post-processing-test-depth=$E2E_LOGS_PROCESSING_TEST_DEPTH
stage: e2e
tags:
- arch:amd64
- specific:true
variables:
BAZELISK_HOME: $XDG_CACHE_HOME/bazelisk
DYNAMIC_TESTS_FLAG: --impacted
E2E_AWS_PRIVATE_KEY_PATH: /tmp/agent-qa-aws-ssh-key
E2E_AWS_PUBLIC_KEY_PATH: /tmp/agent-qa-aws-ssh-key.pub
E2E_AZURE_PRIVATE_KEY_PATH: /tmp/agent-qa-azure-ssh-key
E2E_AZURE_PUBLIC_KEY_PATH: /tmp/agent-qa-azure-ssh-key.pub
E2E_COMMIT_SHA: $CI_COMMIT_SHORT_SHA
E2E_COVERAGE_OUT_DIR: $CI_PROJECT_DIR/coverage
E2E_GCP_PRIVATE_KEY_PATH: /tmp/agent-qa-gcp-ssh-key
E2E_GCP_PUBLIC_KEY_PATH: /tmp/agent-qa-gcp-ssh-key.pub
E2E_IMAGE_PULL_REGISTRY: 669783387624.dkr.ecr.us-east-1.amazonaws.com,us-central1-docker.pkg.dev
E2E_IMAGE_PULL_USERNAME: AWS,_json_key
E2E_KEY_PAIR_NAME: datadog-agent-ci-rsa
E2E_LOGS_PROCESSING_TEST_DEPTH: 1
E2E_OUTPUT_DIR: $CI_PROJECT_DIR/e2e-output
E2E_PIPELINE_ID: $CI_PIPELINE_ID
E2E_PREBUILD_S3_URI: $S3_PERMANENT_ARTIFACTS_URI/e2e-pre-build/$CI_PIPELINE_ID
E2E_RESULT_JSON: $CI_PROJECT_DIR/e2e_test_output.json
E2E_SKIP_WINDOWS: $SKIP_WINDOWS
E2E_USE_AWS_PROFILE: 'true'
EXTERNAL_LINKS_PATH: external_links_$CI_JOB_ID.json
- EXTRA_PARAMS: --run "TestEC2(VM|VMSELinux|VMDirect)Suite"
+ EXTRA_PARAMS: --run "TestEC2(VM|VMSELinux|VMDirect|TCPCongestion)Suite"
? ++++++++++++++
FLAKY_PATTERNS_CONFIG: $CI_PROJECT_DIR/flaky-patterns-runtime.yaml
GIT_DEPTH: 0
GIT_STRATEGY: clone
KUBERNETES_CPU_LIMIT: 16
KUBERNETES_CPU_REQUEST: 6
KUBERNETES_MEMORY_LIMIT: 16Gi
KUBERNETES_MEMORY_REQUEST: 12Gi
MAX_RETRIES_FLAG: ''
ON_NIGHTLY_FIPS: 'true'
PRE_BUILT_BINARIES_FLAG: --use-prebuilt-binaries
REMOTE_STACK_CLEANING: 'true'
SHOULD_RUN_IN_FLAKES_FINDER: 'true'
TARGETS: ./tests/npm
TEAM: cloud-network-monitoring
XDG_CACHE_HOME: $CI_PROJECT_DIR/.cacheChanges Summary
ℹ️ Diff available in the job log. |
Files inventory check summaryFile checks results against ancestor a23ad131: Results for datadog-agent_7.86.0~devel.git.48.eaeff5b.pipeline.141956415-1_amd64.deb:No change detected Results for datadog-iot-agent_7.86.0~devel.git.48.eaeff5b.pipeline.141956415-1_amd64.deb:No change detected |
TestTCPCongestion_ECN applied `netem loss 10% ecn` before launching iperf3, so the TCP handshakes crossed the loss. If the data connection's SYN was dropped (10% chance), the kernel retransmitted it without the ECE/CWR negotiation bits (RFC 3168 fallback, net.ipv4.tcp_ecn_fallback), the connection negotiated without ECN, its packets were never marked ECN-capable, and netem's ecn option drops such packets instead of CE-marking them — LastTcpDeliveredCe stayed 0 and the test timed out. Observed in run 076: control connection ecn=true, data connection ecn=false with 284MB transferred, 22945 retransmits, ce=0. Establish the iperf3 session first, wait for both connections (control + data) to reach ESTABLISHED, then apply the qdisc — the handshake is loss-free and both connections negotiate ECN deterministically. The wait is a reusable helper, waitForTCPEstablishedConnections, which counts ESTABLISHED entries for the destination port in /proc/net/tcp. It relies only on grep, so it also works on container images without networking tools like ss or netstat.
waitForTCPEstablishedConnections uses fmt.Sprintf but the import was missing, breaking compilation of the npm e2e package and every CI job that builds it (lint, bazel:test, go_e2e_test_binaries, new-e2e-npm-eks-init).
There was a problem hiding this comment.
AI review by Codex (OpenAI) - workflow run
The patch is incorrect: enabling this suite in CI introduces runtime dependencies on DockerHub and public Ubuntu package repositories. The cleanup and ECN changes otherwise appear consistent with the intended behavior. Infrastructure tests were not run.
- Surface the real host.Execute error instead of a generic 'timed out' message in waitForTCPEstablishedConnections - Replace %q with POSIX single-quote escaping in the grep pattern so the shell command is correct by construction - Give the iperf3 port-release wait a descriptive failure message via Execute + t.Fatalf instead of a hard MustExecute SSH error
…estion-fixes-enable
Replace the stock ubuntu:22.04 containers (runtime apt-get installs of
iperf3, iproute2, netcat-openbsd, python3) with the pinned
ghcr.io/datadog/apps-npm-tools image, following the dockercompose_httpbin
{APPS_VERSION} templating pattern.
Requires the apps-npm-tools image containing the congestion tools
(DataDog/test-infra-definitions#1879) and the accompanying apps.Version
bump; to be brought into #56683 once that image is
released.
v0.0.9 is the first apps-npm-tools image release containing the TCP congestion tools (iperf3, iproute2, netcat-openbsd, procps, python3), added in DataDog/test-infra-definitions#1879 and published via the v0.0.9 tag. The v0.0.8 images were tagged before that PR merged and do not contain the tools. Needed by the TCP congestion e2e suite (#56683), which now pins ghcr.io/datadog/apps-npm-tools:{APPS_VERSION}.
Regression DetectorRegression Detector ResultsMetrics dashboard Baseline: 0b75ce8 Optimization Goals: ✅ No significant changes detected
|
| perf | experiment | goal | Δ mean % | Δ mean % CI | trials | links |
|---|---|---|---|---|---|---|
| ➖ | dsd_uds_10mb_3k_timestamped_contexts_cpu | % cpu utilization | +0.59 | [+0.35, +0.82] | 1 | Logs |
| ➖ | quality_gate_idle | memory utilization | +0.10 | [+0.05, +0.14] | 1 | Logs bounds checks dashboard |
| ➖ | quality_gate_security_no_fs_load | memory utilization | +0.02 | [-0.06, +0.10] | 1 | Logs bounds checks dashboard |
| ➖ | quality_gate_idle_all_features | memory utilization | -0.01 | [-0.09, +0.07] | 1 | Logs bounds checks dashboard |
| ➖ | quality_gate_metrics_logs | memory utilization | -0.01 | [-0.23, +0.21] | 1 | Logs bounds checks dashboard |
| ➖ | dsd_uds_10mb_3k_timestamped_contexts_memory | memory utilization | -0.01 | [-0.23, +0.20] | 1 | Logs |
| ➖ | quality_gate_security_mean_fs_load | memory utilization | -0.06 | [-0.10, -0.01] | 1 | Logs bounds checks dashboard |
| ➖ | quality_gate_security_idle | memory utilization | -0.08 | [-0.11, -0.05] | 1 | Logs bounds checks dashboard |
| ➖ | quality_gate_logs | % cpu utilization | -0.09 | [-0.94, +0.76] | 1 | Logs bounds checks dashboard |
| ➖ | python_openmetrics | % cpu utilization | -0.11 | [-0.78, +0.56] | 1 | Logs bounds checks dashboard |
| ➖ | dsd_uds_client_drop_detector_cpu | % cpu utilization | -0.25 | [-0.75, +0.25] | 1 | Logs |
| ➖ | quality_gate_private_action_runner | memory utilization | -0.61 | [-0.74, -0.49] | 1 | Logs bounds checks dashboard |
Bounds Checks: ✅ Passed
| perf | experiment | bounds_check_name | replicates_passed | observed_value | links |
|---|---|---|---|---|---|
| ✅ | python_openmetrics | checks_execution_time | 10/10 | 78.79 ≤ 100 | bounds checks dashboard |
| ✅ | python_openmetrics | cpu_usage | 10/10 | 1337.54 ≤ 1500 | bounds checks dashboard |
| ✅ | python_openmetrics | memory_usage | 10/10 | 4.30GiB ≤ 4.75GiB | bounds checks dashboard |
| ✅ | quality_gate_idle | intake_connections | 10/10 | 4 ≤ 5 | bounds checks dashboard |
| ✅ | quality_gate_idle | memory_usage | 10/10 | 176.44MiB ≤ 181MiB | bounds checks dashboard |
| ✅ | quality_gate_idle | total_bytes_received | 10/10 | 756.29KiB ≤ 819.20KiB | bounds checks dashboard |
| ✅ | quality_gate_idle_all_features | intake_connections | 10/10 | 2 ≤ 5 | bounds checks dashboard |
| ✅ | quality_gate_idle_all_features | memory_usage | 10/10 | 473.84MiB ≤ 542MiB | bounds checks dashboard |
| ✅ | quality_gate_idle_all_features | total_bytes_received | 10/10 | 1.13MiB ≤ 1.25MiB | bounds checks dashboard |
| ✅ | quality_gate_logs | intake_connections | 10/10 | 18 ≤ 40 | bounds checks dashboard |
| ✅ | quality_gate_logs | memory_usage | 10/10 | 212.26MiB ≤ 228MiB | bounds checks dashboard |
| ✅ | quality_gate_logs | missed_bytes | 10/10 | 0B = 0B | bounds checks dashboard |
| ✅ | quality_gate_logs | total_bytes_received | 10/10 | 263.09MiB ≤ 292MiB | bounds checks dashboard |
| ✅ | quality_gate_metrics_logs | cpu_usage | 10/10 | 360.87 ≤ 2000 | bounds checks dashboard |
| ✅ | quality_gate_metrics_logs | intake_connections | 10/10 | 17 ≤ 40 | bounds checks dashboard |
| ✅ | quality_gate_metrics_logs | memory_usage | 10/10 | 414.17MiB ≤ 455MiB | bounds checks dashboard |
| ✅ | quality_gate_metrics_logs | missed_bytes | 10/10 | 0B = 0B | bounds checks dashboard |
| ✅ | quality_gate_metrics_logs | total_bytes_received | 10/10 | 0.94GiB ≤ 1.04GiB | bounds checks dashboard |
| ✅ | quality_gate_private_action_runner | memory_usage | 10/10 | 74.10MiB ≤ 77MiB | bounds checks dashboard |
| ✅ | quality_gate_security_idle | cpu_usage | 10/10 | 30.16 ≤ 100 | bounds checks dashboard |
| ✅ | quality_gate_security_idle | memory_usage | 10/10 | 323.18MiB ≤ 357MiB | bounds checks dashboard |
| ✅ | quality_gate_security_mean_fs_load | cpu_usage | 10/10 | 71.57 ≤ 200 | bounds checks dashboard |
| ✅ | quality_gate_security_mean_fs_load | memory_usage | 10/10 | 312.22MiB ≤ 337MiB | bounds checks dashboard |
| ✅ | quality_gate_security_no_fs_load | cpu_usage | 10/10 | 23.64 ≤ 100 | bounds checks dashboard |
| ✅ | quality_gate_security_no_fs_load | memory_usage | 10/10 | 320.17MiB ≤ 348MiB | bounds checks dashboard |
Explanation
Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%
Performance changes are noted in the perf column of each table:
- ✅ = significantly better comparison variant performance
- ❌ = significantly worse comparison variant performance
- ➖ = no significant change in performance
A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".
For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:
-
Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.
-
Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.
-
Its configuration does not mark it "erratic".
CI Pass/Fail Decision
✅ Passed. All Quality Gates passed.
- quality_gate_idle_all_features, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.
- quality_gate_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.
- quality_gate_idle_all_features, bounds check intake_connections: 10/10 replicas passed. Gate passed.
- quality_gate_idle, bounds check intake_connections: 10/10 replicas passed. Gate passed.
- quality_gate_idle, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.
- quality_gate_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
- quality_gate_security_mean_fs_load, bounds check memory_usage: 10/10 replicas passed. Gate passed.
- quality_gate_security_mean_fs_load, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
- quality_gate_security_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
- quality_gate_security_idle, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
- quality_gate_security_no_fs_load, bounds check memory_usage: 10/10 replicas passed. Gate passed.
- quality_gate_security_no_fs_load, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
- quality_gate_metrics_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
- quality_gate_metrics_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
- quality_gate_metrics_logs, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.
- quality_gate_metrics_logs, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
- quality_gate_metrics_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
- quality_gate_private_action_runner, bounds check memory_usage: 10/10 replicas passed. Gate passed.
- quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
- quality_gate_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
- quality_gate_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
- quality_gate_logs, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.
…57555) ### What does this PR do? Patch `rules_go` with bazel-contrib/rules_go#4727, which declares a 2048MB `resource_set` for `GoLink` instead of Bazel's 250MB default. ### Motivation `go_e2e_test_binaries` OOM kills resurfaced on `main` ([#incident-61714](https://dd.enterprise.slack.com/archives/C0C6V8J63B3)) after #56683 bumped a constant in a package every e2e test depends on, forcing all test binaries to relink at once instead of hitting the remote cache, leading to either: - `OOMKilled` ([example](https://gitlab.ddbuild.io/DataDog/datadog-agent/-/jobs/2108531979)): ``` ERROR: Job failed (system failure): Error in container build: exit code: 137, reason: 'OOMKilled' ``` - or `Segmentation fault` ([example](https://gitlab.ddbuild.io/DataDog/datadog-agent/-/jobs/2108458779)): ``` collect2: fatal error: ld terminated with signal 11 [Segmentation fault] ``` Bazel accounts 250MB per action and thus runs 16 of them at once, one per CPU granted since #56994, whereas a Go link peaks at up to 2490MB RSS, beyond the 32Gi memory limit (shared with Bazel's JVM, among others). ### Describe how you validated your changes `//pkg/version:version_test` builds with the patch applied and `MODULE.bazel.lock` stays unchanged. Co-authored-by: regis.desgroppes <[email protected]>
…57555) ### What does this PR do? Patch `rules_go` with bazel-contrib/rules_go#4727, which declares a 2048MB `resource_set` for `GoLink` instead of Bazel's 250MB default. ### Motivation `go_e2e_test_binaries` OOM kills resurfaced on `main` ([#incident-61714](https://dd.enterprise.slack.com/archives/C0C6V8J63B3)) after #56683 bumped a constant in a package every e2e test depends on, forcing all test binaries to relink at once instead of hitting the remote cache, leading to either: - `OOMKilled` ([example](https://gitlab.ddbuild.io/DataDog/datadog-agent/-/jobs/2108531979)): ``` ERROR: Job failed (system failure): Error in container build: exit code: 137, reason: 'OOMKilled' ``` - or `Segmentation fault` ([example](https://gitlab.ddbuild.io/DataDog/datadog-agent/-/jobs/2108458779)): ``` collect2: fatal error: ld terminated with signal 11 [Segmentation fault] ``` Bazel accounts 250MB per action and thus runs 16 of them at once, one per CPU granted since #56994, whereas a Go link peaks at up to 2490MB RSS, beyond the 32Gi memory limit (shared with Bazel's JVM, among others). ### Describe how you validated your changes `//pkg/version:version_test` builds with the patch applied and `MODULE.bazel.lock` stays unchanged. Co-authored-by: regis.desgroppes <[email protected]> 353a00a
What does this PR do?
Fixes two bugs in the TCP congestion e2e suite's per-test cleanup and wires
the suite into CI for the first time:
BeforeTestnow kills and restarts the iperf3 server before every test,waiting for port 5201 to be released before starting a fresh listener. The
previous "restart only if it died" logic let an alive-but-wedged
single-session server reject the next test's client (failed cookie exchange,
zero bytes transferred) — the signature seen in flaky
TestTCPCongestion_RecoveryCountfailures.killallwithpkill -9 -xthroughout: the ubuntu:22.04containers ship procps but not psmisc, so
killallsilently failed and thesubsequent
pgrepwait timed out, failing every subtest.TestEC2TCPCongestionSuiteto thenew-e2e-npm-packagesjob's--runregex in.gitlab/test/e2e/e2e_npm.yml, so the suite finally runsin CI alongside the other EC2 VM package suites.
Motivation
The suite existed on main but was never selected by any CI job's
--runregex, so its failures went unnoticed. Running it manually surfaced both
cleanup bugs above.
Jira: https://datadoghq.atlassian.net/browse/CNM-5620
Describe how you validated your changes
Ran the TCP congestion e2e suite 10+ times after the fix — it succeeded
every time; before the fix it failed in ~30% of attempts. Verified the
updated
--runregex matches exactly the four intended EC2 suites and noneof the containerized/WKit/EKS/Cilium ones.