Skip to content

Use affected file filters to decide whether to run a builder or not. #62841

@godofredoc

Description

@godofredoc

Create a server side filter for builders along with the relevant configurations in the builder json file. This is going to be used to choose which builders will run give the list of affected files in a PR.

Something like the following in the json file:

run_if: '['dev/', 'packages/flutter/', 'packages/flutter_test/', 'packages/flutter_tools/']

Then when getting the list of builders to run in the webhook:

getFilteredBuilders(list_of_affected_files_from_pr)

  • add filtering support in cocoon
  • add run_if property in try builders

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listteam-infraOwned by Infrastructure team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions