Skip to content

[main-fix] UAT runner: a per-step timeout in the scenario format (default stays 30 s, a step may set timeout_s up to a cap of 120 s): route 3 holds a create up to LETFLOW_PROVISIONER_CREATE_WAIT_SECONDS (0..55, QA 30) before its 202, so the runner's 30 s read timeout can never receive it - #5232

Merged
tvolodi merged 4 commits into
mainfrom
team/T-3316
Nov 29, 2026

Conversation

@tvolodi

@tvolodi tvolodi commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

The UAT runner could not read the provisioner route 3: POST /admin/v1/tenants holds a process create for up to LETFLOW_PROVISIONER_CREATE_WAIT_SECONDS (0..55 s, 30 s on QA) before its 202, so the runner's fixed 30 s read timeout always died first ("transport error: the read operation timed out" after 30435 ms in BP-QOIMEKS-REHEARSAL-03 r1). A step may now carry timeout_s (a number of 1..120 s, the default stays the 30 s of HTTP_TIMEOUT_S), and the runner uses it for that step's own calls against the application and for nothing else: the scenario validator, check_processes.py and check_catalog.py all refuse a file that names a value outside the range, while the poll window, the wait of wait_task and of wait_mail, the mail trap and the identity provider keep their own bounds. QA's wait, the nginx timeout and the provisioner itself are untouched — only the client learns to wait.

Refs: no GitHub issue is linked (the PM's task of 29 Nov, order B).

Gates

Tier: FULL

  • CODE-DESIGN-VALIDATOR: N/A (the change workflow has no design step) — evidence: project/workflows/change.toml (the chain starts at implement, there is no design step)
  • SECURITY-REVIEWER: N/A (the change touches no sensitive path: the sensitive_scope step found none, and the diff is the UAT tooling under scripts/uat/ plus one wrapper test) — evidence: scripts/uat/runner.py, scripts/uat/check_processes.py, scripts/uat/check_catalog.py
  • REVIEWER: PASS_WITH_FINDINGS — evidence: mix test test/scripts/uat_tooling_test.exs -> "Result: 2 passed" (60.8 s)
  • TEST-DESIGN-VALIDATOR: PASS — evidence: scripts/uat/tests/test_step_timeout.py (15 tests), test/scripts/uat_tooling_test.exs
  • CI: pending — required checks run in the merge queue
    Introduced-by: 043e620
    Missed-by: none (not catchable before merge)

ai-dala-team and others added 3 commits November 29, 2026 05:38
…30 s, a step may set timeout_s up to a cap of 120 s): route 3 holds a create up to LETFLOW_PROVISIONER_CREATE_WAIT_SECONDS (0..55, QA 30) before its 202, so the runner's 30 s read timeout can never receive it

T-3316 implement attempt 1: Added the per-step read timeout `timeout_s` to the UAT scenario format (scripts/uat/runner.py). Rule: a plain number of 1..120 s, the default stays the current 30 s (`HTTP_TIMEOUT_S`). The runner uses it for the calls the step makes against the application (`api`, `assert_only`, `upload`, `repeat`, `parallel`, `for_each`, `page_through` and the reads of a `poll` step) and for nothing else: the poll window (`within_s`/`interval_s`), the waits of `wait_task`/`wait_mail`, the mail trap and the iden
…30 s, a step may set timeout_s up to a cap of 120 s): route 3 holds a create up to LETFLOW_PROVISIONER_CREATE_WAIT_SECONDS (0..55, QA 30) before its 202, so the runner's 30 s read timeout can never receive it

T-3316 implement attempt 2: Rework of T-3316 (attempt 2): all three findings of the review_confirm FAIL are addressed.

1) BLOCKER (the UAT tooling suite over the 60 s ExUnit default of test/scripts/uat_tooling_test.exs) — fixed twice over. The two slow cases of scripts/uat/tests/test_step_timeout.py now play AT THE SAME MOMENT against the same scripted server (the step with `timeout_s: 60` reads the server's answer at 35 s, the same step without it gives up at the default 30 s), so the file costs the 35 s of the server an
@tvolodi tvolodi changed the title UAT runner: a per-step timeout in the scenario format (default stays 30 s, a step may set timeout_s up to a cap of 120 s): route 3 holds a create up to LETFLOW_PROVISIONER_CREATE_WAIT_SECONDS (0..55, QA 30) before its 202, so the runner's 30 s read timeout can never receive it [main-fix] UAT runner: a per-step timeout in the scenario format (default stays 30 s, a step may set timeout_s up to a cap of 120 s): route 3 holds a create up to LETFLOW_PROVISIONER_CREATE_WAIT_SECONDS (0..55, QA 30) before its 202, so the runner's 30 s read timeout can never receive it Nov 29, 2026
@tvolodi
tvolodi added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit 623688b Nov 29, 2026
17 checks passed
@tvolodi
tvolodi deleted the team/T-3316 branch November 29, 2026 02:31
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