mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
![Alexander Thomas](/assets/img/avatar_default.png)
Bug: b/310114753 Cq-Include-Trybots: luci.dart.try:dart2js-hostasserts-linux-unsound-try,ddc-linux-chrome-unsound-try,vm-kernel-linux-debug-x64-try,vm-kernel-linux-release-x64-try,vm-kernel-precomp-linux-release-x64-try,front-end-linux-release-x64-try Change-Id: I45ebfda5d746f12ca0fa3c0003c299720f1c7179 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/337180 Commit-Queue: Alexander Thomas <athom@google.com> Reviewed-by: Jonas Termansen <sortie@google.com>
40 lines
1 KiB
Bash
Executable file
40 lines
1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# Updates DEPS to the latest co19 CIPD package.
|
|
|
|
set -e
|
|
set -x
|
|
|
|
if [ ! -e tests/co19 ]; then
|
|
echo "$0: error: Run this script at the root of the Dart SDK" >&2
|
|
exit 1
|
|
fi
|
|
|
|
# Find the latest co19 commit.
|
|
rm -rf tests/co19/src.git
|
|
git clone https://dart.googlesource.com/co19 tests/co19/src.git
|
|
CO19=tests/co19/src.git
|
|
OLD=$(gclient getdep --var=co19_rev)
|
|
NEW=$(cd $CO19 && git fetch origin && git rev-parse origin/master)
|
|
|
|
git fetch origin
|
|
git branch cl-co19-roll-co19-to-$NEW origin/main
|
|
git checkout cl-co19-roll-co19-to-$NEW
|
|
|
|
# Update DEPS:
|
|
gclient setdep --var=co19_rev=$NEW
|
|
|
|
# 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 \
|
|
| sed 's/\#/dart-lang\/co19\#/g')"
|
|
|
|
rm -rf tests/co19/src.git
|
|
|
|
GIT_EDITOR=true git cl upload
|
|
ISSUE=$(git config --get branch.cl-co19-roll-co19-to-$NEW.gerritissue)
|
|
|
|
git cl web
|