Session timed out due to inactivity - #22171
Draft
amolpati30 wants to merge 1 commit into
Draft
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdjusts the REX provisioning template test to stop asserting on the deprecated File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Consider asserting that the old
Defaults:... !requirettyline is not present inrex_snippetto guard against reintroducing the deprecated setting in future template changes. - The combined sudoers assertion remains a bit brittle; you could split it into separate checks or use a regex to focus on the NOPASSWD semantics rather than the exact formatting of the echoed command.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider asserting that the old `Defaults:... !requiretty` line is *not* present in `rex_snippet` to guard against reintroducing the deprecated setting in future template changes.
- The combined sudoers assertion remains a bit brittle; you could split it into separate checks or use a regex to focus on the NOPASSWD semantics rather than the exact formatting of the echoed command.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
amolpati30
marked this pull request as draft
July 20, 2026 17:58
amolpati30
force-pushed
the
remove_requiretty_configuration
branch
from
July 22, 2026 11:43
7ebb319 to
bd964c9
Compare
Collaborator
|
PRT Result |
Contributor
Author
|
Collaborator
|
PRT Result |
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.
Root Cause: -
Selenium session timeout due to long wait_for loop. Here's the sequence:
build_status_labelto change from'Pending installation', polling every 10 seconds via the API (not the browser)InvalidSessionIdExceptionbecause the session was already removedThe Problem: -
The
wait_foruses the API (sat.api.Host().search(...)) to poll, not the browser. So the Selenium session gets no activity for the entire polling duration and Selenium Grid terminates it for inactivity.Solution: -
To avoid this issue, I am adding a search action through the session. This will keep the session active and prevent it from timing out or failing.