Skip to content

Verbose output (8k lines) on Windows #1097

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

  1. 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!

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

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

  4. v-aparnajyothi-y commented on May 8, 2025

    @v-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

    No branches or pull requests

    Issue actions