Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into remove_route_unused…
Browse files Browse the repository at this point in the history
…_field

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
  • Loading branch information
adisuissa committed Oct 1, 2024
2 parents 07ee5df + ce17605 commit 632e4ea
Show file tree
Hide file tree
Showing 26 changed files with 120 additions and 101 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,29 @@ jobs:
docker:
runs-on: ${{ inputs.runs-on || 'ubuntu-24.04' }}
steps:
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.36
id: appauth
name: Appauth (mutex lock)
with:
app_id: ${{ secrets.app-id }}
key: ${{ secrets.app-key }}
- uses: envoyproxy/toolshed/gh-actions/docker/cache/prime@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/docker/cache/prime@actions-v0.2.36
id: docker
name: Prime Docker cache (${{ inputs.image-tag }}${{ inputs.cache-suffix }})
with:
image-tag: ${{ inputs.image-tag }}
key-suffix: ${{ inputs.cache-suffix }}
lock-token: ${{ steps.appauth.outputs.token }}
lock-repository: ${{ inputs.lock-repository }}
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.36
id: data
name: Cache data
with:
input-format: yaml
input: |
cached: ${{ steps.docker.outputs.cached }}
key: ${{ inputs.image-tag }}${{ inputs.cache-suffix }}
- uses: envoyproxy/toolshed/gh-actions/json/table@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/json/table@actions-v0.2.36
name: Summary
with:
json: ${{ steps.data.outputs.value }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/_check_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
# bazel-extra: '--config=remote-envoy-engflow'
cache-build-image: ${{ fromJSON(inputs.request).request.build-image.default }}
concurrency-suffix: -${{ matrix.target }}
diskspace-hack: ${{ matrix.diskspace-hack || false }}
error-match: |
ERROR
error:
Expand All @@ -50,5 +51,6 @@ jobs:
include:
- target: coverage
name: Coverage
diskspace-hack: true
- target: fuzz_coverage
name: Fuzz coverage
8 changes: 4 additions & 4 deletions .github/workflows/_finish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
actions: read
contents: read
steps:
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.36
name: Incoming data
id: needs
with:
Expand Down Expand Up @@ -87,21 +87,21 @@ jobs:
summary: "Check has finished",
text: $text}}}}
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.36
name: Print summary
with:
input: ${{ toJSON(steps.needs.outputs.value).summary-title }}
filter: |
"## \(.)"
options: -Rr
output-path: GITHUB_STEP_SUMMARY
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.36
name: Appauth
id: appauth
with:
app_id: ${{ secrets.app-id }}
key: ${{ secrets.app-key }}
- uses: envoyproxy/toolshed/gh-actions/github/checks@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/github/checks@actions-v0.2.36
name: Update check
with:
action: update
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/_load.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
# Handle any failure in triggering job
# Remove any `checks` we dont care about
# Prepare a check request
- uses: envoyproxy/toolshed/gh-actions/github/env/load@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/github/env/load@actions-v0.2.36
name: Load env
id: data
with:
Expand All @@ -118,21 +118,21 @@ jobs:
GH_TOKEN: ${{ github.token }}

# Update the check
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.36
name: Appauth
id: appauth
with:
app_id: ${{ secrets.app-id }}
key: ${{ secrets.app-key }}
- uses: envoyproxy/toolshed/gh-actions/github/checks@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/github/checks@actions-v0.2.36
name: Update check
if: ${{ fromJSON(steps.data.outputs.data).data.check.action == 'RUN' }}
with:
action: update
checks: ${{ toJSON(fromJSON(steps.data.outputs.data).checks) }}
token: ${{ steps.appauth.outputs.token }}

- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.36
name: Print request summary
with:
input: |
Expand All @@ -152,7 +152,7 @@ jobs:
| $summary.summary as $summary
| "${{ inputs.template-request-summary }}"
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.36
id: request-output
name: Load request
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/_load_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ jobs:
request: ${{ steps.env.outputs.data }}
trusted: true
steps:
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.36
id: started
name: Create timestamp
with:
options: -r
filter: |
now
- uses: envoyproxy/toolshed/gh-actions/github/checkout@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/github/checkout@actions-v0.2.36
id: checkout
name: Checkout Envoy repository
- name: Generate environment variables
uses: envoyproxy/toolshed/gh-actions/envoy/ci/env@actions-v0.2.35
uses: envoyproxy/toolshed/gh-actions/envoy/ci/env@actions-v0.2.36
id: env
with:
branch-name: ${{ inputs.branch-name }}
Expand All @@ -86,7 +86,7 @@ jobs:

