Retrieve buildbucket id in and pass it in cbuildbot with --buildbucket-id flag.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/tools/build.git/+/b3e62f30e334a0eb3c8dfb1a85744f7bdaedcc44 commit b3e62f30e334a0eb3c8dfb1a85744f7bdaedcc44 Author: nxia <nxia@google.com> Date: Wed Jul 20 17:30:42 2016 Pass buildbucket.build.id to cbuildbot as --buildbucket-id. BUG= chromium:629688 Review-Url: https://codereview.chromium.org/2166673002 [modify] https://crrev.com/b3e62f30e334a0eb3c8dfb1a85744f7bdaedcc44/scripts/slave/recipe_modules/chromite/api.py [modify] https://crrev.com/b3e62f30e334a0eb3c8dfb1a85744f7bdaedcc44/scripts/slave/recipe_modules/chromite/config.py [add] https://crrev.com/b3e62f30e334a0eb3c8dfb1a85744f7bdaedcc44/scripts/slave/recipes/cros/cbuildbot_tryjob.expected/pre_cq_buildbucket_config.json [modify] https://crrev.com/b3e62f30e334a0eb3c8dfb1a85744f7bdaedcc44/scripts/slave/recipes/cros/cbuildbot_tryjob.py
The following revision refers to this bug: https://chrome-internal.googlesource.com/chrome/tools/build_limited/scripts/slave/+/4455a74eaf16af63992c9f415b6a97074f2ad7b2 commit 4455a74eaf16af63992c9f415b6a97074f2ad7b2 Author: recipe-roller <recipe-roller@chromium.org> Date: Wed Jul 20 17:38:26 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/chromite/+/7e34eda57456e7e73ceb48f116d5992e55aa914d commit 7e34eda57456e7e73ceb48f116d5992e55aa914d Author: Ningning Xia <nxia@chromium.org> Date: Mon Jul 18 21:20:30 2016 Add column buildbucket_id in buildTable. Alter buildTable to add buildbucket_id. BUG= chromium:629688 TEST=lib/cidb_integration_test Change-Id: I0fa210e816a2c231d7cef591802769c5db7a9d69 Reviewed-on: https://chromium-review.googlesource.com/361500 Commit-Ready: Dan Shi <dshi@google.com> Tested-by: Ningning Xia <nxia@chromium.org> Reviewed-by: Ningning Xia <nxia@chromium.org> [modify] https://crrev.com/7e34eda57456e7e73ceb48f116d5992e55aa914d/cidb/schema.dump [add] https://crrev.com/7e34eda57456e7e73ceb48f116d5992e55aa914d/cidb/migrations/00047_alter_build_table_add_buildbucket_id.sql [modify] https://crrev.com/7e34eda57456e7e73ceb48f116d5992e55aa914d/cidb/developer.readme
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/chromite/+/9e01baf39d7a67a09f02e05d4144e176f394a1ee commit 9e01baf39d7a67a09f02e05d4144e176f394a1ee Author: Ningning Xia <nxia@chromium.org> Date: Wed Jul 20 20:08:06 2016 Insert 'buildbucket_id' into cidb when it's provided. Remove --buildbucket-bucket option as the bucket name can be returned by sending buildbucket GET requests. Insert 'buildbucket_id' into buildTable. Add cidb_integration_test. BUG= chromium:629688 TEST=cidb_integration_test;run_tests CQ-DEPEND=CL:361500 Change-Id: Ia3422d8e4793fa3238e33fb4fa6c513db4573708 Reviewed-on: https://chromium-review.googlesource.com/362003 Commit-Ready: Ningning Xia <nxia@chromium.org> Tested-by: Ningning Xia <nxia@chromium.org> Reviewed-by: Paul Hobbs <phobbs@google.com> [modify] https://crrev.com/9e01baf39d7a67a09f02e05d4144e176f394a1ee/scripts/cbuildbot.py [modify] https://crrev.com/9e01baf39d7a67a09f02e05d4144e176f394a1ee/lib/fake_cidb.py [modify] https://crrev.com/9e01baf39d7a67a09f02e05d4144e176f394a1ee/lib/cidb_integration_test.py [modify] https://crrev.com/9e01baf39d7a67a09f02e05d4144e176f394a1ee/lib/cidb.py [modify] https://crrev.com/9e01baf39d7a67a09f02e05d4144e176f394a1ee/cbuildbot/stages/report_stages.py
Comment 1 by nxia@chromium.org
, Jul 19 2016