Repository navigation
Fix HQ smoke staging failures: slow scheduled report save, hung login - #432
Open
sameena1415 wants to merge 1 commit into
Open
sameena1415 wants to merge 1 commit into
sameena1415 wants to merge 1 commit into
Conversation
test_case_20_scheduled_report has failed on staging every day since at
least Oct 26. Saving a scheduled report on staging is slow on the server
(POST ~164 s, then the saved reports redirect 120+ s), which exceeds
Chrome's 300 s page load limit ("Timed out receiving message from
renderer"). Allow up to 600 s for this one step, still require the
success message and the report row, and print a [WARN] with the elapsed
time when it takes over 60 s.
The driver fixture leaked the Chrome process when the login page hung
and spent 300 s per hang. Cap the login page load at 120 s, quit the
broken browser and retry once with a new one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the HQ Smoke Tests failures on staging:
test_case_20_scheduled_report(failing daily since at least Oct 26) and the Nov 4 run where every worker's login timed out.Description
1.
test_case_20_scheduled_report(HQSmokeTests/testPages/reports/report_page.py)The test failed on every scheduled staging run with
TimeoutException: Timed out receiving message from renderer: 300.000right after clicking Submit. It passes on production, EU and India.Timed on staging (2026-11-05,
qa-automation):reports/saved/right afterThe report is saved (the rerun's cleanup kept finding and deleting it), but saving plus the redirect takes longer than Chrome's 300 s page load limit.
Change: new
submit_scheduled_report()allows up to 600 s for this step only, then restores the 300 s default. It still requires HQ's success message, andverify_scheduled_report()still checks the report row, so a report that isn't saved still fails. When the save takes over 60 s it prints a[WARN]with the elapsed time, so the staging slowness stays visible in the logs.2. Login fixture (common_utilities/fixtures.py)
In the Nov 4 run (41786613163) all four workers timed out loading the staging login page at the start, erroring 16 tests. When
LoginPagefailed, the fixture never quit the browser, leaving hung Chrome processes on the runner, and each hang cost 300 s.Change: cap the login page load at 120 s, quit the broken browser, and retry once with a new one after 15 s. The page load timeout goes back to 300 s after login. This fixture is shared, so other suites using it get the same behaviour.
Testing
test_case_20_scheduled_reportrun locally (headless Chrome, Python 3.13) against staging: passed. Save + redirect took 350 s and logged the[WARN]; the report was found and then deleted.Notes for review
qa-automationtakes over 5 minutes. Worth raising with the HQ team.Link to Jira Ticket (if applicable)
None.
QA Checklist
🤖 Generated with Claude Code