Skip to content

Very slow when many files match filter #798

Open
@jnicoulaud-ledger

Description

@jnicoulaud-ledger

Description:
We use the action on a repository that contains 10K+ files, with filters:

assets:
  - changed-files:
      - any-glob-to-any-file: ['inputs/**', 'outputs/**']

When many files changes, the action runs very slow (up to 30 minutes for 10K+ files). It looks like the implementation goes over all files instead of stopping as soon as one is matched.

Action version:
v5.0.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:

  • Create a repo with 100K files
  • Configure labeler with a glob pattern to match those files
  • Create a commit that modifies all files

Expected behavior:
Action runs in a few seconds

Actual behavior:
Action runs very slow

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions