Skip to content

Commit e0efcd2

Browse files
ci(github): fix Cannot open: File exists in tests ci run (#300)
In our current run for test and e2e test, we always get spammed with thousands of line of `Cannot open: File exists` [here](https://github.com/smartcontractkit/mcms/actions/runs/13296746002/job/37130333507), causing the logs to take a while to load and scrolling takes ages. The new `ci-test-go` fixes this issue as seen [here](https://github.com/smartcontractkit/mcms/actions/runs/13297142750/job/37131542022). I also updated the other github actions at while i am here. ## logs spamming <img width="1425" alt="Screenshot 2025-02-13 at 11 02 31 am" src="https://github.com/user-attachments/assets/381da3a3-2f7e-45aa-9f99-2c4fdc9869ce" />
1 parent 2a4a443 commit e0efcd2

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.github/workflows/pull-request-main.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
actions: read
1717
steps:
1818
- name: Linting Go
19-
uses: smartcontractkit/.github/actions/ci-lint-go@7a4d99cb349ea8f25195d2390d157942031f8a57
19+
uses: smartcontractkit/.github/actions/ci-lint-go@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # [email protected]
2020
with:
2121
golangci-lint-version: v1.61.0
2222
# grafana inputs
@@ -34,7 +34,7 @@ jobs:
3434
actions: read
3535
steps:
3636
- name: Linting Go
37-
uses: smartcontractkit/.github/actions/ci-lint-go@7a4d99cb349ea8f25195d2390d157942031f8a57
37+
uses: smartcontractkit/.github/actions/ci-lint-go@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # [email protected]
3838
with:
3939
golangci-lint-version: v1.62.0
4040
golangci-lint-args: --build-tags="e2e"
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
steps:
5050
- name: Linting Misc (yaml + sh files)
51-
uses: smartcontractkit/.github/actions/ci-lint-misc@7a4d99cb349ea8f25195d2390d157942031f8a57
51+
uses: smartcontractkit/.github/actions/ci-lint-misc@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # [email protected]
5252
with:
5353
# grafana inputs
5454
metrics-job-name: ci-lint-misc
@@ -65,7 +65,7 @@ jobs:
6565
actions: read
6666
steps:
6767
- name: Build and test
68-
uses: smartcontractkit/.github/actions/ci-test-go@7a4d99cb349ea8f25195d2390d157942031f8a57
68+
uses: smartcontractkit/.github/actions/ci-test-go@3835daadbcefcae06d12dc42a405a856c980d2cc # [email protected]
6969
with:
7070
go-test-cmd: go test -coverprofile=coverage.txt $(go list ./...)
7171
use-go-cache: true
@@ -90,7 +90,7 @@ jobs:
9090
with:
9191
version: 1.18.10
9292
- name: Build and test
93-
uses: smartcontractkit/.github/actions/ci-test-go@7a4d99cb349ea8f25195d2390d157942031f8a57
93+
uses: smartcontractkit/.github/actions/ci-test-go@3835daadbcefcae06d12dc42a405a856c980d2cc # [email protected]
9494
with:
9595
go-test-cmd: go generate -tags=e2e ./e2e/... && CTF_CONFIGS=../config.toml go test -tags=e2e -v ./e2e/tests/...
9696
use-go-cache: true
@@ -107,7 +107,7 @@ jobs:
107107
if: github.actor != 'dependabot[bot]'
108108
steps:
109109
- name: Scanning with Sonarqube
110-
uses: smartcontractkit/.github/actions/ci-sonarqube-go@5f4a9c9c3407dd499a1ebbc658a45b9beb9bf675
110+
uses: smartcontractkit/.github/actions/ci-sonarqube-go@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # [email protected]
111111
with:
112112
# sonarqube inputs
113113
sonar-token: ${{ secrets.SONAR_TOKEN }}

.github/workflows/push-main.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
actions: read
1616
steps:
1717
- name: Linting Go
18-
uses: smartcontractkit/.github/actions/ci-lint-go@7a4d99cb349ea8f25195d2390d157942031f8a57
18+
uses: smartcontractkit/.github/actions/ci-lint-go@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # [email protected]
1919
with:
2020
golangci-lint-version: v1.62.0
2121
# grafana inputs
@@ -33,7 +33,7 @@ jobs:
3333
actions: read
3434
steps:
3535
- name: Linting Go
36-
uses: smartcontractkit/.github/actions/ci-lint-go@7a4d99cb349ea8f25195d2390d157942031f8a57
36+
uses: smartcontractkit/.github/actions/ci-lint-go@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # [email protected]
3737
with:
3838
golangci-lint-version: v1.62.0
3939
golangci-lint-args: --build-tags="e2e"
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
steps:
5050
- name: Linting Misc (yaml + sh files)
51-
uses: smartcontractkit/.github/actions/ci-lint-misc@7a4d99cb349ea8f25195d2390d157942031f8a57
51+
uses: smartcontractkit/.github/actions/ci-lint-misc@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # [email protected]
5252

5353
ci-test:
5454
runs-on: ubuntu-latest
@@ -58,7 +58,7 @@ jobs:
5858
actions: read
5959
steps:
6060
- name: ci-test
61-
uses: smartcontractkit/.github/actions/ci-test-go@7a4d99cb349ea8f25195d2390d157942031f8a57 # ci-test-go@0.1.5
61+
uses: smartcontractkit/.github/actions/ci-test-go@3835daadbcefcae06d12dc42a405a856c980d2cc # ci-test-go@0.3.4
6262
with:
6363
go-test-cmd: go test -coverprofile=coverage.txt $(go list ./...)
6464
use-go-cache: true
@@ -83,7 +83,7 @@ jobs:
8383
with:
8484
version: 1.18.10
8585
- name: Build and test
86-
uses: smartcontractkit/.github/actions/ci-test-go@7a4d99cb349ea8f25195d2390d157942031f8a57
86+
uses: smartcontractkit/.github/actions/ci-test-go@3835daadbcefcae06d12dc42a405a856c980d2cc # [email protected]
8787
with:
8888
go-test-cmd: go generate -tags=e2e ./e2e/... && CTF_CONFIGS=../config.toml go test -tags=e2e -v ./e2e/tests/...
8989
use-go-cache: true
@@ -99,7 +99,7 @@ jobs:
9999
contents: read
100100
steps:
101101
- name: cd-release
102-
uses: smartcontractkit/.github/actions/cicd-changesets@7a4d99cb349ea8f25195d2390d157942031f8a57 # [email protected].4
102+
uses: smartcontractkit/.github/actions/cicd-changesets@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # [email protected].6
103103
with:
104104
# general inputs
105105
git-user: app-token-issuer-infra-releng[bot]
@@ -121,7 +121,7 @@ jobs:
121121
if: github.actor != 'dependabot[bot]'
122122
steps:
123123
- name: Scanning with Sonarqube
124-
uses: smartcontractkit/.github/actions/ci-sonarqube-go@5f4a9c9c3407dd499a1ebbc658a45b9beb9bf675
124+
uses: smartcontractkit/.github/actions/ci-sonarqube-go@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # [email protected]
125125
with:
126126
# sonarqube inputs
127127
sonar-token: ${{ secrets.SONAR_TOKEN }}

.github/workflows/push-tag-release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
actions: read
1515
steps:
1616
- name: ci-lint
17-
uses: smartcontractkit/.github/actions/ci-lint-go@7a4d99cb349ea8f25195d2390d157942031f8a57 # ci-lint-go@0.2.4
17+
uses: smartcontractkit/.github/actions/ci-lint-go@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # ci-lint-go@0.3.1
1818
with:
1919
golangci-lint-version: v1.62.0
2020
# grafana inputs
@@ -32,7 +32,7 @@ jobs:
3232
actions: read
3333
steps:
3434
- name: Linting Go
35-
uses: smartcontractkit/.github/actions/ci-lint-go@7a4d99cb349ea8f25195d2390d157942031f8a57
35+
uses: smartcontractkit/.github/actions/ci-lint-go@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # [email protected]
3636
with:
3737
golangci-lint-version: v1.62.0
3838
golangci-lint-args: --build-tags="e2e"
@@ -50,7 +50,7 @@ jobs:
5050
actions: read
5151
steps:
5252
- name: ci-test
53-
uses: smartcontractkit/.github/actions/ci-test-go@7a4d99cb349ea8f25195d2390d157942031f8a57 # ci-test-go@0.1.5
53+
uses: smartcontractkit/.github/actions/ci-test-go@3835daadbcefcae06d12dc42a405a856c980d2cc # ci-test-go@0.3.4
5454
with:
5555
# grafana inputs
5656
metrics-job-name: ci-test
@@ -100,7 +100,7 @@ jobs:
100100
shell: bash
101101

102102
- name: Notify Slack
103-
uses: smartcontractkit/.github/actions/slack-notify-git-ref@f1f2dac0a20f0e02408eb7f528c768fe95c39229 # [email protected].0
103+
uses: smartcontractkit/.github/actions/slack-notify-git-ref@01d931b0455a754d12e7143cc54a5a3521a8f6f6 # [email protected].4
104104
with:
105105
slack-channel-id: ${{ secrets.SLACK_CHANNEL_MCMS }}
106106
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN_RELENG }} # Releng Bot

0 commit comments

Comments
 (0)