Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: gather docker logs on upload failure #11179

Merged
merged 4 commits into from
Apr 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/actions/artifact_failure/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ runs:
killall -9 databend-query || true
killall -9 databend-meta || true

mkdir -p .databend/docker/
docker ps -a --format "{{.Names}}" | while read -r line; do
docker logs "$line" > .databend/docker/"$line".log
done

tar --exclude='target' \
--exclude='website' \
--exclude='docs' \
Expand Down
6 changes: 0 additions & 6 deletions .github/actions/test_stateful_cluster_linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,3 @@ runs:
shell: bash
run: |
./scripts/ci/ci-run-stateful-tests-cluster-minio.sh

- name: Upload failure
if: failure() || cancelled()
uses: ./.github/actions/artifact_failure
with:
name: test-stateful-cluster-linux
6 changes: 0 additions & 6 deletions .github/actions/test_stateful_standalone_linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,3 @@ runs:
shell: bash
run: |
./scripts/ci/ci-run-sharding-tests.sh

- name: Upload failure
if: failure() || cancelled()
uses: ./.github/actions/artifact_failure
with:
name: test-stateful-standalone-linux
14 changes: 12 additions & 2 deletions .github/workflows/dev-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,20 +269,30 @@ jobs:
- uses: ./.github/actions/test_stateless_cluster_linux

test_stateful_standalone:
timeout-minutes: 20
runs-on: [self-hosted, X64, Linux, 4c8g]
needs: build
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test_stateful_standalone_linux
timeout-minutes: 20
- name: Upload failure
if: failure() || cancelled()
uses: ./.github/actions/artifact_failure
with:
name: test-stateful-standalone-linux

test_stateful_cluster:
timeout-minutes: 20
runs-on: [self-hosted, X64, Linux, 4c8g]
needs: build
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test_stateful_cluster_linux
timeout-minutes: 20
- name: Upload failure
if: failure() || cancelled()
uses: ./.github/actions/artifact_failure
with:
name: test-stateful-standalone-linux

test_stateful_large_data:
timeout-minutes: 60
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,29 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test_stateful_standalone_linux
timeout-minutes: 20
with:
profile: release
- name: Upload failure
if: failure() || cancelled()
uses: ./.github/actions/artifact_failure
with:
name: test-stateful-standalone-linux

test_stateful_cluster_linux:
runs-on: ubuntu-latest
needs: build_linux
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/test_stateful_cluster_linux
timeout-minutes: 20
with:
profile: release
- name: Upload failure
if: failure() || cancelled()
uses: ./.github/actions/artifact_failure
with:
name: test-stateful-standalone-linux

test_sqllogic_standalone_macos:
runs-on: macos-11
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/trusted-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ jobs:
context: "Benchmark Local / hits"
state: pending
description: "Queued"
# TODO: enable tpch benchmark for local
- uses: ./.github/actions/create_check_status
if: steps.metadata.outputs.source == 'pr'
with:
Expand All @@ -82,14 +81,6 @@ jobs:
context: "Benchmark Cloud / hits (Large)"
state: pending
description: "Queued"
- uses: ./.github/actions/create_check_status
if: steps.metadata.outputs.source == 'pr'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
sha: ${{ steps.metadata.outputs.head_sha }}
context: "Benchmark Cloud / tpch (Medium)"
state: pending
description: "Queued"
- uses: ./.github/actions/create_check_status
if: steps.metadata.outputs.source == 'pr'
with:
Expand Down
1 change: 1 addition & 0 deletions benchmark/clickbench/hits/analyze.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ANALYZE TABLE hits;