Skip to content

Commit

Permalink
Add go/artifact-hub integration by setting new env variable
Browse files Browse the repository at this point in the history
Service account setup cl/551888350

See flutter/packages#4567
See https://github.com/flutter/flutter/wiki/Plugins-and-Packages-repository-structure#gradle-structure
Bug: flutter/flutter/issues/120119

Change-Id: Ic1c4dd7c348854b21f9dedd02d664edc34e9bcec
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/48260
Commit-Queue: Reid Baker <[email protected]>
Reviewed-by: Keyong Han <[email protected]>
  • Loading branch information
reidbaker authored and CQ Bot Account committed Jul 28, 2023
1 parent 194ce13 commit 64a2946
Show file tree
Hide file tree
Showing 140 changed files with 1,656 additions and 0 deletions.
19 changes: 19 additions & 0 deletions recipe_modules/adhoc_validation/examples/full.expected/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"RECIPE_MODULE[flutter::adhoc_validation]/resources/docs.sh"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -81,6 +82,7 @@
],
"cwd": "[START_DIR]/flutter sdk",
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -125,6 +127,7 @@
],
"cwd": "[START_DIR]/flutter sdk",
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -173,6 +176,7 @@
"/path/to/tmp/json"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "stable",
Expand Down Expand Up @@ -225,6 +229,7 @@
"compile"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "stable",
Expand Down Expand Up @@ -270,6 +275,7 @@
"/path/to/tmp/"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "stable",
Expand Down Expand Up @@ -310,6 +316,7 @@
"RECIPE_MODULE[flutter::adhoc_validation]/resources/docs.sh"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "stable",
Expand Down Expand Up @@ -356,6 +363,7 @@
"upload"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "stable",
Expand Down Expand Up @@ -397,6 +405,7 @@
],
"cwd": "[START_DIR]/flutter sdk",
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "stable",
Expand Down Expand Up @@ -444,6 +453,7 @@
"[CLEANUP]/tmp_tmp_1/flutter/12345abcde12345abcde12345abcde12345abcde"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "stable",
Expand Down Expand Up @@ -490,6 +500,7 @@
"[CLEANUP]/tmp_tmp_1/flutter/12345abcde12345abcde12345abcde12345abcde"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "stable",
Expand Down Expand Up @@ -538,6 +549,7 @@
"gs://flutter_infra_release/"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "stable",
Expand Down Expand Up @@ -584,6 +596,7 @@
"[START_DIR]/flutter sdk/dev/docs/api_docs.zip"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "stable",
Expand Down Expand Up @@ -629,6 +642,7 @@
"gs://flutter_infra_release/flutter/12345abcde12345abcde12345abcde12345abcde/api_docs.zip"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "stable",
Expand Down Expand Up @@ -670,6 +684,7 @@
"upload-complete"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "stable",
Expand Down Expand Up @@ -713,6 +728,7 @@
"3m"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "stable",
Expand Down Expand Up @@ -759,6 +775,7 @@
"[CLEANUP]/tmp_tmp_2"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "stable",
Expand Down Expand Up @@ -808,6 +825,7 @@
],
"cwd": "[START_DIR]/flutter sdk/dev/docs",
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GCP_PROJECT": "myproject",
"GIT_BRANCH": "",
Expand Down Expand Up @@ -849,6 +867,7 @@
],
"cwd": "[START_DIR]/flutter sdk/dev/docs",
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GCP_PROJECT": "myproject",
"GIT_BRANCH": "",
Expand Down
13 changes: 13 additions & 0 deletions recipe_modules/adhoc_validation/examples/full.expected/linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"RECIPE_MODULE[flutter::adhoc_validation]/resources/docs.sh"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "main",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -57,6 +58,7 @@
],
"cwd": "[START_DIR]/flutter sdk",
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "main",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -89,6 +91,7 @@
],
"cwd": "[START_DIR]/flutter sdk",
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "main",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -123,6 +126,7 @@
"/path/to/tmp/"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "main",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -151,6 +155,7 @@
"RECIPE_MODULE[flutter::adhoc_validation]/resources/docs.sh"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "main",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -185,6 +190,7 @@
],
"cwd": "[START_DIR]/flutter sdk",
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "main",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -220,6 +226,7 @@
"[CLEANUP]/tmp_tmp_1/flutter/12345abcde12345abcde12345abcde12345abcde"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "main",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -254,6 +261,7 @@
"[CLEANUP]/tmp_tmp_1/flutter/12345abcde12345abcde12345abcde12345abcde"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "main",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -290,6 +298,7 @@
"gs://flutter_infra_release/"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "main",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -323,6 +332,7 @@
"3m"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "main",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -357,6 +367,7 @@
"[CLEANUP]/tmp_tmp_2"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "main",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -394,6 +405,7 @@
],
"cwd": "[START_DIR]/flutter sdk/dev/docs",
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GCP_PROJECT": "myproject",
"GIT_BRANCH": "main",
Expand Down Expand Up @@ -423,6 +435,7 @@
],
"cwd": "[START_DIR]/flutter sdk/dev/docs",
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GCP_PROJECT": "myproject",
"GIT_BRANCH": "main",
Expand Down
16 changes: 16 additions & 0 deletions recipe_modules/adhoc_validation/examples/full.expected/mac.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"RECIPE_MODULE[flutter::adhoc_validation]/resources/docs.sh"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -56,6 +57,7 @@
"/path/to/tmp/json"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -104,6 +106,7 @@
"-with-runtime=True"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -133,6 +136,7 @@
"com.apple.CoreSimulator.CoreSimulatorDevice"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -163,6 +167,7 @@
"[CACHE]/osx_sdk/xcode_deadbeef/XCode.app"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -192,6 +197,7 @@
"list"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -222,6 +228,7 @@
"runtimes"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -255,6 +262,7 @@
"[CACHE]/osx_sdk/xcode_deadbeef"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -291,6 +299,7 @@
"/path/to/tmp/json"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -339,6 +348,7 @@
"-with-runtime=True"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -368,6 +378,7 @@
"com.apple.CoreSimulator.CoreSimulatorDevice"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -398,6 +409,7 @@
"[CACHE]/osx_sdk/xcode_deadbeef/XCode.app"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -427,6 +439,7 @@
"list"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -461,6 +474,7 @@
"/path/to/tmp/"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -489,6 +503,7 @@
"RECIPE_MODULE[flutter::adhoc_validation]/resources/docs.sh"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down Expand Up @@ -522,6 +537,7 @@
"--reset"
],
"env": {
"ARTIFACT_HUB_REPOSITORY": "artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p",
"DEPOT_TOOLS": "RECIPE_REPO[depot_tools]",
"GIT_BRANCH": "",
"LUCI_BRANCH": "",
Expand Down
Loading

0 comments on commit 64a2946

Please sign in to comment.