Skip to content

Commit

Permalink
Fix e2e-bench-agent CI to fail correctly (#800)
Browse files Browse the repository at this point in the history
* ♻️ refactor Make tasks for e2e-bench-agent

Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com>

* 💚 use checkout@v2

Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com>

* ✨ upload artifacts on e2e bench agent tests

Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com>

* 💚 run e2e bench agent for internal/net changes

Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com>

* ✏️ fix typo

Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com>
  • Loading branch information
rinx committed Oct 28, 2020
1 parent 5e2c8bb commit baeb365
Show file tree
Hide file tree
Showing 22 changed files with 300 additions and 189 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-protobuf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ jobs:
container:
image: vdaas/vald-ci-container:nightly
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 10
- uses: actions/checkout@v2
- name: build protobuf
run: |
make proto/all
12 changes: 4 additions & 8 deletions .github/workflows/chatops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
env:
USERNAME: ${{ steps.check_comments_changelog.outputs.COMMENTER_USERNAME }}
REQUIRED_POLICY: changelog
- uses: actions/checkout@v1
- uses: actions/checkout@v2
if: steps.check_comments_changelog.outputs.BOOL_TRIGGERED == 'true' && steps.check_permissions.outputs.EXECUTABLE == 'true'
with:
fetch-depth: 0
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
API_URL: ${{ github.event.issue.comments_url }}
BRANCH: ${{ steps.check_comments_rebase.outputs.BRANCH_NAME }}
USERNAME: ${{ steps.check_comments_rebase.outputs.COMMENTER_USERNAME }}
- uses: actions/checkout@v1
- uses: actions/checkout@v2
if: steps.check_comments_rebase.outputs.BOOL_TRIGGERED == 'true' && steps.check_permissions.outputs.EXECUTABLE == 'true'
- name: Automatic Rebase
if: steps.check_comments_rebase.outputs.BOOL_TRIGGERED == 'true' && steps.check_permissions.outputs.EXECUTABLE == 'true'
Expand Down Expand Up @@ -244,10 +244,8 @@ jobs:
USERNAME: ${{ steps.check_comments_gen_test.outputs.COMMENTER_USERNAME }}
PR_AUTHOR: ${{ github.event.issue.user.login }}
API_URL: ${{ github.event.issue.comments_url }}
- uses: actions/checkout@v1
- uses: actions/checkout@v2
if: steps.check_comments_gen_test.outputs.BOOL_TRIGGERED == 'true' && steps.check_permissions.outputs.EXECUTABLE == 'true'
with:
fetch-depth: 10
- name: Generate tests and push
if: steps.check_comments_gen_test.outputs.BOOL_TRIGGERED == 'true' && steps.check_permissions.outputs.EXECUTABLE == 'true'
run: |
Expand Down Expand Up @@ -350,10 +348,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.DISPATCH_TOKEN }}
USERNAME: ${{ steps.check_comments_format.outputs.COMMENTER_USERNAME }}
API_URL: ${{ github.event.issue.comments_url }}
- uses: actions/checkout@v1
- uses: actions/checkout@v2
if: steps.check_comments_format.outputs.BOOL_TRIGGERED == 'true' && steps.check_permissions.outputs.EXECUTABLE == 'true'
with:
fetch-depth: 10
- name: Fetch golang version
if: steps.check_comments_format.outputs.BOOL_TRIGGERED == 'true' && steps.check_permissions.outputs.EXECUTABLE == 'true'
run: |
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ jobs:
image: vdaas/vald-ci-container:nightly
steps:
- name: Check out code.
uses: actions/checkout@v1
with:
fetch-depth: 10
uses: actions/checkout@v2
- name: Run coverage
continue-on-error: true
run: |
Expand Down
48 changes: 12 additions & 36 deletions .github/workflows/dockers-image-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ jobs:
agent-ngt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- uses: actions/checkout@v2
- name: Build the Docker image
id: build_image
run: |
Expand Down Expand Up @@ -39,9 +37,7 @@ jobs:
agent-sidecar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- uses: actions/checkout@v2
- name: Build the Docker image
id: build_image
run: |
Expand Down Expand Up @@ -71,9 +67,7 @@ jobs:
discoverer-k8s:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- uses: actions/checkout@v2
- name: Build the Docker image
id: build_image
run: |
Expand Down Expand Up @@ -103,9 +97,7 @@ jobs:
gateway-vald:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- uses: actions/checkout@v2
- name: Build the Docker image
id: build_image
run: |
Expand Down Expand Up @@ -135,9 +127,7 @@ jobs:
meta-redis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- uses: actions/checkout@v2
- name: Build the Docker image
id: build_image
run: |
Expand Down Expand Up @@ -167,9 +157,7 @@ jobs:
meta-cassandra:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- uses: actions/checkout@v2
- name: Build the Docker image
id: build_image
run: |
Expand Down Expand Up @@ -199,9 +187,7 @@ jobs:
backup-manager-mysql:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- uses: actions/checkout@v2
- name: Build the Docker image
id: build_image
run: |
Expand Down Expand Up @@ -231,9 +217,7 @@ jobs:
backup-manager-cassandra:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- uses: actions/checkout@v2
- name: Build the Docker image
id: build_image
run: |
Expand Down Expand Up @@ -263,9 +247,7 @@ jobs:
compressor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- uses: actions/checkout@v2
- name: Build the Docker image
id: build_image
run: |
Expand Down Expand Up @@ -295,9 +277,7 @@ jobs:
manager-index:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- uses: actions/checkout@v2
- name: Build the Docker image
id: build_image
run: |
Expand Down Expand Up @@ -327,9 +307,7 @@ jobs:
operator-helm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- uses: actions/checkout@v2
- name: Build the Docker image
id: build_image
run: |
Expand Down Expand Up @@ -359,9 +337,7 @@ jobs:
loadtest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- uses: actions/checkout@v2
- name: Build the Docker image
id: build_image
run: |
Expand Down
59 changes: 42 additions & 17 deletions .github/workflows/e2e-bench-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ on:
- master
paths:
- ".github/workflows/e2e-bench-agent.yml"
- "internal/**"
- "!internal/**/*_test.go"
- "!internal/db/**"
- "!internal/k8s/**"
- "internal/core/**"
- "internal/client/**"
- "internal/net/**"
- "apis/grpc/**"
- "pkg/agent/core/ngt/**"
- "cmd/agent/core/ngt/**"
Expand All @@ -18,10 +17,9 @@ on:
pull_request:
paths:
- ".github/workflows/e2e-bench-agent.yml"
- "internal/**"
- "!internal/**/*_test.go"
- "!internal/db/**"
- "!internal/k8s/**"
- "internal/core/**"
- "internal/client/**"
- "internal/net/**"
- "apis/grpc/**"
- "pkg/agent/core/ngt/**"
- "cmd/agent/core/ngt/**"
Expand All @@ -37,12 +35,21 @@ jobs:
image: vdaas/vald-ci-container:nightly
steps:
- name: Check out code.
uses: actions/checkout@v1
with:
fetch-depth: 1
uses: actions/checkout@v2
- name: Run grpc-sequential
run: |
make bench/agent/sequential/grpc
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: agent-sequential-grpc
path: |
./pprof/agent/sequential/grpc.bin
./pprof/agent/sequential/grpc.cpu.out
./pprof/agent/sequential/grpc.mem.out
./pprof/agent/sequential/grpc.trace.out
./pprof/agent/sequential/grpc.cpu.svg
./pprof/agent/sequential/grpc.mem.svg
grpc-stream:
name: grpc-stream
Expand All @@ -51,12 +58,21 @@ jobs:
image: vdaas/vald-ci-container:nightly
steps:
- name: Check out code.
uses: actions/checkout@v1
with:
fetch-depth: 1
uses: actions/checkout@v2
- name: Run grpc-stream
run: |
make bench/agent/stream
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: agent-stream
path: |
./pprof/agent/stream.bin
./pprof/agent/stream.cpu.out
./pprof/agent/stream.mem.out
./pprof/agent/stream.trace.out
./pprof/agent/stream.cpu.svg
./pprof/agent/stream.mem.svg
rest:
name: rest
Expand All @@ -65,9 +81,18 @@ jobs:
image: vdaas/vald-ci-container:nightly
steps:
- name: Check out code.
uses: actions/checkout@v1
with:
fetch-depth: 1
uses: actions/checkout@v2
- name: Run rest
run: |
make bench/agent/sequential/rest
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: agent-sequential-rest
path: |
./pprof/agent/sequential/rest.bin
./pprof/agent/sequential/rest.cpu.out
./pprof/agent/sequential/rest.mem.out
./pprof/agent/sequential/rest.trace.out
./pprof/agent/sequential/rest.cpu.svg
./pprof/agent/sequential/rest.mem.svg
2 changes: 1 addition & 1 deletion .github/workflows/e2e-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: wait for dockers
run: |
tag=$(cat versions/VALD_VERSION)
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/helm-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ jobs:
image: vdaas/vald-ci-container:nightly
steps:
- name: Check out code.
uses: actions/checkout@v1
with:
fetch-depth: 1
uses: actions/checkout@v2
- name: Helm version
run: |
helm version
Expand All @@ -31,9 +29,7 @@ jobs:
image: vdaas/vald-ci-container:nightly
steps:
- name: Check out code.
uses: actions/checkout@v1
with:
fetch-depth: 1
uses: actions/checkout@v2
- name: Helm version
run: |
helm version
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ jobs:
image: vdaas/vald-ci-container:nightly
steps:
- name: Check out code.
uses: actions/checkout@v1
with:
fetch-depth: 10
uses: actions/checkout@v2
- name: Helm version
run: |
helm version
Expand Down Expand Up @@ -68,9 +66,7 @@ jobs:
image: vdaas/vald-ci-container:nightly
steps:
- name: Check out code.
uses: actions/checkout@v1
with:
fetch-depth: 10
uses: actions/checkout@v2
- name: Helm version
run: |
helm version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reviewdog-hadolint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
name: runner / hadolint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: hadolint
uses: reviewdog/action-hadolint@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reviewdog-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
name: runner / LanguageTool
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: LanguageTool
uses: reviewdog/action-languagetool@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
container:
image: vdaas/vald-ci-container:nightly
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: go build
run: |
go build ./...
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
image: vdaas/vald-ci-container:nightly
steps:
- name: Check out code.
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get latest gitwerk
Expand Down
Loading

0 comments on commit baeb365

Please sign in to comment.