forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into xds_failover_monito…
…ring Signed-off-by: Adi Suissa-Peleg <adip@google.com>
- Loading branch information
Showing
34 changed files
with
675 additions
and
390 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
name: Verify | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
request: | ||
type: string | ||
required: true | ||
trusted: | ||
type: boolean | ||
required: true | ||
|
||
concurrency: | ||
group: >- | ||
${{ github.actor != 'trigger-release-envoy[bot]' | ||
&& github.event.inputs.head_ref | ||
|| github.run_id | ||
}}-${{ github.event.workflow.id }}-verify | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
verify-examples: | ||
permissions: | ||
contents: read | ||
packages: read | ||
name: ${{ matrix.name || matrix.target }} | ||
uses: ./.github/workflows/_run.yml | ||
with: | ||
bazel-extra: ${{ matrix.bazel-extra || '--config=rbe-envoy-engflow' }} | ||
cache-build-image: ${{ matrix.cache-build-image }} | ||
cache-build-image-key-suffix: ${{ matrix.arch == 'arm64' && format('-{0}', matrix.arch) || '' }} | ||
container-command: ${{ matrix.container-command }} | ||
concurrency-suffix: -${{ matrix.arch || 'x64' }} | ||
rbe: ${{ matrix.rbe }} | ||
request: ${{ inputs.request }} | ||
runs-on: ${{ matrix.runs-on || 'ubuntu-24.04' }} | ||
steps-pre: ${{ matrix.steps-pre }} | ||
source: ${{ matrix.source }} | ||
target: ${{ matrix.target }} | ||
trusted: ${{ inputs.trusted }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: examples | ||
target: verify_examples | ||
rbe: false | ||
source: | | ||
export NO_BUILD_SETUP=1 | ||
steps-pre: | | ||
- run: | | ||
# Install expected host packages | ||
export DEBIAN_FRONTEND=noninteractive | ||
sudo apt-get -qq update -y | ||
sudo apt-get -qq install -y --no-install-recommends expect gettext yq whois | ||
shell: bash | ||
- id: url | ||
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.35 | ||
with: | ||
options: -Rr | ||
input: >- | ||
${{ inputs.trusted | ||
&& fromJSON(inputs.request).request.sha | ||
|| fromJSON(inputs.request).request.ref }} | ||
filter: | | ||
.[:7] as $sha | ||
| if ${{ inputs.trusted }} then | ||
"envoy-postsubmit" | ||
else | ||
"envoy-pr" | ||
end | ||
| . as $bucket | ||
| "https://storage.googleapis.com/\($bucket)/\($sha)" | ||
- uses: envoyproxy/toolshed/gh-actions/docker/fetch@actions-v0.2.35 | ||
with: | ||
url: %{{ steps.url.outputs.value }}/docker/envoy.tar | ||
variant: dev | ||
- uses: envoyproxy/toolshed/gh-actions/docker/fetch@actions-v0.2.35 | ||
with: | ||
url: %{{ steps.url.outputs.value }}/docker/envoy-contrib.tar | ||
variant: contrib-dev | ||
- uses: envoyproxy/toolshed/gh-actions/docker/fetch@actions-v0.2.35 | ||
with: | ||
url: %{{ steps.url.outputs.value }}/docker/envoy-google-vrp.tar | ||
variant: google-vrp-dev | ||
- run: docker images | grep envoy | ||
shell: bash | ||
verify-distro: | ||
permissions: | ||
contents: read | ||
packages: read | ||
name: ${{ matrix.name || matrix.target }} | ||
uses: ./.github/workflows/_run.yml | ||
with: | ||
bazel-extra: ${{ matrix.bazel-extra || '--config=rbe-envoy-engflow' }} | ||
cache-build-image: ${{ fromJSON(inputs.request).request.build-image.default }} | ||
cache-build-image-key-suffix: ${{ matrix.arch == 'arm64' && format('-{0}', matrix.arch) || '' }} | ||
container-command: ./ci/run_envoy_docker.sh | ||
concurrency-suffix: -${{ matrix.arch || 'x64' }} | ||
rbe: ${{ matrix.rbe && matrix.rbe || false }} | ||
request: ${{ inputs.request }} | ||
runs-on: ${{ matrix.runs-on || 'ubuntu-24.04' }} | ||
source: | | ||
export NO_BUILD_SETUP=1 | ||
export ENVOY_DOCKER_IN_DOCKER=1 | ||
target: ${{ matrix.target }} | ||
trusted: ${{ inputs.trusted }} | ||
steps-pre: | | ||
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.30 | ||
id: url | ||
with: | ||
options: -Rr | ||
input: >- | ||
${{ inputs.trusted | ||
&& fromJSON(inputs.request).request.sha | ||
|| fromJSON(inputs.request).request.ref }} | ||
filter: | | ||
.[:7] as $sha | ||
| if ${{ inputs.trusted }} then | ||
"envoy-postsubmit" | ||
else | ||
"envoy-pr" | ||
end | ||
| . as $bucket | ||
| "https://storage.googleapis.com/\($bucket)/\($sha)/release/release.signed.tar.zst" | ||
- uses: envoyproxy/toolshed/gh-actions/fetch@actions-v0.2.30 | ||
id: fetch | ||
with: | ||
url: %{{ steps.url.outputs.value }} | ||
- run: | | ||
echo ARCH=${{ matrix.arch || 'x64' }} >> $GITHUB_ENV | ||
echo DEB_ARCH=${{ matrix.arch != 'arm64' && 'amd64' || 'arm64' }} >> $GITHUB_ENV | ||
shell: bash | ||
- run: | | ||
TEMP_DIR=$(mktemp -d) | ||
zstd --stdout -d %{{ steps.fetch.outputs.path }} | tar --warning=no-timestamp -xf - -C "${TEMP_DIR}" | ||
mkdir ${TEMP_DIR}/debs | ||
tar xf ${TEMP_DIR}/bin/debs.tar.gz -C ${TEMP_DIR}/debs | ||
mkdir -p ${TEMP_DIR}/distribution/deb | ||
cp -a ${TEMP_DIR}/debs/*_${DEB_ARCH}* ${TEMP_DIR}/distribution/deb | ||
cp -a ${TEMP_DIR}/signing.key ${TEMP_DIR}/distribution | ||
mkdir -p %{{ runner.temp }}/distribution/${ARCH} | ||
tar czf %{{ runner.temp }}/distribution/${ARCH}/packages.${ARCH}.tar.gz -C ${TEMP_DIR}/distribution . | ||
shell: bash | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
|
||
- name: verify_distro_x64 | ||
target: verify_distro | ||
rbe: true | ||
|
||
- name: verify_distro_arm64 | ||
target: verify_distro | ||
arch: arm64 | ||
bazel-extra: >- | ||
--config=cache-envoy-engflow | ||
--config=bes-envoy-engflow | ||
runs-on: envoy-arm64-small |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.