-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge main into cors_on_direct_response
- Loading branch information
Showing
613 changed files
with
28,252 additions
and
13,987 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,45 +1,24 @@ | ||
name: CI | ||
name: Codegen | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
codegen: | ||
name: codegen check | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Cancel Previous Actions | ||
uses: styfle/cancel-workflow-action@0.11.0 | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Free disk space | ||
run: | | ||
echo "Before clearing disk space:" | ||
df -h | ||
# https://github.com/actions/virtual-environments/issues/709 | ||
sudo apt-get clean | ||
# Clean up pre-installed tools | ||
# https://github.com/actions/virtual-environments/issues/1918 | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf /usr/local/share/boost | ||
sudo rm -rf $AGENT_TOOLSDIRECTORY | ||
echo "After clearing disk space:" | ||
df -h | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: go.mod | ||
id: go | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/workflows/composite-actions/prep-go-runner | ||
- name: Install Protoc | ||
uses: arduino/setup-protoc@master | ||
uses: arduino/setup-protoc@v1 | ||
with: | ||
version: '3.6.1' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Generate Code | ||
run: | | ||
./ci/check-generated-code.sh | ||
./ci/check-generated-code.sh | ||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v35 | ||
- name: Check for DO_NOT_SUBMIT | ||
run: ./ci/do-not-submit.sh ${{ steps.changed-files.outputs.all_modified_files }} |
20 changes: 20 additions & 0 deletions
20
.github/workflows/composite-actions/performance-tests/action.yaml
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,20 @@ | ||
name: Performance Tests | ||
description: Runs tests with the performance label | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Testing - performance tests | ||
shell: bash | ||
run: make install-test-tools run-performance-tests | ||
- name: save results | ||
if: ${{ failure() }} | ||
shell: bash | ||
run: mkdir -p _output/performance-artifacts && echo '{"url":"https://github.com/solo-io/gloo/actions/runs/${{github.run_id}}", | ||
"name":"performance"}' > _output/performance-artifacts/test-out.json | ||
- uses: actions/upload-artifact@v3 | ||
if: ${{ failure() }} | ||
with: | ||
name: performance-dump | ||
path: "_output/performance-artifacts" | ||
if-no-files-found: warn |
37 changes: 37 additions & 0 deletions
37
.github/workflows/composite-actions/prep-go-runner/action.yaml
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,37 @@ | ||
name: Prep Go Runner | ||
description: common setup steps for gloo actions | ||
inputs: | ||
working-directory: | ||
description: 'directory to run setup steps in' | ||
required: false | ||
default: '.' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Cancel Previous Actions | ||
uses: styfle/cancel-workflow-action@0.11.0 | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Free disk space | ||
shell: bash | ||
run: | | ||
echo "Before clearing disk space:" | ||
df -h | ||
# https://github.com/actions/virtual-environments/issues/709 | ||
sudo apt-get clean | ||
# Clean up pre-installed tools | ||
# https://github.com/actions/virtual-environments/issues/1918 | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf /usr/local/share/boost | ||
sudo rm -rf $AGENT_TOOLSDIRECTORY | ||
echo "After clearing disk space:" | ||
df -h | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: ${{ inputs.working-directory }}/go.mod | ||
id: go |
24 changes: 24 additions & 0 deletions
24
.github/workflows/composite-actions/process-skip-directives/action.yaml
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,24 @@ | ||
name: Process Skip CI Directives | ||
|
||
description: Determine which jobs should be skipped in CI | ||
|
||
inputs: | ||
base-ref: | ||
description: "The base github ref" | ||
required: true | ||
|
||
outputs: | ||
skip-kube-tests: | ||
description: "Whether or not to skip the kube2e tests" | ||
value: ${{ steps.process-skip-directives.outputs.skip-kube-tests }} | ||
skip-docs-build: | ||
description: "Whether or not to build our docs" | ||
value: ${{ steps.process-skip-directives.outputs.skip-docs-build }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- id: process-skip-directives | ||
name: Process Skip Directives | ||
shell: bash | ||
run: ./ci/github-actions/process-skip-directives/script.sh ${{ inputs.base-ref }} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.