crosvm/infra/recipes/build_chromeos.expected/build_default.json
Dennis Kempin 5156976b7f merge_bot: Enable on luci
To enable the merge bot on luci we had to solve a couple of problems:

- We cannot use http cookies for auth, so added gcloud auth into
  merge_bot.
- Switch back to original HEAD after running merge bot. Otherwise
  the version of the merge_bot script can change between invocations.
- Do not soft reset when checking out crosvm source.
- For less invasive testing, also added a few more exceptions when
  using MERGE_BOT_TEST so it won't email, etc.
- Rename to update_chromeos_merges, as it is more fitting to what
  the bot is doing

BUG=b:233913643
TEST=https://ci.chromium.org/swarming/task/5b58ed4497fda510

Change-Id: Iaa9b4821b70a1e90d19637d01856196bd7852ed5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3692686
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-06-08 17:20:27 +00:00

219 lines
No EOL
4.2 KiB
JSON

[
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CLEANUP]/workspace"
],
"infra_step": true,
"name": "Ensure workspace exists"
},
{
"cmd": [],
"name": "Prepare git"
},
{
"cmd": [
"git",
"config",
"--get",
"user.name"
],
"env": {
"DEPOT_TOOLS_UPDATE": "0"
},
"infra_step": true,
"name": "Prepare git.git config user.name",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"config",
"--get",
"user.email"
],
"env": {
"DEPOT_TOOLS_UPDATE": "0"
},
"infra_step": true,
"name": "Prepare git.git config user.email",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"config",
"--global",
"user.name",
"Crosvm Bot"
],
"env": {
"DEPOT_TOOLS_UPDATE": "0"
},
"name": "Prepare git.Set git config: user.name",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"config",
"--global",
"user.email",
"crosvm-bot@crosvm-infra.iam.gserviceaccount.com"
],
"env": {
"DEPOT_TOOLS_UPDATE": "0"
},
"name": "Prepare git.Set git config: user.email",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"config",
"--global",
"credential.helper",
"gcloud.sh"
],
"cwd": "[CLEANUP]/workspace",
"env": {
"DEPOT_TOOLS_UPDATE": "0"
},
"name": "Prepare git.Set git config: credential.helper",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"RECIPE_REPO[depot_tools]/repo",
"init",
"--manifest-url=https://chromium.googlesource.com/chromiumos/manifest",
"--manifest-branch=stable",
"--depth=1",
"--current-branch",
"--groups=minilayout,crosvm"
],
"cwd": "[CLEANUP]/workspace",
"env": {
"DEPOT_TOOLS_UPDATE": "0"
},
"name": "Init repo"
},
{
"cmd": [
"RECIPE_REPO[depot_tools]/repo",
"sync",
"--current-branch"
],
"cwd": "[CLEANUP]/workspace",
"env": {
"DEPOT_TOOLS_UPDATE": "0"
},
"name": "Sync repo"
},
{
"cmd": [
"git",
"fetch",
"https://chromium.googlesource.com/crosvm/crosvm"
],
"cwd": "[CLEANUP]/workspace/src/platform/crosvm",
"env": {
"DEPOT_TOOLS_UPDATE": "0"
},
"name": "Fetch upstream crosvm"
},
{
"cmd": [
"git",
"checkout",
"HEAD"
],
"cwd": "[CLEANUP]/workspace/src/platform/crosvm",
"env": {
"DEPOT_TOOLS_UPDATE": "0"
},
"name": "Checkout upstream revision"
},
{
"cmd": [
"./chromite/scripts/cros_uprev",
"--package=chromeos-base/crosvm",
"--overlay-type=public"
],
"cwd": "[CLEANUP]/workspace",
"env": {
"DEPOT_TOOLS_UPDATE": "0"
},
"name": "Uprev packages"
},
{
"cmd": [
"RECIPE_REPO[depot_tools]/cros_sdk",
"--create"
],
"cwd": "[CLEANUP]/workspace",
"env": {
"DEPOT_TOOLS_UPDATE": "0"
},
"name": "Create SDK chroot"
},
{
"cmd": [
"RECIPE_REPO[depot_tools]/cros_sdk",
"build_packages",
"--board=amd64-generic",
"implicit-system",
"chromeos-base/crosvm"
],
"cwd": "[CLEANUP]/workspace",
"env": {
"DEPOT_TOOLS_UPDATE": "0"
},
"name": "Build packages"
},
{
"cmd": [
"RECIPE_REPO[depot_tools]/cros_sdk",
"cros_run_unit_tests",
"--board=amd64-generic",
"--packages",
"chromeos-base/crosvm"
],
"cwd": "[CLEANUP]/workspace",
"env": {
"DEPOT_TOOLS_UPDATE": "0"
},
"name": "Run unit tests"
},
{
"cmd": [
"RECIPE_REPO[depot_tools]/cros_sdk",
"--delete"
],
"cwd": "[CLEANUP]/workspace",
"env": {
"DEPOT_TOOLS_UPDATE": "0"
},
"name": "Deleting SDK chroot"
},
{
"name": "$result"
}
]