Skip to content

Another attempt at test_multiple_scriptrunners timeouts#1211

Merged
tconkling merged 3 commits intostreamlit:developfrom
tconkling:tim/ScriptRunnerFlakyTestTake2
Mar 10, 2020
Merged

Another attempt at test_multiple_scriptrunners timeouts#1211
tconkling merged 3 commits intostreamlit:developfrom
tconkling:tim/ScriptRunnerFlakyTestTake2

Conversation

@tconkling
Copy link
Copy Markdown
Contributor

@tconkling tconkling commented Mar 10, 2020

  • Shutdown the first scriptrunner before starting the next 3
  • Longer infinite-loop sleep time in widgts_script.py, so we don't wake up too frequently
  • Increase our wait_for_widgets_script_deltas timeout to 15 seconds (from 5)
  • Throw a detailed error from wait_for_widgets_script_deltas
  • On wait_for_widgets timeout, shutdown the scriptrunners so that the Circle job doesn't hang forever.

- Shutdown the first scriptrunner before starting the next 3
- Longer infinite-loop sleep time in widgts_script.py, so we don't wake up too frequently
- Increase our wait_for_widgets_script_deltas timeout to 15 seconds (from 5)
- Throw an error from wait_for_widgets_script_deltas, instead of just printing, so that the error is clearer.
@tconkling tconkling requested a review from a team as a code owner March 10, 2020 21:57
Copy link
Copy Markdown
Contributor

@nthmost nthmost left a comment

Choose a reason for hiding this comment

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

godspeed on this, hope it works

@tconkling tconkling merged commit 900c776 into streamlit:develop Mar 10, 2020
@tconkling tconkling deleted the tim/ScriptRunnerFlakyTestTake2 branch March 10, 2020 22:40
tconkling added a commit to tconkling/streamlit that referenced this pull request Mar 10, 2020
* develop:
  Another attempt at test_multiple_scriptrunners timeouts (streamlit#1211)
tconkling added a commit to tconkling/streamlit that referenced this pull request Mar 10, 2020
* develop:
  file_uploader: support for multiple files (streamlit#1183)
  Another attempt at test_multiple_scriptrunners timeouts (streamlit#1211)
This is meant to deflake tests that previously depended on timing to ensure
we had all the deltas we needed.
def require_widgets_deltas(
runners: List[TestScriptRunner], timeout: float = 15
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove the timeout argument since it's never used. Just set it internally to 15.0 instead.

tconkling added a commit to tconkling/streamlit that referenced this pull request Mar 11, 2020
* develop:
  Better error messages for st.cache (streamlit#1146)
  Fix st.cache (streamlit#1208)
  file_uploader: support for multiple files (streamlit#1183)
  Another attempt at test_multiple_scriptrunners timeouts (streamlit#1211)
  Speed up `make jstest` on CircleCI
  De-flake ScriptRunner_test.py (streamlit#1195)
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.

4 participants