Skip to content

fix: Throttle massive scatter gather regression test#2555

Merged
daryllimyt merged 1 commit intomainfrom
test/throttle
Apr 22, 2026
Merged

fix: Throttle massive scatter gather regression test#2555
daryllimyt merged 1 commit intomainfrom
test/throttle

Conversation

@daryllimyt
Copy link
Copy Markdown
Contributor

@daryllimyt daryllimyt commented Apr 22, 2026

Summary

Adds a test-local scheduler concurrency cap for test_scatter_gather_massive_payload_50x2mb_e2e.

Why

The massive scatter/gather regression test drives a ~100MB logical payload through 50 branches. Without a local cap, the test can pressure Temporal and object storage enough to produce partial gather results under load.

Impact

Only this regression test is throttled. Production defaults and the other large collection regression tests are unchanged.

Validation

  • uv run ruff check tests/temporal/test_large_collection_regressions.py
  • uv run ruff format --check tests/temporal/test_large_collection_regressions.py
  • uv run basedpyright tests/temporal/test_large_collection_regressions.py
  • TRACECAT__SERVICE_KEY=test-service-key uv run pytest tests/temporal/test_large_collection_regressions.py::test_scatter_gather_massive_payload_50x2mb_e2e -q

Summary by cubic

Caps the DSL scheduler concurrency to 8 within test_scatter_gather_massive_payload_50x2mb_e2e to stabilize the 50×2MB scatter/gather run under load. This is test-only; production defaults and other large-collection tests are unchanged.

  • Bug Fixes
    • Forces TRACECAT__DSL_SCHEDULER_MAX_PENDING_TASKS to 8 via env and config monkeypatch in this test to avoid load-induced partial gather results.

Written for commit b815acb. Summary will update on new commits.

@zeropath-ai
Copy link
Copy Markdown

zeropath-ai Bot commented Apr 22, 2026

No security or compliance issues detected. Reviewed everything up to b815acb.

Security Overview
Detected Code Changes
Change Type Relevant files
Configuration changes ► tests/temporal/test_large_collection_regressions.py
    Add MASSIVE_SCATTER_GATHER_MAX_PENDING_TASKS constant
    Set TRACECAT__DSL_SCHEDULER_MAX_PENDING_TASKS environment variable and configuration for scatter-gather massive payload test

@daryllimyt daryllimyt marked this pull request as ready for review April 22, 2026 20:21
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@daryllimyt daryllimyt changed the title [codex] Throttle massive scatter gather regression test fix: Throttle massive scatter gather regression test Apr 22, 2026
@daryllimyt daryllimyt merged commit 1d9dd98 into main Apr 22, 2026
14 checks passed
@daryllimyt daryllimyt deleted the test/throttle branch April 22, 2026 21:09
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.

1 participant