10000 Verbose output (8k lines) on Windows · Issue #1097 · actions/setup-python · GitHub
[go: up one dir, main page]

Skip to content

Verbose output (8k lines) on Windows #1097

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

Closed
2 of 5 tasks
mxschmitt opened this issue Apr 28, 2025 · 3 comments · Fixed by actions/python-versions#339
Closed
2 of 5 tasks

Verbose output (8k lines) on Windows #1097

mxschmitt opened this issue Apr 28, 2025 · 3 comments · Fixed by actions/python-versions#339
Assignees
Labels
bug Something isn't working

Comments

@mxschmitt
Copy link
mxschmitt commented Apr 28, 2025

Description:

When using setup-python on Windows it generates a lot of output. 8k lines of files exist in a folder.

Action version: 5.6.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version: All

Repro steps: Use setup-python on Windows

Expected behavior: No unnecessary output

Actual behavior: Thousands of lines of output


Caused by actions/python-versions#319

See also actions/python-versions#319 (comment)

@mxschmitt
Copy link
Author
mxschmitt commented Apr 28, 2025

PR with a fix: actions/python-versions#339 - I don't think having it in there provides any useful output to the users. Maybe I'm wrong tho!

@mxschmitt mxschmitt changed the title Verbose output (2-3k lines) on Windows Verbose output (8k lines) on Windows Apr 28, 2025
@gowridurgad
Copy link
Contributor

Hello @mxschmitt,
Thank you for reporting this issue. We will investigate it and get back to you as soon as we have some feedback.

@chiranjib-swain chiranjib-swain self-assigned this Apr 29, 2025
@aparnajyothi-y
Copy link
Contributor
aparnajyothi-y commented May 8, 2025

Hello @mxschmitt, We’ve investigated the issue and confirmed that the excessive logging originates from the changes introduced in PR #319, specifically this snippet:

#Print out all files in $PythonArchPath
Write-Host ""Files in $PythonArchPath""
$files = Get-ChildItem -Path $PythonArchPath -File -Recurse
Write-Output $files

This generates over 7,000 lines of logs during the setup process—even when the Python version isn't pre-installed on the runner images.

We’re currently reviewing PR #339 to trim or optimize this output. Going forward, only Python versions built after this change is merged will exclude the verbose logs.

We’ll follow up with updates once the cleanup is implemented.
Please feel free to reach out if you have any further questions or concerns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
0