Skip to content

Commit d41c56d

Browse files
authored
ci: release target with hdfs (#17671)
1 parent 59a3e4b commit d41c56d

File tree

2 files changed

+15
-40
lines changed

2 files changed

+15
-40
lines changed

.github/workflows/release.yml

+12-39
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,15 @@ jobs:
8888
repository: databendlabs/databend-docs
8989
ref: main
9090
- name: Get date
91+
id: date
9192
shell: bash
92-
run: echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
93+
run: echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
9394
- name: Generate Release Note
9495
env:
9596
GH_TOKEN: ${{ github.token }}
9697
run: |
9798
mkdir -p docs/release-stable
98-
df="docs/release-stable/${{ env.DATE }}_${{ needs.create_release.outputs.version }}.md"
99+
df="docs/release-stable/${{ steps.date.outputs.DATE }}_${{ needs.create_release.outputs.version }}.md"
99100
echo "---" > $df
100101
gh release view --repo databendlabs/databend ${{ needs.create_release.outputs.version }} >> $df
101102
sed -i -E 's/^--$/---/g' $df
@@ -106,9 +107,9 @@ jobs:
106107
- uses: peter-evans/create-pull-request@v4
107108
with:
108109
token: ${{ secrets.DATABEND_BOT_TOKEN }}
109-
title: "chore(docs): Update Release Notes - ${{ env.DATE }}"
110+
title: "chore(docs): Update Release Notes - ${{ steps.date.outputs.DATE }}"
110111
base: main
111-
commit-message: "chore(docs): Update Release Notes - ${{ env.DATE }}"
112+
commit-message: "chore(docs): Update Release Notes - ${{ steps.date.outputs.DATE }}"
112113
branch-suffix: random
113114
delete-branch: true
114115

@@ -145,7 +146,7 @@ jobs:
145146
cp ./target/${{ matrix.target }}/${{ env.BUILD_PROFILE }}/databend-* ./target/${{ env.BUILD_PROFILE }}/
146147
bash ./scripts/ci/ci-run-sqllogic-tests.sh base
147148
148-
build_udf:
149+
build_full:
149150
runs-on: [self-hosted, "${{ matrix.runner }}", Linux, 8c32g, aws]
150151
needs: create_release
151152
strategy:
@@ -169,8 +170,8 @@ jobs:
169170
sha: ${{ github.sha }}
170171
target: ${{ matrix.target }}
171172
artifacts: sqllogictests,sqlsmith,metactl,meta,query,bendsave
172-
features: python-udf
173-
category: udf
173+
features: python-udf,storage-hdfs
174+
category: full
174175

175176
publish:
176177
runs-on: [self-hosted, X64, Linux, 2c8g, aws]
@@ -328,7 +329,7 @@ jobs:
328329

329330
docker_service:
330331
runs-on: [self-hosted, X64, Linux, 2c8g, aws]
331-
needs: [create_release, build_udf]
332+
needs: [create_release, build_full]
332333
strategy:
333334
fail-fast: false
334335
matrix:
@@ -345,15 +346,15 @@ jobs:
345346
with:
346347
sha: ${{ github.sha }}
347348
target: x86_64-unknown-linux-gnu
348-
category: udf
349+
category: full
349350
artifacts: ${{ matrix.service }},metactl
350351
path: distro/linux/amd64
351352
- name: Download artifacts for aarch64
352353
uses: ./.github/actions/artifact_download
353354
with:
354355
sha: ${{ github.sha }}
355356
target: aarch64-unknown-linux-gnu
356-
category: udf
357+
category: full
357358
artifacts: ${{ matrix.service }},metactl
358359
path: distro/linux/arm64
359360
- name: Set up QEMU
@@ -429,7 +430,7 @@ jobs:
429430
needs:
430431
- create_release
431432
- build_default
432-
- build_udf
433+
- build_full
433434
- publish
434435
- docker_all_in_one
435436
- docker_service
@@ -533,34 +534,6 @@ jobs:
533534
const script = require('./.github/scripts/notify_failure.js')
534535
await script({context, core})
535536
536-
# sharing:
537-
# runs-on: [self-hosted, X64, Linux, 2c8g, aws]
538-
# needs: [create_release, notify]
539-
# steps:
540-
# - uses: actions/checkout@v4
541-
# with:
542-
# ref: ${{ needs.create_release.outputs.sha }}
543-
# - name: checkout share endpoint
544-
# uses: actions/checkout@v4
545-
# with:
546-
# repository: databendlabs/share-endpoint
547-
# token: ${{ secrets.DATABEND_BOT_TOKEN }}
548-
# path: share-endpoint
549-
# - name: Download artifacts
550-
# uses: ./.github/actions/artifact_download
551-
# with:
552-
# sha: ${{ github.sha }}
553-
# target: x86_64-unknown-linux-gnu
554-
# category: default
555-
# artifacts: metactl,meta,query
556-
# - uses: ./.github/actions/test_share_integration
557-
# timeout-minutes: 10
558-
# - name: Upload failure
559-
# if: failure()
560-
# uses: ./.github/actions/artifact_failure
561-
# with:
562-
# name: test-integration-sharing
563-
564537
benchmark:
565538
needs: [create_release, docker_service, notify]
566539
uses: ./.github/workflows/reuse.benchmark.yml

docker/service/query.Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ ARG TARGETPLATFORM
44
ENV TERM=dumb
55
ENV DEBIAN_FRONTEND=noninteractive
66
RUN apt-get update -y && \
7-
apt-get install -y apt-transport-https ca-certificates gdb curl && \
7+
apt-get install -y apt-transport-https ca-certificates gdb curl default-jre-headless && \
88
apt-get clean && \
99
rm -rf /var/lib/apt/lists/* && \
1010
rm -rf /var/cache/apt/*
11+
ENV JAVA_HOME=/usr/lib/jvm/default-java
12+
ENV LD_LIBRARY_PATH=/usr/lib/jvm/default-java/lib/server
1113
COPY ./distro/$TARGETPLATFORM/databend-query /databend-query
1214
RUN useradd --uid 1000 --shell /sbin/nologin \
1315
--home-dir /var/lib/databend --user-group \

0 commit comments

Comments
 (0)