From 2a27044d1adb16dbc125ceedd166becd373477bd Mon Sep 17 00:00:00 2001 From: andrewjiang Date: Tue, 31 Oct 2023 13:18:25 +0800 Subject: [PATCH 01/13] ci: update golang-ci parallel parameter --- .golangci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index cb03197994..27a84ac700 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -29,4 +29,9 @@ linters-settings: run: modules-download-mode: vendor - timeout: 10m + timeout: 15m + # The default concurrency value is the number of available CPU. + concurrency: 2 + # Allow multiple parallel golangci-lint instances running. + # If false (default) - golangci-lint acquires file lock on start. + allow-parallel-runners: false From 28394c7eaee3a1ea362b1a7aeee89dc168a3adee Mon Sep 17 00:00:00 2001 From: andrewjiang Date: Tue, 31 Oct 2023 13:36:49 +0800 Subject: [PATCH 02/13] ci: golangci-lint settings --- .github/workflows/golangci-lint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 458f241aae..e82a13c1c4 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -7,6 +7,7 @@ on: pull_request: paths: - tencentcloud/** + - .golangci.yml # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From 5988f699ff5c833fd60de8dbd6f3fdca9d8a3a3a Mon Sep 17 00:00:00 2001 From: andrewjiang Date: Tue, 31 Oct 2023 13:48:22 +0800 Subject: [PATCH 03/13] ci: golangci-lint settings --- .golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 27a84ac700..30c0a0b797 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -31,7 +31,7 @@ run: modules-download-mode: vendor timeout: 15m # The default concurrency value is the number of available CPU. - concurrency: 2 + concurrency: 10 # Allow multiple parallel golangci-lint instances running. # If false (default) - golangci-lint acquires file lock on start. allow-parallel-runners: false From 724d1337e4d8f4062e3aed32c9ca9fc07a74dacd Mon Sep 17 00:00:00 2001 From: andrewjiang Date: Tue, 31 Oct 2023 13:51:42 +0800 Subject: [PATCH 04/13] ci: golangci-lint settings --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index e82a13c1c4..f63893330e 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/setup-go@v3 with: go-version-file: .go-version - cache: false + cache: true # Runs a set of commands using the runners shell - name: golangci-lint From ffcf47514dfe75f40be68b8e4db0ed5ea7c61817 Mon Sep 17 00:00:00 2001 From: andrewjiang Date: Tue, 31 Oct 2023 13:53:55 +0800 Subject: [PATCH 05/13] ci: golangci-lint settings --- .golangci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 30c0a0b797..cf1d742529 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -31,7 +31,7 @@ run: modules-download-mode: vendor timeout: 15m # The default concurrency value is the number of available CPU. - concurrency: 10 + concurrency: 12 # Allow multiple parallel golangci-lint instances running. # If false (default) - golangci-lint acquires file lock on start. - allow-parallel-runners: false + allow-parallel-runners: true From f1b06571c64045f295f62cc990a05d7042eb6465 Mon Sep 17 00:00:00 2001 From: andrewjiang Date: Tue, 31 Oct 2023 15:08:26 +0800 Subject: [PATCH 06/13] ci: delete fmt check --- .github/workflows/fmt.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index fb2c1839e7..75275b07a3 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -3,10 +3,10 @@ name: gofmt # Controls when the workflow will run -on: - pull_request: - paths: - - tencentcloud/** +#on: +# pull_request: +# paths: +# - tencentcloud/** # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From 17dfc7ae48731b235f839dd94a9316a2c92fd7e8 Mon Sep 17 00:00:00 2001 From: andrewjiang Date: Tue, 31 Oct 2023 15:14:30 +0800 Subject: [PATCH 07/13] ci: delete fmt check --- .github/workflows/fmt.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index 75275b07a3..aecb724fd5 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -3,10 +3,12 @@ name: gofmt # Controls when the workflow will run -#on: -# pull_request: +on: + pull_request: # paths: # - tencentcloud/** + paths-ignore: + - * # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From c9f5a447a85eaef2f056e47df84ec8c3749b0c6a Mon Sep 17 00:00:00 2001 From: andrewjiang Date: Tue, 31 Oct 2023 15:16:40 +0800 Subject: [PATCH 08/13] ci: delete fmt check --- .github/workflows/fmt.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index aecb724fd5..7ab5390494 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -8,7 +8,7 @@ on: # paths: # - tencentcloud/** paths-ignore: - - * + - '*' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From e260784477fdbf1608d67bcf2900c2669c0ae7c9 Mon Sep 17 00:00:00 2001 From: andrewjiang Date: Tue, 31 Oct 2023 15:22:53 +0800 Subject: [PATCH 09/13] ci: delete fmt check --- .github/workflows/fmt.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index 7ab5390494..fb2c1839e7 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -5,10 +5,8 @@ name: gofmt # Controls when the workflow will run on: pull_request: -# paths: -# - tencentcloud/** - paths-ignore: - - '*' + paths: + - tencentcloud/** # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From 3c73e79e108a345bfcc13bb01e688717ccb1c5d2 Mon Sep 17 00:00:00 2001 From: andrewjiang Date: Tue, 31 Oct 2023 21:42:14 +0800 Subject: [PATCH 10/13] ci: golangci-lint --- .github/workflows/golangci-lint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index f63893330e..76e3ceee14 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -38,3 +38,4 @@ jobs: with: version: v1.45.2 working-directory: ./tencentcloud + args:--enable-all --max-same-issues=0 --max-issues-per-linter=0 --new-from-rev=master -v From 19aa1aaddd12f381539e3cb30fe5d79de736ede3 Mon Sep 17 00:00:00 2001 From: andrewjiang Date: Tue, 31 Oct 2023 21:43:39 +0800 Subject: [PATCH 11/13] ci: golangci-lint --- .github/workflows/golangci-lint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 76e3ceee14..4f139bec27 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -7,6 +7,7 @@ on: pull_request: paths: - tencentcloud/** + - .github/** - .golangci.yml # Allows you to run this workflow manually from the Actions tab From 4ffbd3ff60eb91f2c20df1154ea5b8b2503b7929 Mon Sep 17 00:00:00 2001 From: andrewjiang Date: Tue, 31 Oct 2023 21:44:56 +0800 Subject: [PATCH 12/13] ci: golangci-lint --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 4f139bec27..1c2b4f70c8 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -39,4 +39,4 @@ jobs: with: version: v1.45.2 working-directory: ./tencentcloud - args:--enable-all --max-same-issues=0 --max-issues-per-linter=0 --new-from-rev=master -v + args: --enable-all --max-same-issues=0 --max-issues-per-linter=0 --new-from-rev=master -v From 28546e0ff542bd01a857f9857dc08f1a45376b12 Mon Sep 17 00:00:00 2001 From: andrewjiang Date: Tue, 31 Oct 2023 21:49:58 +0800 Subject: [PATCH 13/13] ci: golangci-lint --- .github/workflows/golangci-lint.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 1c2b4f70c8..a9cc834653 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -39,4 +39,5 @@ jobs: with: version: v1.45.2 working-directory: ./tencentcloud - args: --enable-all --max-same-issues=0 --max-issues-per-linter=0 --new-from-rev=master -v + args: --new-from-rev=master -v + #args: --enable-all --max-same-issues=0 --max-issues-per-linter=0 --new-from-rev=master -v