diff --git a/tests/co19/update.sh b/tests/co19/update.sh index 940db04cee62..d06c1534b4a7 100755 --- a/tests/co19/update.sh +++ b/tests/co19/update.sh @@ -32,32 +32,32 @@ bb collect -interval 10s $BUILD_ID # Update DEPS: gclient setdep --var=co19_rev=$NEW +BUILDERS=$(jq -r '.builder_configurations + | map(select(.steps + | any(.arguments + | select(.!=null) + | any(test("co19($|(/.*))"))))) + | map(.builders) + | flatten + | sort + | .[] += "-try" + | join(",")' \ + tools/bots/test_matrix.json) + # Make a nice commit. Don't include the '#' character to avoid referencing Dart # SDK issues. git commit DEPS -m \ - "$(printf "[co19] Roll co19 to $NEW\n\n" && - cd $CO19 && - git log --date='format:%Y-%m-%d' --pretty='format:%ad %ae %s' \ - $OLD..$NEW | tr -d '#')" + "$(printf "[co19] Roll co19 to $NEW\n\n" \ + && cd $CO19 \ + && git log --date='format:%Y-%m-%d' --pretty='format:%ad %ae %s' $OLD..$NEW \ + && printf "\nCq-Include-Trybots: dart/try:$BUILDERS\n" \ + | tr -d '#')" rm -rf tests/co19/src.git GIT_EDITOR=true git cl upload ISSUE=$(git config --get branch.cl-co19-roll-co19-to-$NEW.gerritissue) -BUILDERS=$(jq '.builder_configurations| - map(select(.steps| - any(.arguments| - select(.!=null)| - any(test("co19($|(/.*))")))))| - map(.builders)| - flatten| - sort' \ - tools/bots/test_matrix.json \ - | tr -d '[",]') - -git cl try -B dart/try $(for BUILDER in $BUILDERS; do echo -b $BUILDER-try; done) - git cl web set +x