From 46d8b4dd0820ca8762175ca320c03ac1d9161230 Mon Sep 17 00:00:00 2001 From: Alexkun Date: Fri, 27 Nov 2026 14:28:37 +0800 Subject: [PATCH 01/11] [FIX][CI] Replace broken submodule actions with inline helm/kubectl/kind setup in Integration Test The chart-testing-action and kind-action paths are git submodules with SSH URLs that GitHub Actions runners cannot fetch, so the workflow has failed at startup on every run since 2023. Replace them with inline, pinned-version installation of the tools the later steps use: helm v3.14.4, kubectl v1.23.4 (matching the kindest/node:v1.23.4 matrix image) and kind v0.20.0, creating the cluster with the existing KIND_CONFIG_PATH / matrix image / KIND_CLUSTER_NAME inputs. --- .github/workflows/integration-test.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index e5af9803c39..6408ce53804 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -109,16 +109,25 @@ 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: | From 735f39a6f7beaa14a4dca92904048dafed128532 Mon Sep 17 00:00:00 2001 From: Alexkun Date: Sun, 29 Nov 2026 12:30:00 +0000 Subject: [PATCH 02/11] [FIX][CI] Remove unresolvable chart-testing/kind-action submodule entries from .github/actions .github/actions/chart-testing-action and kind-action are git submodules with SSH URLs (git@github.com:helm/...) that GitHub Actions runners cannot fetch (no deploy keys). The Integration Test workflow no longer references these paths; removing the dead gitlink entries eliminates the unresolvable paths from the tree entirely. --- .github/actions/chart-testing-action | 1 - .github/actions/kind-action | 1 - 2 files changed, 2 deletions(-) delete mode 160000 .github/actions/chart-testing-action delete mode 160000 .github/actions/kind-action 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 From 27a7eea094319f3ae2b8ef336e5599bed765b605 Mon Sep 17 00:00:00 2001 From: Alexkun Date: Mon, 30 Nov 2026 11:59:26 +0800 Subject: [PATCH 03/11] [FIX][CI] Replace docker/setup-buildx-action with inline buildx setup Third-party actions outside apache/*, actions/* and github/* are subject to the ASF GitHub Actions policy (SHA-pinning and review). Replace the docker/setup-buildx-action@v1 reference with an inline buildx creation; the runner-provided docker CLI already ships the buildx plugin, so 'docker buildx create --use' is sufficient. --- .github/workflows/integration-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 6408ce53804..0afa65e5039 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -96,7 +96,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: | From f0da027865b79ae97ebdba9826af75a988cdeff4 Mon Sep 17 00:00:00 2001 From: Alexkun Date: Mon, 30 Nov 2026 12:10:47 +0800 Subject: [PATCH 04/11] [FIX][CI] Replace third-party action with allowed/inline implementation (ASF actions policy) --- .github/workflows/dead-link-checker.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dead-link-checker.yaml b/.github/workflows/dead-link-checker.yaml index 1793f7e4357..59800db962c 100644 --- a/.github/workflows/dead-link-checker.yaml +++ b/.github/workflows/dead-link-checker.yaml @@ -32,9 +32,11 @@ jobs: 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 -n1 markdown-link-check -q -c .github/workflows/dlc.json From fb46b6dc8e924f88cecb595e002431c2664dbc44 Mon Sep 17 00:00:00 2001 From: Alexkun Date: Mon, 30 Nov 2026 12:10:49 +0800 Subject: [PATCH 05/11] [FIX][CI] Replace third-party action with allowed/inline implementation (ASF actions policy) --- .github/workflows/auto-comment.yml | 59 ++++++++++++++++-------------- 1 file changed, 32 insertions(+), 27 deletions(-) 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, + }); From 75f06b2671e601a23f4e1e3d26bf2e9f0ffd2eea Mon Sep 17 00:00:00 2001 From: Alexkun Date: Mon, 30 Nov 2026 12:30:09 +0800 Subject: [PATCH 06/11] [FIX][CI] Derive LINKIS_VERSION from pom revision in Integration Test LINKIS_VERSION was hard-coded to 1.8.0 while the project version on master is 1.9.0, so 'docker tag linkis:1.8.0' failed with 'No such image' right after the build produced linkis:1.9.0 images. Derive the version from in pom.xml, consistent with the snapshot publish workflow. --- .github/workflows/integration-test.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 0afa65e5039..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: | @@ -131,9 +130,11 @@ jobs: - 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/ From 5166deb49ecaf0d919ceb0b989f98e7ed9e8ddd9 Mon Sep 17 00:00:00 2001 From: Alexkun Date: Mon, 30 Nov 2026 13:07:07 +0800 Subject: [PATCH 07/11] [FIX][CI] Raise Dead Link Check timeout to 60 minutes The whole-repository markdown scan (hundreds of files, up to 10s per link with retries) exceeds the previous 30-minute job timeout; the run was killed before producing any result. --- .github/workflows/dead-link-checker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dead-link-checker.yaml b/.github/workflows/dead-link-checker.yaml index 59800db962c..1efbc6c293c 100644 --- a/.github/workflows/dead-link-checker.yaml +++ b/.github/workflows/dead-link-checker.yaml @@ -28,7 +28,7 @@ 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 From 64fe54c53467c8178d0cd68392220d062debde1e Mon Sep 17 00:00:00 2001 From: Alexkun Date: Mon, 30 Nov 2026 14:09:51 +0800 Subject: [PATCH 08/11] [FIX][CI] Parallelize markdown link check (xargs -P 8) The serial scan over the whole repository did not fit the 60-minute job timeout. Process eight files concurrently. --- .github/workflows/dead-link-checker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dead-link-checker.yaml b/.github/workflows/dead-link-checker.yaml index 1efbc6c293c..4b21ace1b9a 100644 --- a/.github/workflows/dead-link-checker.yaml +++ b/.github/workflows/dead-link-checker.yaml @@ -39,4 +39,4 @@ jobs: run: npm install -g markdown-link-check@3 - name: Check markdown links run: | - find . -name "*.md" -not -path "./.git/*" -print0 | xargs -0 -n1 markdown-link-check -q -c .github/workflows/dlc.json + find . -name "*.md" -not -path "./.git/*" -print0 | xargs -0 -P 8 -n1 markdown-link-check -q -c .github/workflows/dlc.json From 6acdd227eefbb1f91e8a425cfd482e2c139cf564 Mon Sep 17 00:00:00 2001 From: Alexkun Date: Mon, 30 Nov 2026 15:13:48 +0800 Subject: [PATCH 09/11] [FIX][CI] Fix pathological retry delays in dead-link-check config fallbackRetryDelay was set to 1000 seconds -- each link that triggered a fallback retry stalled its file for ~17 minutes, which (even with 8-way parallelism) blew the 60-minute job timeout. Normalize to a 30s fallback delay and 3 retries; also drop the -q flag from the scan so per-file progress is visible in the logs. --- .github/workflows/dlc.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dlc.json b/.github/workflows/dlc.json index e01ae258c8f..d8765e4f325 100644 --- a/.github/workflows/dlc.json +++ b/.github/workflows/dlc.json @@ -12,8 +12,8 @@ ], "timeout": "10s", "retryOn429": true, - "retryCount": 10, - "fallbackRetryDelay": "1000s", + "retryCount": 3, + "fallbackRetryDelay": "30s", "aliveStatusCodes": [ 200, 401, From 001d3c0efe74272eb6db3720e08be880a3161c5f Mon Sep 17 00:00:00 2001 From: Alexkun Date: Mon, 30 Nov 2026 15:13:50 +0800 Subject: [PATCH 10/11] [FIX][CI] Show per-file progress in Dead Link Check logs --- .github/workflows/dead-link-checker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dead-link-checker.yaml b/.github/workflows/dead-link-checker.yaml index 4b21ace1b9a..c56a8a2987d 100644 --- a/.github/workflows/dead-link-checker.yaml +++ b/.github/workflows/dead-link-checker.yaml @@ -39,4 +39,4 @@ jobs: 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 -q -c .github/workflows/dlc.json + find . -name "*.md" -not -path "./.git/*" -print0 | xargs -0 -P 8 -n1 markdown-link-check -c .github/workflows/dlc.json From 672e2aab677a52b5c5935b49881ccaa2a384eac1 Mon Sep 17 00:00:00 2001 From: Alexkun Date: Tue, 1 Dec 2026 14:11:23 +0800 Subject: [PATCH 11/11] [FIX][CI] Ignore same-page anchors and flaky external sites in dead-link check - '^#' : same-document fragment anchors cannot be validated by markdown-link-check and are always false positives - *.localhost subdomains, badges.toozhao.com, deepwiki.com/apache/linkis and mybatis.org/mybatis-3/zh : placeholder URLs / external sites that block or throttle bot requests Genuinely broken file references (stale paths to moved/deleted files) remain reported so they can be fixed in follow-up doc updates. --- .github/workflows/dlc.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/dlc.json b/.github/workflows/dlc.json index d8765e4f325..40757386f06 100644 --- a/.github/workflows/dlc.json +++ b/.github/workflows/dlc.json @@ -8,6 +8,21 @@ }, { "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",