Run flutter-analyze-try bot only if analyzer sources have changed

This bot is a part of CQ and was triggerd on a number of paths including
the whole pkg/. It is not hermetic and can fail due to changes in
flutter/flutter and flutter/packages repositories, which would block
unrelated changes from landing.

As a remedy, flutter-analyze-try bot is now included into CQ only if
pkg/(analyzer|analyzer_cli|_fe_analyzer_shared)/.+ sources are
modified. Other analyzer bots are not affected.

See https://github.com/flutter/flutter/issues/177393 for more context.

Change-Id: I520cf76149561600388b7ea2829cc2def2d6f532
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/457081
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
3 files changed
tree: 075ca7f2e884039656d8ee86fc8804da829ae9be
  1. generated/
  2. lib/
  3. .style.yapf
  4. analyzer.star
  5. cfe.star
  6. codereview.settings
  7. console-header.textpb
  8. cq.star
  9. dart2js.star
  10. dart2wasm.star
  11. ddc.star
  12. main.star
  13. monorepo.star
  14. OWNERS
  15. pkg.star
  16. PRESUBMIT.py
  17. project.star
  18. README.md
  19. sdk.star
  20. vm.star
README.md

infra/config branch

This branch contains dart project-wide configurations for infra services. For example, cr-buildbucket.cfg defines builders that run on the dart waterfall and commit queue.

Making changes

It is recommended to have a separate checkout for this branch, so switching to/from this branch does not populate/delete all files in the master branch.

Most files in this branch are generated from main.star. Run ./main.star to regenerate them after changes have been made. Files that are auto-generated must not be modified manually, and they have a file header that states that they are.

Initial setup:

mkdir config
cd config
git init
git remote add origin https://dart.googlesource.com/sdk
git fetch origin infra/config
git reset --hard origin/infra/config
git config depot-tools.upstream origin/infra/config

Now you can create a new branch to make changes:

git new-branch add-new-builder
# edit main.star
./main.star # generate Luci config files
git commit -a

git cl upload