blob: 6fb55301807c399f39a5a18cc16a0652f38a6caa [file] [log] [blame] [view]
Wezaa00d4272018-04-18 21:42:501# Manually updating Chromium to a new Fuchsia SDK
2
3Normally the Fuchsia SDK dependency is automatically updated to a recent build
4on a regular basis, by the [Fuchsia SDK AutoRoll Bot](https://fuchsia-sdk-chromium-roll.skia.org).
5
6Should you need to manually update the SDK dependency for some reason, then:
Wezfd67b9a02017-07-20 00:04:317
Scott Graham131568b2017-08-01 17:20:4481. Check the [Fuchsia-side
Aidan Wolter7bc61d02019-01-03 00:56:499 job](https://luci-scheduler.appspot.com/jobs/fuchsia/sdk-topaz-x64-linux)
Scott Graham4e05b6f2018-11-09 17:02:0410 for a recent green archive. On the "SUCCEEDED" link, copy the SHA-1 from the
Scott Graham131568b2017-08-01 17:20:4411 `gsutil.upload` link of the `upload fuchsia-sdk` step.
Aidan Wolter7bc61d02019-01-03 00:56:49120. Put that into Chromium's src.git `build/fuchsia/linux.sdk.sha1`.
Scott Graham131568b2017-08-01 17:20:44130. `gclient sync && ninja ...` and make sure things go OK locally.
140. Upload the roll CL, making sure to include the `fuchsia` trybot. Tag the roll
15 with `Bug: 707030`.
Wezfd67b9a02017-07-20 00:04:3116
Scott Grahamd83cbaf2017-08-16 07:55:0817If you would like to build an SDK locally, `tools/fuchsia/local-sdk.py` tries to
18do this (so you can iterate on ToT Fuchsia against your Chromium build), however
19it's simply a copy of the steps run on the bot above, and so may be out of date.
Scott Grahamc0505512017-08-22 02:36:1020
21In order to sync a Fuchsia tree to the state matching an SDK hash, you can use:
22
Scott Grahamf3a93d9a2018-02-26 20:47:0323`jiri update https://storage.googleapis.com/fuchsia-snapshots/<SDK_HASH_HERE>`
Scott Grahamd0aa2f42017-10-31 02:41:5424
25If you are waiting for a Zircon CL to roll into the SDK, you can check the
26status of the [Zircon
27roller](https://luci-scheduler.appspot.com/jobs/fuchsia/zircon-roller).
28Checking the bot's [list of
29CLs](https://fuchsia-review.googlesource.com/q/owner:zircon-roller%40fuchsia-infra.iam.gserviceaccount.com)
30might be useful too.
Scott Grahamba1c9e12018-02-26 19:34:5031
Scott Grahamf3a93d9a2018-02-26 20:47:0332Another useful command, if the SDK was pulled by `cipd` (which it is in
Scott Grahamba1c9e12018-02-26 19:34:5033Chromium-related projects like Crashpad, instead of directly pulling the
Scott Grahamc155b76f2018-02-26 19:38:4234.tar.gz), is:
Scott Grahamba1c9e12018-02-26 19:34:5035
Scott Grahamf3a93d9a2018-02-26 20:47:0336`cipd describe fuchsia/sdk/linux-amd64 -version <CIPD_HASH_HERE>`
Scott Grahamba1c9e12018-02-26 19:34:5037
38This description will show the `jiri_snapshot` "tag" for the CIPD package which
Aidan Wolter7bc61d02019-01-03 00:56:4939corresponds to the SDK revision that's specified in `linux.sdk.sha1` here.