Skip to content

[fix][dingo-common] Adjust the DDL timeout to 180 seconds #3941

[fix][dingo-common] Adjust the DDL timeout to 180 seconds

[fix][dingo-common] Adjust the DDL timeout to 180 seconds #3941

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Build
on:
push:
branches: [ main, develop, quickBI-v3.0.0 ]
pull_request:
branches: [ main, develop, quickBI-v3.0.0 ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Clean Cache
run: |
rm -rf ~/.m2/repository/
rm -rf ~/.gradle/
- name: Clone Submodule
run: git submodule update --init --recursive
- name: Build Dingo Project
run: |
./gradlew build -PisDownload=true --no-daemon -Dorg.gradle.jvmargs="-Xmx4096m -XX:MaxMetaspaceSize=1024m -XX:+UseZGC"
- name: Build Java Documents
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7
with:
arguments: javadoc
- name: Archive the dingo directory
run: |
mkdir dingo
unzip ./dingo-dist/build/distributions/dingo.zip -d dingo
wget https://github.com/dingodb/dingo-deploy/raw/main/artifacts/sqlline-1.13.0-SNAPSHOT-jar-with-dependencies.jar -P dingo/libs/
cp -r ./dingo-client/build/docs/javadoc ./dingo/javadoc
cp -r ./docker/templates/bin/* ./dingo/bin/
cp -r ./docker/templates/conf/* ./dingo/conf/
rm -rf ./dingo/conf/logback.xml
rm -rf ./dingo/conf/config.yaml
zip -r dingo.zip dingo/*
- name: copy artifactory to another workflow
uses: actions/upload-artifact@v4
with:
name: dingo.zip
path: ./dingo.zip
- name: Record event type
run: |
branchName=$(echo "${{ github.ref_name }}")
echo "branch name is: $branchName"
echo "$branchName" > branch_name.txt
commitId="${{ github.sha }}"
shortCommitId=${commitId:0:7}
echo "commit id is: $shortCommitId"
echo "$shortCommitId" > commit_id.txt
echo "hello dingofs" > event.txt
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo "pull_request" > event.txt
elif [ "${{ github.event_name }}" == "push" ]; then
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
echo "tag" > event.txt
tagInfo=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///')
echo "$tagInfo" > tag_name.txt
echo "TAG_NAME=$tagInfo" >> $GITHUB_ENV
else
echo "push" > event.txt
echo "TAG_NAME=latest" >> $GITHUB_ENV
fi
fi
- name: Save event type info
uses: actions/upload-artifact@v4
with:
name: event
path: event.txt
compression-level: 0
- name: Save tag name info
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v4
with:
name: tag_name
path: tag_name.txt
compression-level: 0
- name: Save branch name info
uses: actions/upload-artifact@v4
with:
name: branch_name
path: branch_name.txt
compression-level: 0
- name: Save commit id info
uses: actions/upload-artifact@v4
with:
name: commit_id
path: commit_id.txt
compression-level: 0