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

Take screenshot of VM desktop on Chocolatey CLI timeout #293

Open
4 tasks
sync-by-unito bot opened this issue Jan 9, 2024 · 0 comments
Open
4 tasks

Take screenshot of VM desktop on Chocolatey CLI timeout #293

sync-by-unito bot opened this issue Jan 9, 2024 · 0 comments

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Jan 9, 2024

What You Are Seeing?

Package Verifier currently takes a screenshot of the test VM's desktop when the overall Vagrant "session" times out.

The resulting gist will include this screenshot and the included logs will abruptly cut off (as they are collected at the time of the Vagrant time out).

It is possible, however, for the Chocolatey CLI command being run to time out before Vagrant. When this happens no screenshot is taken and the logs end "complete" with an exit code.

What is Expected?

A screenshot should be taken and included on the gist if Chocolatey CLI to aid in troubleshooting why the timeout occurred.

How Did You Get This To Happen? (Steps to Reproduce)

It's difficult to force this to happen organically.

It should be possible to reduce the CommandExecutionTimeoutSeconds in package-verifier.exe.config from 2700 to something much lower to force the Chocolatey CLI command to time out before Vagrant (I cannot actually see where the timeout for Vagrant is defined.)

System Details

  • Operating System: Windows Server 2019
  • Windows PowerShell Version: 5.1.17763.5202
  • Chocolatey CLI Version: 0.10.15 (on host)/2.2.2 (inside test environment)
  • Chocolatey Licensed Extension version: N/A
  • Chocolatey License type (Professional / Business / ?): N/A
  • Terminal/Emulator: N/A

Output Log

Workarounds

N/A

Proposed Solution

Screenshot on Chocolatey CLI timeout (unsure of actual implementation)

Related Issues and Tickets

Done Checklist

  • Documentation has been updated.
  • Automated tests have been added to cover this bug.
  • Manual tests have been added to cover this bug.
  • Title is suitable for using in Release Notes?

┆Issue is synchronized with this Gitlab issue by Unito

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants