Skip to content

Conversation

@matanlurey
Copy link
Contributor

Closes flutter/flutter#161462.

It turns out @jtmcdole had accidentally fixes fixed by using our GithubService wrapper while refactoring, meaning PaginationHelper has been used this entire time, and we have been getting the full list of files (since #4191 at least), so this can actually be lifted.

In addition, we can just gate the optimization on a specific release branch (to speed up beta/new stables).

@matanlurey matanlurey requested a review from jtmcdole March 22, 2025 16:42
Copy link
Member

@jtmcdole jtmcdole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There still is a API limit right? 1000 files max with pagination?

@matanlurey
Copy link
Contributor Author

Ah:

Responses include a maximum of 3000 files.

Ok, we can limit to 1000 files just in case.

@matanlurey matanlurey force-pushed the lift-30-file-and-branch-limit branch from 05226c4 to 56cc05f Compare March 22, 2025 17:00
@matanlurey matanlurey changed the title Lift limit on 30 framework-only files and modern release branches. Raise limit to 1000 framework-only files and modern release branches. Mar 22, 2025
@matanlurey matanlurey requested a review from jtmcdole March 22, 2025 17:01
@jtmcdole
Copy link
Member

Ah:

Responses include a maximum of 3000 files.

Ok, we can limit to 1000 files just in case.

Yeah, just got on my PC to check it; looks like that + we could be asking for 100 files per_page if we added the query parameter.

If we just get the PullRequest, it should tell us changed_files:

    "changed_files": {
      "type": "integer",
      "examples": [
        5
      ]
    }

@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App. label Mar 22, 2025
@auto-submit auto-submit bot merged commit 87e323c into flutter:main Mar 22, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cocoon listFiles() logic is faulty: only looks at the first 30 files in the PR!

2 participants