Skip to content

Excessive output logging results in unresponsive Web UI #3750

Closed

Description

@oliversalzburg

I know I'm dealing with an edge case. I'm happy to accept that this does not require a solution in the action. I'm giving it a shot regardless :)

I'm dealing with a repository that contains beyond 1 million files, with thousands of changes per PR.. When the action tries to create the pull request, the git wrapper will list every file in the change in the process, sometimes causing over 100 MB of log output.

This is a performance issue for the PR creation itself, as it takes several minutes, and the job log becomes unusable, sometimes the UI has a hard time responding.

It would be nice to have some control over log verbosity in the action. But maybe it would also be a good idea to review logging in general. For example, calls like

const output = await this.exec([
'-c',
'core.quotePath=false',
'show',
'--raw',
'--cc',
'--no-renames',
'--no-abbrev',
`--format=%H%n%T%n%P%n%G?%n%s%n%b%n${endOfBody}`,
ref
])
might not really have to be piped through to stdout, if you really only want to parse the information internally.

Activity

  1. peter-evans commented on Feb 27, 2025

    @peter-evans
    Owner

    Hi @oliversalzburg

    Thanks for reporting this. You're right, I think it's too verbose at the moment. I'll see what changes can be made to address this.

  2. peter-evans commented on Mar 4, 2025

    @peter-evans
    Owner

    I've released a change as v7.0.8 / v7, which suppresses the output of two git operations which were very verbose. I'm not sure if this goes far enough yet for your particular case, but please try the new version and let me know if it's better.

  3. oliversalzburg commented on Mar 7, 2025

    @oliversalzburg
    Author

    I had already migrated that specific project to a custom solution to serve additional needs. So I can't easily verify the difference any more.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions