Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed the timeout number #3158

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

paulli2017
Copy link
Contributor

test for kernel validation pipeline test

lisa/schema.py Outdated
@@ -1577,7 +1577,7 @@ class Runbook:
tags: Optional[List[str]] = None
concurrency: int = 1
# minutes to wait for resource
wait_resource_timeout: float = 5
wait_resource_timeout: float = 10
Copy link
Member

Choose a reason for hiding this comment

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

You can configure it in runbook. And don't mention internal work in GitHub.

@paulli2017 paulli2017 force-pushed the paull/kvtest branch 16 times, most recently from 50cd948 to 5c02d25 Compare January 30, 2024 07:53
$sshd_config = "C:\ProgramData\ssh\sshd_config"
(Get-Content $sshd_config) -replace '#PubkeyAuthentication', 'PubkeyAuthentication' | Out-File -encoding ASCII $sshd_config
$ssh_server = Get-Service sshd | Where-Object { $_.Name -like 'sshd' -and $_.Status -like "Running" }
if ($ssh_server)
Copy link
Member

Choose a reason for hiding this comment

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

What does it mean, if ssh_server is not here? It may cause key auth changes are skipped.

@@ -149,7 +149,7 @@ def command(self) -> str:
def _check_exists(self) -> bool:
return True

def reboot(self, time_out: int = 600) -> None:
def reboot(self, time_out: int = 1200) -> None:
Copy link
Member

Choose a reason for hiding this comment

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

It doesn't need to change the default value. Specify the value when it's called.

@@ -174,7 +174,7 @@ def reboot(self, time_out: int = 600) -> None:
constants.ENVIRONMENTS_NODES_REMOTE_PORT
],
log=self._log,
timeout=20,
timeout=1200,
Copy link
Member

Choose a reason for hiding this comment

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

20 should be enough, in this loop it will try multiple times.

@paulli2017 paulli2017 force-pushed the paull/kvtest branch 10 times, most recently from 76e03b7 to a582a9f Compare January 31, 2024 04:53
@paulli2017 paulli2017 force-pushed the paull/kvtest branch 5 times, most recently from 3a495d8 to dd51ded Compare January 31, 2024 07:38
@paulli2017 paulli2017 force-pushed the paull/kvtest branch 2 times, most recently from e1c8f60 to 6c70a2a Compare February 27, 2024 19:05
@LiliDeng
Copy link
Collaborator

@paulli2017 hi, are you planning to update this pull request?

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.

None yet

3 participants