From 8bec50317d3ffdddb25acf57d8b30d0ba9b27c91 Mon Sep 17 00:00:00 2001 From: xiangzihao <460888207@qq.com> Date: Wed, 27 Nov 2024 19:08:09 +0800 Subject: [PATCH] [Chore] Add flame diagram in CI (#16847) --- .github/workflows/docs.yml | 8 +++++++- .github/workflows/unit-test.yml | 4 ++++ docs/docs/en/guide/parameter/context.md | 2 +- docs/docs/zh/guide/parameter/context.md | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 81eb7f2073..6b99152973 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -55,12 +55,18 @@ jobs: timeout-minutes: 30 steps: - uses: actions/checkout@v4 + with: + submodules: true + - name: Collect Workflow Telemetry + uses: ./.github/actions/workflow-telemetry-action + with: + comment_on_pr: false - run: sudo npm install -g markdown-link-check@3.11.2 - run: sudo apt install plocate -y # NOTE: Change command from `find . -name "*.md"` to `find . -not -path "*/node_modules/*" -not -path "*/.tox/*" -name "*.md"` # if you want to run check locally - run: | - for file in $(locate "$PWD*/*.md" | grep -v ./deploy/terraform/aws/README.md); do + for file in $(locate "$PWD*/*.md" | grep -v ./deploy/terraform/aws/README.md | grep -v ./.github); do markdown-link-check -c .dlc.json -q "$file" & done wait diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 273b934f5c..7782e14d66 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -62,6 +62,10 @@ jobs: - uses: actions/checkout@v4 with: submodules: true + - name: Collect Workflow Telemetry + uses: ./.github/actions/workflow-telemetry-action + with: + comment_on_pr: false - name: Sanity Check uses: ./.github/actions/sanity-check with: diff --git a/docs/docs/en/guide/parameter/context.md b/docs/docs/en/guide/parameter/context.md index d69fce86d8..37a5f6599d 100644 --- a/docs/docs/en/guide/parameter/context.md +++ b/docs/docs/en/guide/parameter/context.md @@ -14,7 +14,7 @@ DolphinScheduler allows parameter transfer between tasks. Currently, transfer di * [SQL](../task/sql.md) * [Procedure](../task/stored-procedure.md) * [Python](../task/python.md) -* [SubWorkflow](../task/sub-workflow) +* [SubWorkflow](../task/sub-workflow.md) * [Kubernetes](../task/kubernetes.md) When defining an upstream node, if there is a need to transmit the result of that node to a dependency related downstream node. You need to set an `OUT` direction parameter to [Custom Parameters] of the [Current Node Settings]. If it is a sub-workflow node, there is no need to set a parameter in [Current Node Settings], but an `OUT` direction parameter needs to be set in the workflow definition of the sub-workflow. diff --git a/docs/docs/zh/guide/parameter/context.md b/docs/docs/zh/guide/parameter/context.md index 6b1246e9ef..20f1578cd8 100644 --- a/docs/docs/zh/guide/parameter/context.md +++ b/docs/docs/zh/guide/parameter/context.md @@ -14,7 +14,7 @@ DolphinScheduler 允许在任务间进行参数传递,目前传递方向仅支 * [SQL](../task/sql.md) * [Procedure](../task/stored-procedure.md) * [Python](../task/python.md) -* [SubWorkflow](../task/sub-workflow) +* [SubWorkflow](../task/sub-workflow.md) * [Kubernetes](../task/kubernetes.md) 当定义上游节点时,如果有需要将该节点的结果传递给有依赖关系的下游节点,需要在【当前节点设置】的【自定义参数】设置一个方向是 OUT 的变量。如果是 SubWorkflow 节点无需在【当前节点设置】中设置变量,需要在子流程的工作流定义中设置一个方向是 OUT 的变量。