Skip to content

Verbose output (8k lines) on Windows #1097

Closed
actions/python-versions
#339
@mxschmitt

Description

@mxschmitt

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)

Activity

mxschmitt

mxschmitt commented on Apr 28, 2025

@mxschmitt
Author

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!

changed the title [-]Verbose output (2-3k lines) on Windows[/-] [+]Verbose output (8k lines) on Windows[/+] on Apr 28, 2025
gowridurgad

gowridurgad commented on Apr 29, 2025

@gowridurgad
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.

aparnajyothi-y

aparnajyothi-y commented on May 8, 2025

@aparnajyothi-y
Contributor

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @mxschmitt@aparnajyothi-y@gowridurgad@chiranjib-swain

    Issue actions

      Verbose output (8k lines) on Windows · Issue #1097 · actions/setup-python