Skip to content

Commit

Permalink
chore(ci): adjust runner size (#16879)
Browse files Browse the repository at this point in the history
* chore(ci): adjust runner size

* z

* z

* z

* z

* z

* z

* z

* z

* z

* z
  • Loading branch information
everpcpc authored and dantengsky committed Nov 21, 2024
1 parent 35199b8 commit 6d7b1f1
Show file tree
Hide file tree
Showing 11 changed files with 312 additions and 122 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bindings.python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ concurrency:

jobs:
linux:
runs-on: [self-hosted, "${{ matrix.runner }}", Linux, 8c16g, aws]
runs-on: [self-hosted, "${{ matrix.runner }}", Linux, 4c16g, aws]
strategy:
matrix:
include:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
build:
needs: info
runs-on: [self-hosted, "${{ matrix.runner }}", Linux, 16c32g, aws]
runs-on: [self-hosted, "${{ matrix.runner }}", Linux, 8c32g, aws]
strategy:
matrix:
include:
Expand All @@ -69,7 +69,7 @@ jobs:
docker:
needs: [info, build]
timeout-minutes: 10
runs-on: [self-hosted, X64, Linux, 4c8g, aws]
runs-on: [self-hosted, X64, Linux, 2c8g, aws]
outputs:
tag: ${{ steps.prepare.outputs.tag }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
build:
needs: info
runs-on: [self-hosted, "${{ matrix.runner }}", Linux, 16c32g, aws]
runs-on: [self-hosted, "${{ matrix.runner }}", Linux, 8c32g, aws]
strategy:
matrix:
include:
Expand All @@ -56,7 +56,7 @@ jobs:

chaos:
needs: [info, build]
runs-on: [self-hosted, X64, Linux, 8c16g, aws]
runs-on: [self-hosted, X64, Linux, 4c16g, aws]
steps:
- uses: actions/checkout@v4
with:
Expand Down
65 changes: 31 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Checkout Docs
uses: actions/checkout@v4
with:
repository: datafuselabs/databend-docs
repository: databendlabs/databend-docs
ref: main
- name: Get date
shell: bash
Expand All @@ -83,10 +83,10 @@ jobs:
mkdir -p docs/release-stable
df="docs/release-stable/${{ env.DATE }}_${{ needs.create_release.outputs.version }}.md"
echo "---" > $df
gh release view --repo datafuselabs/databend ${{ needs.create_release.outputs.version }} >> $df
gh release view --repo databendlabs/databend ${{ needs.create_release.outputs.version }} >> $df
sed -i -E 's/^--$/---/g' $df
sed -i -E '/^asset:/d' $df
sed -i -E 's_https://github.com/datafuselabs/databend/pull/([0-9]+)_[#\1](https://github.com/datafuselabs/databend/pull/\1)_g' $df
sed -i -E 's_https://github.com/databendlabs/databend/pull/([0-9]+)_[#\1](https://github.com/databendlabs/databend/pull/\1)_g' $df
git add docs/release-stable
git status
- uses: peter-evans/create-pull-request@v4
Expand All @@ -99,7 +99,7 @@ jobs:
delete-branch: true

build_default:
runs-on: [self-hosted, "${{ matrix.runner }}", Linux, 16c32g, aws]
runs-on: [self-hosted, "${{ matrix.runner }}", Linux, 8c32g, aws]
needs: create_release
strategy:
fail-fast: false
Expand All @@ -117,6 +117,7 @@ jobs:
uses: ./.github/actions/build_linux
env:
DATABEND_RELEASE_VERSION: ${{ needs.create_release.outputs.version }}
DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY: ${{ secrets.DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY }}
with:
sha: ${{ github.sha }}
target: ${{ matrix.target }}
Expand All @@ -130,15 +131,15 @@ jobs:
cp ./target/${{ matrix.target }}/${{ env.BUILD_PROFILE }}/databend-* ./target/${{ env.BUILD_PROFILE }}/
bash ./scripts/ci/ci-run-sqllogic-tests.sh base
build_udf:
runs-on: [self-hosted, "${{ matrix.runner }}", Linux, 16c32g, aws]
build_musl:
runs-on: [self-hosted, X64, Linux, 8c32g, aws]
needs: create_release
strategy:
fail-fast: false
matrix:
include:
- { target: x86_64-unknown-linux-gnu, runner: X64 }
- { target: aarch64-unknown-linux-gnu, runner: ARM64 }
target:
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-musl
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -149,15 +150,14 @@ jobs:
uses: ./.github/actions/build_linux
env:
DATABEND_RELEASE_VERSION: ${{ needs.create_release.outputs.version }}
DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY: ${{ secrets.DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY }}
with:
sha: ${{ github.sha }}
target: ${{ matrix.target }}
artifacts: sqllogictests,sqlsmith,metactl,meta,query
features: python-udf
category: udf
artifacts: query,meta,metactl

build_hdfs:
runs-on: [self-hosted, "${{ matrix.runner }}", Linux, 16c32g, aws]
build_udf:
runs-on: [self-hosted, "${{ matrix.runner }}", Linux, 8c32g, aws]
needs: create_release
strategy:
fail-fast: false
Expand All @@ -175,32 +175,29 @@ jobs:
uses: ./.github/actions/build_linux
env:
DATABEND_RELEASE_VERSION: ${{ needs.create_release.outputs.version }}
DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY: ${{ secrets.DATABEND_ENTERPRISE_LICENSE_PUBLIC_KEY }}
with:
sha: ${{ github.sha }}
target: ${{ matrix.target }}
artifacts: sqllogictests,sqlsmith,metactl,meta,query
features: storage-hdfs
category: hdfs
features: python-udf
category: udf

publish:
runs-on: [self-hosted, "${{ matrix.runner }}", Linux, 4c8g, aws]
needs: [create_release, build_default, build_hdfs]
runs-on: [self-hosted, X64, Linux, 2c8g, aws]
needs: [create_release, build_default, build_musl]
strategy:
fail-fast: false
matrix:
include:
- category: default
target: x86_64-unknown-linux-gnu
runner: X64
- category: default
target: aarch64-unknown-linux-gnu
runner: ARM64
- category: hdfs
target: x86_64-unknown-linux-gnu
runner: X64
- category: hdfs
target: aarch64-unknown-linux-gnu
runner: ARM64
- category: default
target: x86_64-unknown-linux-musl
- category: default
target: aarch64-unknown-linux-musl
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -254,7 +251,7 @@ jobs:
category: ${{ matrix.category }}

publish_testsuite:
runs-on: [self-hosted, X64, Linux, 4c8g, aws]
runs-on: [self-hosted, X64, Linux, 2c8g, aws]
needs: [create_release, build_default]
strategy:
fail-fast: false
Expand Down Expand Up @@ -298,7 +295,7 @@ jobs:
category: testsuite

docker_all_in_one:
runs-on: [self-hosted, X64, Linux, 4c8g, aws]
runs-on: [self-hosted, X64, Linux, 2c8g, aws]
needs: [create_release, build_default]
steps:
- name: Checkout
Expand Down Expand Up @@ -373,7 +370,7 @@ jobs:
readme-filepath: ./docker/README.md

docker_service:
runs-on: [self-hosted, X64, Linux, 4c8g, aws]
runs-on: [self-hosted, X64, Linux, 2c8g, aws]
needs: [create_release, build_udf]
strategy:
fail-fast: false
Expand Down Expand Up @@ -444,7 +441,7 @@ jobs:
file: ./docker/service/${{ matrix.service }}.Dockerfile

distribution:
runs-on: [self-hosted, X64, Linux, 4c8g, aws]
runs-on: [self-hosted, X64, Linux, 2c8g, aws]
needs: [create_release, build_default]
strategy:
matrix:
Expand Down Expand Up @@ -595,7 +592,7 @@ jobs:
sqlsmith:
needs: [create_release, notify]
runs-on: [self-hosted, X64, Linux, 4c8g, aws]
runs-on: [self-hosted, X64, Linux, 2c8g, aws]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -620,7 +617,7 @@ jobs:

metachaos:
needs: [create_release, notify]
runs-on: [self-hosted, X64, Linux, 8c16g, aws]
runs-on: [self-hosted, X64, Linux, 4c16g, aws]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -646,7 +643,7 @@ jobs:
await script({context, core})
# sharing:
# runs-on: [self-hosted, X64, Linux, 4c8g, aws]
# runs-on: [self-hosted, X64, Linux, 2c8g, aws]
# needs: [create_release, notify]
# steps:
# - uses: actions/checkout@v4
Expand All @@ -655,7 +652,7 @@ jobs:
# - name: checkout share endpoint
# uses: actions/checkout@v4
# with:
# repository: datafuselabs/share-endpoint
# repository: databendlabs/share-endpoint
# token: ${{ secrets.DATABEND_BOT_TOKEN }}
# path: share-endpoint
# - name: Download artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reuse.benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ env:
jobs:
local:
timeout-minutes: 60
runs-on: [self-hosted, X64, Linux, 16c32g, "${{ inputs.runner_provider }}"]
runs-on: [self-hosted, X64, Linux, 8c32g, "${{ inputs.runner_provider }}"]
strategy:
matrix:
dataset:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reuse.linux.hive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env:

jobs:
build:
runs-on: [self-hosted, X64, Linux, 8c16g, "${{ inputs.runner_provider }}"]
runs-on: [self-hosted, X64, Linux, 4c16g, "${{ inputs.runner_provider }}"]
strategy:
matrix:
include:
Expand All @@ -41,7 +41,7 @@ jobs:

test_stateful_hive_standalone:
needs: build
runs-on: [self-hosted, X64, Linux, 4c8g, "${{ inputs.runner_provider }}"]
runs-on: [self-hosted, X64, Linux, 2c8g, "${{ inputs.runner_provider }}"]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/test_stateful_hive_standalone
Expand Down
Loading

0 comments on commit 6d7b1f1

Please sign in to comment.