Skip to content

Commit c7babb2

Browse files
authored
[DX-3716] Fix CI Core Test Timeouts (#21947)
* Fix CI Core test timeouts * lint * Comments * Cleaner dropping DBs * Use DROP DATABASE FORCE * Use corresponding chainlink-common fixes * Better output * Go mod tidy * Fix lints * Prints * Fix quoting * Script * Linting and printing * Lint * All the damn lint * Fix keystore tests * Add monitoring * bust cache again * Ensure unique addresses for DB hangs * Update dorny paths * Fix contract addr * Subract second for api expiration * Re-run * Re-trigger * re-run * Rollback some fixes * Pre-test reset * Fix races * Doc * Cleanup debugging * Tighter timelines * Not that tight * mod
1 parent 7d26a0e commit c7babb2

46 files changed

Lines changed: 243 additions & 156 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/AGENTS.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<scope>
2+
GitHub Actions in the Chainlink Go monorepo.
3+
</scope>
4+
5+
<rules>
6+
- Prefer runs-on runners when ubuntu-latest is insufficient.
7+
- Minimize YAML and shell in workflows.
8+
- Resolve smartcontractkit/.github from a local clone. Ask the user for the path if you cannot find it.
9+
- Do not fetch smartcontractkit/.github from the web unless no local copy exists or local copy does not match required CI behavior.
10+
</rules>
11+
12+
<docs>
13+
- runs-on: https://runs-on.com/docs/
14+
</docs>
15+
16+
<tools>
17+
- https://github.com/kalverra/octometrics — per-workflow debugging
18+
- https://github.com/kalverra/octometrics-action — runner resource monitoring
19+
</tools>
20+

.github/actions/setup-go/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ runs:
7171
# If multiple jobs call actions/cache, then only one will get priority to create upon a cache miss.
7272
# We will only restore the cache by default (by calling actions/cache/restore) and let the
7373
# `go-mod-cache.yml` workflow handle the creation.
74-
- uses: actions/cache/restore@v4
74+
- uses: actions/cache/restore@v5
7575
if: ${{ inputs.restore-module-cache-only == 'true' }}
7676
name: Cache Go Modules (Restore)
7777
id: cache-modules-restore
@@ -86,7 +86,7 @@ runs:
8686
8787
# If this is called, then it will create the cache entry upon a cache miss.
8888
# The cache is created after a cache miss, and after job completes successfully.
89-
- uses: actions/cache@v4
89+
- uses: actions/cache@v5
9090
if: ${{ inputs.restore-module-cache-only != 'true' }}
9191
id: cache-modules
9292
name: Cache Go Modules
@@ -164,7 +164,7 @@ runs:
164164
# Only restore the build cache if:
165165
# 1. This is a merge queue event or
166166
# 2. If inputs.restore-build-cache-only == 'true'
167-
- uses: actions/cache/restore@v4
167+
- uses: actions/cache/restore@v5
168168
name: Cache Go Build Outputs (restore)
169169
id: build-cache-restore
170170
if: ${{ inputs.only-modules == 'false' && (github.event_name == 'merge_group' || inputs.restore-build-cache-only == 'true') }}
@@ -180,7 +180,7 @@ runs:
180180
# ---
181181
# A negation of the above actions/cache/restore call.
182182
# This will create the cache entry upon a cache miss for the primary key.
183-
- uses: actions/cache@v4
183+
- uses: actions/cache@v5
184184
if: ${{ inputs.only-modules == 'false' && (github.event_name != 'merge_group' && inputs.restore-build-cache-only == 'false') }}
185185
id: build-cache
186186
name: Cache Go Build Outputs

.github/actions/setup-solana/action.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ inputs:
88
runs:
99
using: composite
1010
steps:
11-
- uses: actions/cache@v4
12-
id: cache
13-
name: Cache solana CLI
14-
with:
15-
path: |
16-
~/.local/share/solana/install/active_release/bin
17-
key: ${{ runner.os }}-solana-cli-${{ hashFiles('${{ inputs.base-path }}tools/ci/install_solana') }}
18-
19-
- if: ${{ steps.cache.outputs.cache-hit != 'true' }}
20-
name: Install solana cli
21-
shell: bash
22-
working-directory: ${{ inputs.base-path }}
23-
run: ./tools/ci/install_solana
24-
25-
- name: Export solana path to env
26-
shell: bash
27-
run: echo "PATH=$HOME/.local/share/solana/install/active_release/bin:$PATH" >> $GITHUB_ENV
11+
- uses: actions/cache@v5
12+
id: cache
13+
name: Cache solana CLI
14+
with:
15+
path: |
16+
~/.local/share/solana/install/active_release/bin
17+
key: ${{ runner.os }}-solana-cli-${{ hashFiles('${{ inputs.base-path }}tools/ci/install_solana') }}
18+
19+
- if: ${{ steps.cache.outputs.cache-hit != 'true' }}
20+
name: Install solana cli
21+
shell: bash
22+
working-directory: ${{ inputs.base-path }}
23+
run: ./tools/ci/install_solana
24+
25+
- name: Export solana path to env
26+
shell: bash
27+
run: echo "PATH=$HOME/.local/share/solana/install/active_release/bin:$PATH" >> $GITHUB_ENV

.github/actions/setup-sui/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ inputs:
1212
runs:
1313
using: composite
1414
steps:
15-
- uses: actions/cache@v4
15+
- uses: actions/cache@v5
1616
id: cache
1717
name: Cache Sui CLI
1818
with:

.github/actions/setup-wasmd/action.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ inputs:
88
runs:
99
using: composite
1010
steps:
11-
- uses: actions/cache@v4
12-
id: cache
13-
name: Cache wasmd-build
14-
with:
15-
path: ~/wasmd-build
16-
# this caching works without cloning the repo because the install_wasmd contains
17-
# the commit hash.
18-
key: ${{ runner.os }}-wasmd-cli-${{ hashFiles('${{ inputs.base-path }}/tools/ci/install_wasmd') }}
11+
- uses: actions/cache@v5
12+
id: cache
13+
name: Cache wasmd-build
14+
with:
15+
path: ~/wasmd-build
16+
# this caching works without cloning the repo because the install_wasmd contains
17+
# the commit hash.
18+
key: ${{ runner.os }}-wasmd-cli-${{ hashFiles('${{ inputs.base-path }}/tools/ci/install_wasmd') }}
1919

20-
- if: ${{ steps.cache.outputs.cache-hit != 'true' }}
21-
name: Install wasmd
22-
shell: bash
23-
working-directory: ${{ inputs.base-path }}
24-
run: ./tools/ci/install_wasmd
20+
- if: ${{ steps.cache.outputs.cache-hit != 'true' }}
21+
name: Install wasmd
22+
shell: bash
23+
working-directory: ${{ inputs.base-path }}
24+
run: ./tools/ci/install_wasmd
2525

26-
- name: Export wasmd path to env
27-
shell: bash
28-
run: echo "PATH=$HOME/wasmd-build/bin:$PATH" >> $GITHUB_ENV
26+
- name: Export wasmd path to env
27+
shell: bash
28+
run: echo "PATH=$HOME/wasmd-build/bin:$PATH" >> $GITHUB_ENV

.github/workflows/bash-scripts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: actions/checkout@v6
1515
with:
1616
persist-credentials: false
17-
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
17+
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
1818
id: bash-scripts
1919
with:
2020
filters: |

.github/workflows/changeset.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
persist-credentials: false
3535
fetch-depth: 0
3636

37-
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
37+
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
3838
id: files-changed
3939
with:
4040
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/changesets-preview-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
persist-credentials: false
2323

24-
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
24+
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
2525
id: change
2626
with:
2727
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci-core.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
with:
4949
persist-credentials: false
5050
repository: smartcontractkit/chainlink
51-
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
51+
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
5252
id: match-some
5353
with:
5454
# "if any changed file matches one or more of the conditions" (https://github.com/dorny/paths-filter/issues/225)
@@ -62,7 +62,7 @@ jobs:
6262
workflow:
6363
- '.github/workflows/ci-core.yml'
6464
- '.github/actions/**'
65-
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
65+
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
6666
id: match-every
6767
with:
6868
# "if any changed file match all of the conditions" (https://github.com/dorny/paths-filter/issues/225)

.github/workflows/cre-local-env-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
with:
5252
ref: ${{ github.event_name == 'pull_request' && github.sha || inputs.chainlink_version }}
5353

54-
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
54+
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
5555
id: changes
5656
with:
5757
filters: |

0 commit comments

Comments
 (0)