- name: Request summary
id: summary
uses: envoyproxy/toolshed/gh-actions/github/env/summary@actions-v0.2.35
uses: envoyproxy/toolshed/gh-actions/github/env/summary@actions-v0.2.36
with:
actor: ${{ toJSON(fromJSON(steps.env.outputs.data).request.actor) }}
base-sha: ${{ fromJSON(steps.env.outputs.data).request.base-sha }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/_precheck_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,20 @@ jobs:
error:
Error:
target: ${{ matrix.target }}
target-suffix: ${{ matrix.target-suffix }}
trusted: ${{ inputs.trusted }}
strategy:
fail-fast: false
matrix:
include:
- target: release.test_only
name: Release (x64)
target-suffix: x64
arch: x64
rbe: true
- target: release.test_only
name: Release (arm64)
target-suffix: arm64
arch: arm64
bazel-extra: >-
--config=common-envoy-engflow
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/_publish_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
with:
bazel-extra: ${{ matrix.bazel-extra }}
target: ${{ matrix.target }}
target-suffix: ${{ matrix.arch }}
cache-build-image: ${{ fromJSON(inputs.request).request.build-image.default }}
cache-build-image-key-suffix: ${{ matrix.arch == 'arm64' && format('-{0}', matrix.arch) || '' }}
concurrency-suffix: -${{ matrix.arch }}
Expand Down Expand Up @@ -91,6 +92,7 @@ jobs:
downloads: |
release.${{ matrix.arch }}: release/${{ matrix.arch }}/bin/
target: ${{ matrix.target }}
target-suffix: ${{ matrix.arch }}
cache-build-image: ${{ fromJSON(inputs.request).request.build-image.default }}
cache-build-image-key-suffix: ${{ matrix.cache-build-image-key-suffix }}
concurrency-suffix: -${{ matrix.arch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_publish_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ jobs:
needs:
- publish
steps:
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.36
id: appauth
with:
app_id: ${{ secrets.ENVOY_CI_SYNC_APP_ID }}
key: ${{ secrets.ENVOY_CI_SYNC_APP_KEY }}
- uses: envoyproxy/toolshed/gh-actions/dispatch@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/dispatch@actions-v0.2.36
with:
ref: main
repository: ${{ fromJSON(inputs.request).request.version.dev && 'envoyproxy/envoy-website' || 'envoyproxy/archive' }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/_publish_verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ jobs:
export NO_BUILD_SETUP=1
export ENVOY_DOCKER_IN_DOCKER=1
target: ${{ matrix.target }}
target-suffix: ${{ matrix.arch }}
trusted: ${{ inputs.trusted }}
steps-pre: |
- run: |
echo ARCH=${{ matrix.arch || 'x64' }} >> $GITHUB_ENV
echo ARCH=${{ matrix.arch }} >> $GITHUB_ENV
echo DEB_ARCH=${{ matrix.arch == 'arm64' && 'arm64' || 'amd64' }} >> $GITHUB_ENV
shell: bash
- run: |
Expand All @@ -124,6 +125,7 @@ jobs:

- name: verify_distro_x64
target: verify_distro
arch: x64
rbe: true

- name: verify_distro_arm64
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ jobs:
env: ${{ steps.data.outputs.value }}
config: ${{ steps.config.outputs.config }}
steps:
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.36
id: started
name: Create timestamp
with:
options: -r
filter: |
now
- uses: envoyproxy/toolshed/gh-actions/github/checkout@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/github/checkout@actions-v0.2.36
id: checkout
name: Checkout Envoy repository
with:
Expand All @@ -60,7 +60,7 @@ jobs:
# *ALL* variables collected should be treated as untrusted and should be sanitized before
# use
- name: Generate environment variables from commit
uses: envoyproxy/toolshed/gh-actions/envoy/ci/request@actions-v0.2.35
uses: envoyproxy/toolshed/gh-actions/envoy/ci/request@actions-v0.2.36
id: env
with:
branch-name: ${{ steps.checkout.outputs.branch-name }}
Expand All @@ -71,7 +71,7 @@ jobs:
vars: ${{ toJSON(vars) }}
- name: Request summary
id: summary
uses: envoyproxy/toolshed/gh-actions/github/env/summary@actions-v0.2.35
uses: envoyproxy/toolshed/gh-actions/github/env/summary@actions-v0.2.36
with:
actor: ${{ toJSON(fromJSON(steps.env.outputs.data).request.actor) }}
base-sha: ${{ fromJSON(steps.env.outputs.data).request.base-sha }}
Expand All @@ -87,7 +87,7 @@ jobs:
target-branch: ${{ fromJSON(steps.env.outputs.data).request.target-branch }}

- name: Environment data
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.35
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.36
id: data
with:
input: |
Expand Down
40 changes: 23 additions & 17 deletions .github/workflows/_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,16 @@ on:
type: string
default: |
- run: |
echo "disk space at beginning of build:"
df -h
# disk space at beginning of build
df -h > "${TMP_REPORT}/df-pre"
shell: bash
report-post:
type: string
default: |
- run: |
echo "disk space at end of build:"
df -h
# disk space at end of build
df -h > "${TMP_REPORT}/df-post"
(du -ch "%{{ inputs.temp-dir || runner.temp }}" | grep -E "[0-9]{2,}M|[0-9]G" || :) > "${TMP_REPORT}/du-post"
shell: bash
request:
type: string
Expand All @@ -123,15 +124,15 @@ on:
type: string
steps-post:
type: string
default: |
- run: |
du -ch "%{{ inputs.temp-dir || runner.temp }}" | grep -E "[0-9]{2,}M|[0-9]G" || :
shell: bash
steps-post-name:
type: string
target:
type: string
required: true
target-name:
type: string
target-suffix:
type: string
temp-dir:
type: string
timeout-minutes:
Expand Down Expand Up @@ -173,18 +174,18 @@ jobs:
packages: read
if: ${{ ! inputs.skip }}
runs-on: ${{ inputs.runs-on || fromJSON(inputs.request).config.ci.agent-ubuntu }}
name: ${{ inputs.command }} ${{ inputs.target }}
name: ${{ inputs.target-suffix && format('[{0}] ', inputs.target-suffix) || '' }}${{ inputs.command }} ${{ inputs.target }}
timeout-minutes: ${{ inputs.timeout-minutes }}
steps:
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.36
id: started
name: Create timestamp
with:
options: -r
filter: |
now
# This controls which input vars are exposed to the run action (and related steps)
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.36
name: Context
id: context
with:
Expand All @@ -205,12 +206,12 @@ jobs:
| . * {$config, $check}
- if: ${{ inputs.cache-build-image }}
name: Restore Docker cache ${{ inputs.cache-build-image && format('({0})', inputs.cache-build-image) || '' }}
uses: envoyproxy/toolshed/gh-actions/docker/cache/restore@actions-v0.2.35
uses: envoyproxy/toolshed/gh-actions/docker/cache/restore@actions-v0.2.36
with:
image_tag: ${{ inputs.cache-build-image }}
key-suffix: ${{ inputs.cache-build-image-key-suffix }}

- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/appauth@actions-v0.2.36
id: appauth
name: Appauth
if: ${{ inputs.trusted }}
Expand All @@ -221,7 +222,7 @@ jobs:
# - the workaround is to allow the token to be passed through.
token: ${{ github.token }}
token-ok: true
- uses: envoyproxy/toolshed/gh-actions/github/checkout@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/github/checkout@actions-v0.2.36
id: checkout
name: Checkout Envoy repository
with:
Expand All @@ -238,7 +239,7 @@ jobs:
token: ${{ inputs.trusted && steps.appauth.outputs.token || github.token }}

# This is currently only use by mobile-docs and can be removed once they are updated to the newer website
- uses: envoyproxy/toolshed/gh-actions/github/checkout@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/github/checkout@actions-v0.2.36
id: checkout-extra
name: Checkout extra repository (for publishing)
if: ${{ inputs.checkout-extra }}
Expand All @@ -247,7 +248,7 @@ jobs:
ssh-key: ${{ inputs.trusted && inputs.ssh-key-extra || '' }}

- name: Import GPG key
uses: envoyproxy/toolshed/gh-actions/gpg/import@actions-v0.2.35
uses: envoyproxy/toolshed/gh-actions/gpg/import@actions-v0.2.36
if: ${{ inputs.import-gpg }}
with:
key: ${{ secrets.gpg-key }}
Expand Down Expand Up @@ -280,7 +281,7 @@ jobs:
echo "BAZEL_BUILD_EXTRA_OPTIONS=${BAZEL_BUILD_EXTRA_OPTIONS}" >> "$GITHUB_ENV"
echo "GCP_SERVICE_ACCOUNT_KEY_PATH=${GCP_SERVICE_ACCOUNT_KEY_PATH}" >> "$GITHUB_ENV"
- uses: envoyproxy/toolshed/gh-actions/github/run@actions-v0.2.35
- uses: envoyproxy/toolshed/gh-actions/github/run@actions-v0.2.36
name: Run CI ${{ inputs.command }} ${{ inputs.target }}
with:
args: ${{ inputs.args != '--' && inputs.args || inputs.target }}
Expand All @@ -297,6 +298,11 @@ jobs:
fail-match: ${{ inputs.fail-match }}
notice-match: ${{ inputs.notice-match }}
output-path: ${{ inputs.output-path }}
report-name: >-
ci-report-${{
inputs.target-suffix
&& format('{0}-', inputs.target-suffix)
|| '' }}${{ inputs.target-name || inputs.target }}.json
report-pre: ${{ inputs.report-pre }}
report-post: ${{ inputs.report-post }}
source: ${{ inputs.source }}
Expand Down
Loading

0 comments on commit 632e4ea

Please sign in to comment.