Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Infrastructure: Use the Github API to compute changed files for PRs. #8476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 26, 2019

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Jun 25, 2019

Rather than computing a diff from the squirrely baseref hash (as provided by ci_diff_helper), just use the Github API directly to query for the list of files for a PR. We should run many fewer spurious test suites if this works as expected. I've tested the new get_changed_files_from_pr function manually against both small and large PRs (which involve pagination).

@tseaver tseaver added testing type: process A process-related concern. May include testing, release, or the like. labels Jun 25, 2019
@tseaver tseaver requested review from crwilcox and busunkim96 June 25, 2019 21:25
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 25, 2019
@tseaver tseaver merged commit 0c1517a into master Jun 26, 2019
@tseaver tseaver deleted the use-github-api-for-pr-files branch June 26, 2019 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. testing type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants