Commit graph

16 commits

Author SHA1 Message Date
Jonas Termansen 73d1ccb2af [infra] Rely on the default ACL when uploading release artifacts.
The dart-archive bucket default ACL has been changed to make all
uploaded objects public. Therefore, we no longer need to specify an ACL
on upload. This change enables the scripts to work with uniform bucket
ACLs.

The bucket cannot be switched to uniform ACLs until this change reaches
the stable branch or it won't be possible to release Dart.

This change removes the uses of the gsutil -a public-read option from
the release scripts.

Change-Id: I27a76b9849771ddc380576ffe962926ebfbf4fc6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221341
Commit-Queue: Jonas Termansen <sortie@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2021-11-26 11:34:04 +00:00
Alexander Thomas b5c63ce757 [infra] Migrate scripts to python3
* Migrate to python3; drop python support.
* Update Windows toolchain support.
* Remove some unused methods.
* Python 2.7 is still needed on Windows.
* Update gsutil to a version that supports python3.

Fixes: https://github.com/dart-lang/sdk/issues/28793

TEST=Manually tested common user journeys.

Change-Id: I663a22b237a548bb82dc2e601e399e3bc3649211
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192182
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2021-04-15 10:10:20 +00:00
Martin Kustermann d7e2f9ba3b [infra] Remove wheezy left overs from SDK
Also removes some dart editor related code which is unused nowadays.

Related https://dart-review.googlesource.com/c/sdk/+/150104

Change-Id: I97f91a35e82af09ac715a4eb93a945f335a71d5e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150106
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2020-06-04 18:32:29 +00:00
Alexander Thomas 968c25cc8d [release] Allow promotion from one channel to another
The Travis `beta` channel can break when a new stable release is
published and packages use that release as minimum SDK constraint.
Therefore, we want to publish stable releases to beta if the current
beta is less than the current stable release. This change adds a
`--source-channel` option to promote.py that allows publishing a release
across channels.

Example (will promote the `2.8.1` stable release to beta):
```
$ python promote.py promote \
  --dry --channel=beta --source-channel=stable --version=2.8.1
```

Change-Id: Ieac4c33dfe17d4b38060e10ff3aff44494aae40a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/146787
Reviewed-by: William Hesse <whesse@google.com>
2020-05-06 11:55:39 +00:00
Alexander Thomas c816525c29 [infra] Add support for the beta channel to promote.py
Closes https://github.com/dart-lang/sdk/issues/40984

Change-Id: I0459b3709cc008890d4d66c3b0f98cc5b4fd6b36
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/139281
Reviewed-by: William Hesse <whesse@google.com>
2020-03-13 10:53:26 +00:00
Alexander Thomas e9c3eebef1 [infra] Add handling of signed SDK directories to promote.py
Copy the signed SDK directory to release first (if it exists). Then copy
only those unsigned files that have no signed counterparts.

* Add --version alias and remove SVN reference from --revision help.
* Fix --dry-run.
* Add new base_directory to GCS namer.

b/139027087

Change-Id: I4163eb56494bfa92ab1e5686cf089136d63881fe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/115860
Reviewed-by: William Hesse <whesse@google.com>
2019-09-09 07:10:41 +00:00
Nate Bosch 55f81f2210 Mass format python with yapf
- Add `.style.yapf` with configuration to use Google style.
- Run `yapf` on all `.py` files in this repo.
- Manually fix one trailing space in a doc string.
- Run `git cl format runtime` to satisfy presubmit.

Change-Id: I7e6bd11e91f07926b9188362599af398551eed79
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/111600
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2019-08-05 20:34:31 +00:00
Alexander Thomas 99d028be77 [infra] Make promote.py work with newer versions of gsutil
Newer versions of gsutil fail when rm -rf'ing non-existing directories.
Check if the directory exists before trying to remove it.

Change-Id: I57283526f9d13ed5a923b1f5c9d91710ec8d1b60
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/94861
Auto-Submit: Alexander Thomas <athom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: William Hesse <whesse@google.com>
2019-03-06 12:43:07 +00:00
William Hesse acf53f1e63 Remove Dartium from the SDK promotion script
BUG=
R=terry@google.com

Review-Url: https://codereview.chromium.org/2982023002 .
2017-07-17 16:21:02 +02:00
William Hesse 737a55cc63 Fix some issues with buildbot recipe change.
BUG=
R=kustermann@google.com

Review-Url: https://codereview.chromium.org/2903603002 .
2017-05-23 16:51:37 +02:00
William Hesse ed9bb160de Revert "Copy entire api-docs directory to release GCloud directory in promote script."
This reverts commit f03279a7eb.
When there is only one file in the directory, this does not move the
file into the target directory, but moves it to replace the target
directory with a file.

Reverting to the old behavior, with a changed filename, since we are
now only copying one file. tools/bots/bot_utils.py:124 is changed to
use dartdocs_zipfilename() instead of the deleted apidocs_zipfilename().

BUG=https://github.com/dart-lang/www.dartlang.org/issues/1528
R=ricow@google.com

Review URL: https://codereview.chromium.org/1502253002 .
2015-12-09 10:29:34 +01:00
William Hesse f03279a7eb Copy entire api-docs directory to release GCloud directory in promote script.
BUG=
R=keertip@google.com, ricow@google.com

Review URL: https://codereview.chromium.org//1341353002 .
2015-09-16 12:12:29 +02:00
Rico Wind 6030dd9015 Remove invalid check from promote script
R=whesse@google.com
BUG=

Review URL: https://codereview.chromium.org//1168133005.
2015-06-09 13:39:49 +02:00
Rico Wind 1706e033af Don't promote the eclipse plugins, we don't ship these from our main repo
Also, change the sanity check, we no longer use integer revisions on dev/stable

R=whesse@google.com
BUG=

Review URL: https://codereview.chromium.org//1157363002
2015-05-28 16:02:24 +02:00
ricow@google.com a29715af79 Add --dry option to the promote script.
This makes it easier to validate against our archive

R=kustermann@google.com
BUG=

Review URL: https://codereview.chromium.org//1132533002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45627 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-08 05:44:55 +00:00
ricow@google.com fb7f171a0e Remove promote script from editor/build and put it under tools (where it really belongs)
R=kustermann@google.com
BUG=

Review URL: https://codereview.chromium.org//1133573002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45587 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-07 10:52:01 +00:00