1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-01 07:14:29 +00:00

[devtools] Remove obsolete update script.

The devtools cipd packages are now automatically built in the secure
release infrastructure and humans are no longer able to directly upload
the cipd packages. Cherry-picks to the release branches are handled by
specially triggering the secure builder.

Bug: b/297020298
Change-Id: I8d587cf787b85abea1762c7f302b261298adf83d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/323640
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
This commit is contained in:
Jonas Termansen 2023-09-01 12:48:31 +00:00 committed by Commit Queue
parent 429ba99568
commit 67a7eb63e5
2 changed files with 3 additions and 44 deletions

View File

@ -4,8 +4,9 @@ packages from the same revision, used to host and launch DevTools from a Dart pr
To build DevTools and update the CIPD resources, do the following:
- Run ./update.sh <revision> to build DevTools at a given revision and upload it
to CIPD. The uploaded CIPD entry will be tagged with `revision:<revision>`
- Commits on devtools master are automatically built and packaged in CIPD.
If a cherry-pick must be rolled into DEPS, then follow
go/dart-engprod/devtools.md to manually trigger a secure devtools cipd build.
- Update DEPS to point to the newly updated DevTools by providing "revision:<revision>"
as the version entry for "third_party/devtools"

View File

@ -1,42 +0,0 @@
#!/bin/bash
# Copyright 2021 The Dart Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -ex #echo on
if [ -z "$1" ]; then
echo "Usage: update.sh revision"
exit 1
fi
tmpdir=$(mktemp -d)
cleanup() {
rm -rf "$tmpdir"
}
trap cleanup EXIT HUP INT QUIT TERM PIPE
cd "$tmpdir"
# Clone DevTools and build.
git clone git@github.com:flutter/devtools.git
cd devtools
git checkout -b cipd_release $1
# If $2 equals "--no-update-flutter", the build_release.sh script will build
# DevTools from the Flutter SDK that already exists on the user's path.
./tool/build_release.sh $2
# Copy the build output as well as the devtools packages needed
# to serve from DDS.
mkdir cipd_package
cp -R packages/devtools_app/build/web cipd_package/web
cp -r packages/devtools_shared cipd_package
cipd create \
-name dart/third_party/flutter/devtools \
-in cipd_package \
-install-mode copy \
-preserve-writable \
-tag git_revision:$1