Skip to content

fix: disable OTel and reduce concurrency for CI reliability#218

Merged
slayerjain merged 1 commit intomainfrom
fix/proxy-stress-ci-reliability
Apr 9, 2026
Merged

fix: disable OTel and reduce concurrency for CI reliability#218
slayerjain merged 1 commit intomainfrom
fix/proxy-stress-ci-reliability

Conversation

@nehagup
Copy link
Copy Markdown
Member

@nehagup nehagup commented Apr 9, 2026

Disables OTel exports and background noise in proxy-stress-test for
deterministic CI replay. Reduces concurrency from 42 to 10 for speed
while still exercising cert caching and PG reassembly.

@nehagup nehagup requested a review from khareyash05 as a code owner April 9, 2026 20:56
Copilot AI review requested due to automatic review settings April 9, 2026 20:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to make proxy-stress-test runs more deterministic in CI by disabling OpenTelemetry exporting and reducing background activity and concurrency.

Changes:

  • Reduce connection concurrency and batch size from 42 to 10 to stabilize CI runs.
  • Disable OTel exporting to avoid noisy/irrelevant errors during replay.
  • Disable background noise connections to improve determinism.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 41 to 42
# High concurrency to stress-test cert generation and error channel.
# 42 matches the production traffic pattern from Agoda travel-card-api.
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

The comment still states that 42 matches the production traffic pattern, but CONCURRENT_CONNS/BATCH_SIZE are now set to 10. Please update or reword these comments so the documented rationale matches the current values.

Suggested change
# High concurrency to stress-test cert generation and error channel.
# 42 matches the production traffic pattern from Agoda travel-card-api.
# Moderate concurrency to stress-test cert generation and error channel.
# 10 concurrent connections per batch matches the current replay setup.

Copilot uses AI. Check for mistakes.
Comment on lines 45 to 46
# OTel enabled with no collector — generates mock-not-found errors
# that stress the error channel during replay.
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

These comments say OTel is enabled with no collector, but OTEL_ENABLED is now set to "false". Update the comments to reflect that OTel exports are intentionally disabled for deterministic CI replay (or remove the now-misleading explanation).

Suggested change
# OTel enabled with no collector — generates mock-not-found errors
# that stress the error channel during replay.
# OTel exports are intentionally disabled to keep CI replay deterministic.
# Exporter settings remain here for easy local re-enablement if needed.

Copilot uses AI. Check for mistakes.
OTEL_ENABLED: "false"
OTEL_EXPORTER_OTLP_ENDPOINT: "localhost:4318"
OTEL_EXPORT_INTERVAL: "500ms"
# Background noise connections stress error channel between tests.
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

The comment implies background noise connections are used to stress the error channel, but BG_NOISE_CONNS is now "0". Update the comment to reflect that background noise is intentionally disabled for CI determinism.

Suggested change
# Background noise connections stress error channel between tests.
# Background noise connections are intentionally disabled for CI
# determinism between test runs.

Copilot uses AI. Check for mistakes.
@slayerjain slayerjain force-pushed the fix/proxy-stress-ci-reliability branch from 7f544b5 to 3907d1d Compare April 9, 2026 21:07
OTel exports to a non-existent collector cause mock-not-found errors
during replay which fail the test. Background noise connections add
unpredictable outgoing traffic that doesn't replay deterministically.
Reduced CONCURRENT_CONNS from 42 to 10 for faster CI runs while still
exercising the cert caching and PG reassembly code paths.

Signed-off-by: Shubham Jain <shubham@keploy.io>
Signed-off-by: slayerjain <shubhamkjain@outlook.com>
@slayerjain slayerjain force-pushed the fix/proxy-stress-ci-reliability branch from 3907d1d to c27e937 Compare April 9, 2026 21:09
@slayerjain slayerjain merged commit 73b5a9f into main Apr 9, 2026
19 checks passed
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.

3 participants