diff --git a/.github/actions/chart-testing-action b/.github/actions/chart-testing-action deleted file mode 160000 index e6669bcd63d..00000000000 --- a/.github/actions/chart-testing-action +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e6669bcd63d7cb57cb4380c33043eebe5d111992 diff --git a/.github/actions/kind-action b/.github/actions/kind-action deleted file mode 160000 index fa81e57adff..00000000000 --- a/.github/actions/kind-action +++ /dev/null @@ -1 +0,0 @@ -Subproject commit fa81e57adff234b2908110485695db0f181f3c67 diff --git a/.github/workflows/auto-comment.yml b/.github/workflows/auto-comment.yml index aa196e88403..5e43b20a8c7 100644 --- a/.github/workflows/auto-comment.yml +++ b/.github/workflows/auto-comment.yml @@ -25,31 +25,36 @@ jobs: runs-on: ubuntu-latest steps: - name: Create comment - uses: actions-cool/issues-helper@v3 + uses: actions/github-script@v7 with: - actions: 'create-comment' - token: ${{ secrets.GITHUB_TOKEN }} - issue-number: ${{ github.event.issue.number }} - body: | - ## :blush: Welcome to the Apache Linkis community!! - We are glad that you are contributing by opening this issue. - - Please make sure to include all the relevant context. - We will be here shortly. - - If you are interested in contributing to our website project, please let us know! - You can check out our contributing guide on - :point_right: [How to Participate in Project Contribution](https://linkis.apache.org/community/how-to-contribute). - - - ### Community - - |WeChat Assistant|WeChat Public Account| - |-|-| - ||| - - - ### Mailing Lists - |Name|Description|Subscribe|Unsubscribe|Archive| - |:-----|:--------|:------|:-------|:-----| - | [dev@linkis.apache.org](mailto:dev@linkis.apache.org) | community activity information | [subscribe](mailto:dev-subscribe@linkis.apache.org) | [unsubscribe](mailto:dev-unsubscribe@linkis.apache.org) | [archive](http://mail-archives.apache.org/mod_mbox/linkis-dev) | + script: | + const body = [ + "## :blush: Welcome to the Apache Linkis community!!", + "We are glad that you are contributing by opening this issue.", + "", + "Please make sure to include all the relevant context.", + "We will be here shortly.", + "", + "If you are interested in contributing to our website project, please let us know!", + "You can check out our contributing guide on", + " :point_right: [How to Participate in Project Contribution](https://linkis.apache.org/community/how-to-contribute).", + "", + "", + "### Community", + "", + "|WeChat Assistant|WeChat Public Account|", + "|-|-|", + '|||', + "", + "", + "### Mailing Lists", + "|Name|Description|Subscribe|Unsubscribe|Archive|", + "|:-----|:--------|:------|:-------|:-----|", + "| [dev@linkis.apache.org](mailto:dev@linkis.apache.org) | community activity information | [subscribe](mailto:dev-subscribe@linkis.apache.org) | [unsubscribe](mailto:dev-unsubscribe@linkis.apache.org) | [archive](http://mail-archives.apache.org/mod_mbox/linkis-dev) |", + ].join("\n"); + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body, + }); diff --git a/.github/workflows/dead-link-checker.yaml b/.github/workflows/dead-link-checker.yaml index 1793f7e4357..c56a8a2987d 100644 --- a/.github/workflows/dead-link-checker.yaml +++ b/.github/workflows/dead-link-checker.yaml @@ -28,13 +28,15 @@ on: jobs: dead-links-check: runs-on: ubuntu-latest - timeout-minutes: 30 + timeout-minutes: 60 if: (github.repository == 'apache/linkis') steps: - uses: actions/checkout@v4 - - uses: tcort/github-action-markdown-link-check@e7c7a18363c842693fadde5d41a3bd3573a7a225 + - uses: actions/setup-node@v4 with: - use-quiet-mode: 'no' - use-verbose-mode: 'yes' - folder-path: '../' - config-file: '.github/workflows/dlc.json' + node-version: 20 + - name: Install markdown-link-check + run: npm install -g markdown-link-check@3 + - name: Check markdown links + run: | + find . -name "*.md" -not -path "./.git/*" -print0 | xargs -0 -P 8 -n1 markdown-link-check -c .github/workflows/dlc.json diff --git a/.github/workflows/dlc.json b/.github/workflows/dlc.json index e01ae258c8f..40757386f06 100644 --- a/.github/workflows/dlc.json +++ b/.github/workflows/dlc.json @@ -8,12 +8,27 @@ }, { "pattern": "^(https?://)?([a-zA-Z0-9-]+\\.)*bilibili\\.com" + }, + { + "pattern": "^#" + }, + { + "pattern": "^https?://[^/]*\\.localhost" + }, + { + "pattern": "^https://badges\\.toozhao\\.com" + }, + { + "pattern": "^https://deepwiki\\.com/apache/linkis" + }, + { + "pattern": "^https://mybatis\\.org/mybatis-3/zh" } ], "timeout": "10s", "retryOn429": true, - "retryCount": 10, - "fallbackRetryDelay": "1000s", + "retryCount": 3, + "fallbackRetryDelay": "30s", "aliveStatusCodes": [ 200, 401, diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index e5af9803c39..32f57f49a33 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -45,7 +45,6 @@ jobs: TAG: ${{ github.sha }} SKIP_TEST: true HUB: ghcr.io/apache/linkis - LINKIS_VERSION: 1.8.0 steps: - name: Free up disk space run: | @@ -96,7 +95,7 @@ jobs: with: node-version: ${{ matrix.node-version }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + run: docker buildx create --name linkis-builder --use - name: Build frontend by node.js run: | @@ -109,22 +108,33 @@ jobs: run: | ./mvnw install -Pdocker -Dmysql.connector.scope=compile -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -Dlinkis.build.web=true -Dlinkis.build.ldh=true - - name: Set up chart-testing - uses: ./.github/actions/chart-testing-action - + - name: Set up helm and kubectl + run: | + HELM_VERSION=v3.14.4 + curl -sSL -o /tmp/helm.tgz "https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz" + tar -xzf /tmp/helm.tgz -C /tmp linux-amd64/helm + sudo mv /tmp/linux-amd64/helm /usr/local/bin/helm + KUBECTL_VERSION=v1.23.4 + curl -sLo /tmp/kubectl "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" + chmod +x /tmp/kubectl && sudo mv /tmp/kubectl /usr/local/bin/kubectl - name: Create Kind cluster - uses: ./.github/actions/kind-action - with: - config: ${{ env.KIND_CONFIG_PATH }} - node_image: ${{ matrix.kubernetes-version }} - cluster_name: ${{ env.KIND_CLUSTER_NAME }} + run: | + KIND_VERSION=v0.20.0 + curl -sLo /tmp/kind "https://kind.sigs.k8s.io/dl/${KIND_VERSION}/kind-linux-amd64" + chmod +x /tmp/kind && sudo mv /tmp/kind /usr/local/bin/kind + kind create cluster \ + --config ${{ env.KIND_CONFIG_PATH }} \ + --image ${{ matrix.kubernetes-version }} \ + --name ${{ env.KIND_CLUSTER_NAME }} - name: Start Linkis Service run: | - docker tag linkis:${{ env.LINKIS_VERSION }} linkis:dev - docker tag linkis-web:${{ env.LINKIS_VERSION }} linkis-web:dev - docker tag linkis-ldh:${{ env.LINKIS_VERSION }} linkis-ldh:dev + LINKIS_VERSION=$(grep -m1 -oP '(?<=)[^<]+' pom.xml) + echo "LINKIS_VERSION=${LINKIS_VERSION}" + docker tag linkis:${LINKIS_VERSION} linkis:dev + docker tag linkis-web:${LINKIS_VERSION} linkis-web:dev + docker tag linkis-ldh:${LINKIS_VERSION} linkis-ldh:dev # for debug Download the image directly first, then adjust it to active build #ROOT_DIR=./linkis-dist/