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

unreliable test: SSH agent - can start the agent on windows #6891

Closed
Hweinstock opened this issue Mar 31, 2025 · 0 comments · Fixed by #6929
Closed

unreliable test: SSH agent - can start the agent on windows #6891

Hweinstock opened this issue Mar 31, 2025 · 0 comments · Fixed by #6929

Comments

@Hweinstock
Copy link
Contributor

Test Details

  • Name of test: SSH agent - can start the agent on windows
  • OS of failure: Windows
  • VSCode version of failure (minimum/insider/stable): Insider + stable
  • Link to failing run: https://github.com/aws/aws-toolkit-vscode/actions/runs/14137933826/job/39613930392
  • Link to failing test:
    it('can start the agent on windows', async function () {
    // TODO: we should also skip this test if not running in CI
    // Local machines probably won't have admin permissions in the spawned processes
    if (process.platform !== 'win32') {
    this.skip()
    }
    const runCommand = (command: string) => {
    const args = ['-Command', command]
    return new ChildProcess('powershell.exe', args).run({ rejectOnErrorCode: true })
    }
    const getStatus = () => {
    return runCommand('echo (Get-Service ssh-agent).Status').then((o) => o.stdout)
    }
    await runCommand('Stop-Service ssh-agent')
    assert.strictEqual(await getStatus(), 'Stopped')
    await startSshAgent()
    assert.strictEqual(await getStatus(), 'Running')
    })

Log of Test Failure

SSH Agent
       can start the agent on windows:
     Error: Test length exceeded max duration: 30 seconds
[No Pending UI Elements Found]
      at Timeout._onTimeout (D:\a\aws-toolkit-vscode\aws-toolkit-vscode\packages\core\src\test\setupUtil.ts:46:32)
      at listOnTimeout (node:internal/timers:581:17)
      at processTimers (node:internal/timers:519:7)

Additional Information

@Hweinstock Hweinstock changed the title unreliable test: SSH agent can start the agent on windows unreliable test: SSH agent - can start the agent on windows Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant