Skip to content

add creds for build cache#313

Merged
soloio-bulldozer[bot] merged 3 commits intomainfrom
fix-build-cache
Mar 4, 2024
Merged

add creds for build cache#313
soloio-bulldozer[bot] merged 3 commits intomainfrom
fix-build-cache

Conversation

@ben-taussig-solo
Copy link
Copy Markdown
Contributor

@ben-taussig-solo ben-taussig-solo commented Mar 1, 2024

Open source companion to https://github.com/solo-io/envoy-gloo-ee/pull/746
One change here is identical to those from that PR:

The method we were hooking into for setting the build cache creds was deprecated in this PR and removed entirely in this PR.

This PR takes the creds management added to some of the azure actions in the latter linked PR and adapts it for use in our own do_ci.sh.

In addition, this PR exports BAZEL_BUILD_EXTRA_OPTIONS, explicitly setting the --remote-cache bazel flag to the value of BAZEL_REMOTE_CACHE, which is currently set by ci/cloudbuild.yaml

As you can see in the first PR linked above, this change is also necessary to ensure that envoy-gloo CI targets the proper remote cache URL

    echo "Setting BAZEL_REMOTE_CACHE is deprecated, please use BAZEL_BUILD_EXTRA_OPTIONS " \
         "or use a user.bazelrc config " >&2

@ben-taussig-solo ben-taussig-solo changed the title export BAZEL_BUILD_EXTRA_OPTIONS, GCP_SERVICE_ACCOUNT_KEY_PATH from d… add creds for build cache Mar 1, 2024
ben-taussig-solo and others added 2 commits March 4, 2024 09:35
Co-authored-by: Jacob Bohanon <jacob.bohanon@solo.io>
@ben-taussig-solo
Copy link
Copy Markdown
Contributor Author

/skip-changelog CI creds only change

Copy link
Copy Markdown
Contributor

@jbohanon jbohanon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@soloio-bulldozer soloio-bulldozer bot merged commit fb359b8 into main Mar 4, 2024
@soloio-bulldozer soloio-bulldozer bot deleted the fix-build-cache branch March 4, 2024 17:43
@jbohanon
Copy link
Copy Markdown
Contributor

jbohanon commented Mar 4, 2024

This didn't actually have any effect because the BAZEL_BUILD_EXTRA_OPTIONS wasn't exported to be available to upstream's CI. I have fixed that in #312

nfuden pushed a commit that referenced this pull request Apr 10, 2024
* export BAZEL_BUILD_EXTRA_OPTIONS, GCP_SERVICE_ACCOUNT_KEY_PATH from do_ci.sh

* Update ci/do_ci.sh

Co-authored-by: Jacob Bohanon <jacob.bohanon@solo.io>

* update BAZEL_BUILD_EXTRA_OPTIONS line

---------

Co-authored-by: Jacob Bohanon <jacob.bohanon@solo.io>
soloio-bulldozer bot pushed a commit that referenced this pull request Apr 11, 2024
…inuation cve (#321)

* bazel: Update to a newer version of envoy-fork with http2 continuation cve

* bazel: Leading space in hash

* Use private pool cloud build worker (#316)

* use 16core private worker

* mimic build-bot's repo tag

* sub-job tag

* add creds for build cache (#313)

* export BAZEL_BUILD_EXTRA_OPTIONS, GCP_SERVICE_ACCOUNT_KEY_PATH from do_ci.sh

* Update ci/do_ci.sh

Co-authored-by: Jacob Bohanon <jacob.bohanon@solo.io>

* update BAZEL_BUILD_EXTRA_OPTIONS line

---------

Co-authored-by: Jacob Bohanon <jacob.bohanon@solo.io>

* actually save the changes to doci resolution

---------

Co-authored-by: Jacob Bohanon <jacob.bohanon@solo.io>
Co-authored-by: Ben Taussig <85883594+ben-taussig-solo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants