Skip to content

Commit fb20ee8

Browse files
authored
bump integrations/evm; use evm/heads; convert preparetest to independent command (#16311)
1 parent 41a6cb0 commit fb20ee8

95 files changed

Lines changed: 788 additions & 4535 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/actions/setup-ci-core-tests/action.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,9 @@ runs:
3333
working-directory: ${{ inputs.go-mod-download-directory }}
3434
run: go mod download
3535

36-
- name: Build binary
37-
shell: bash
38-
run: go build -o chainlink.test .
39-
4036
- name: Setup DB
4137
shell: bash
42-
run: ./chainlink.test local db preparetest
38+
run: go run ./core/store/cmd/preparetest
4339
env:
4440
CL_DATABASE_URL: ${{ inputs.db-url }}
4541

.github/actions/setup-postgres/.env

Lines changed: 0 additions & 5 deletions
This file was deleted.

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

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/actions/setup-postgres/bin/pg_dump

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/actions/setup-postgres/docker-compose.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/actions/setup-postgres/wait-for-healthy-postgres.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/ci-core-partial.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
uses: ./.github/actions/setup-wasmd
9292

9393
- name: Setup Postgres
94-
uses: ./.github/actions/setup-postgres
94+
uses: smartcontractkit/.github/actions/setup-postgres@7aa7ce23687ba493e9ba9c6ad47a063e60ae3433 # setup-postgres@0.1.0
9595

9696
- name: Setup CI Core Environment
9797
uses: ./.github/actions/setup-ci-core-tests
@@ -135,8 +135,9 @@ jobs:
135135

136136
- name: Print postgres logs
137137
if: ${{ always() }}
138-
run: docker compose logs postgres | tee ../../../postgres_logs.txt
139-
working-directory: ./.github/actions/setup-postgres
138+
uses: smartcontractkit/.github/actions/setup-postgres@7aa7ce23687ba493e9ba9c6ad47a063e60ae3433 # setup-postgres@0.1.0
139+
with:
140+
print-logs: 'true'
140141

141142
scan:
142143
name: SonarQube Scan
@@ -226,7 +227,7 @@ jobs:
226227
uses: ./.github/actions/setup-wasmd
227228

228229
- name: Setup Postgres
229-
uses: ./.github/actions/setup-postgres
230+
uses: smartcontractkit/.github/actions/setup-postgres@7aa7ce23687ba493e9ba9c6ad47a063e60ae3433 # setup-postgres@0.1.0
230231

231232
- name: Setup CI Core Environment
232233
uses: ./.github/actions/setup-ci-core-tests
@@ -246,8 +247,9 @@ jobs:
246247

247248
- name: Print postgres logs
248249
if: ${{ always() }}
249-
run: docker compose logs postgres | tee ../../../postgres_logs.txt
250-
working-directory: ./.github/actions/setup-postgres
250+
uses: smartcontractkit/.github/actions/setup-postgres@7aa7ce23687ba493e9ba9c6ad47a063e60ae3433 # setup-postgres@0.1.0
251+
with:
252+
print-logs: 'true'
251253

252254
run-race-tests:
253255
name: Tests (race)
@@ -277,7 +279,7 @@ jobs:
277279
uses: ./.github/actions/setup-wasmd
278280

279281
- name: Setup Postgres
280-
uses: ./.github/actions/setup-postgres
282+
uses: smartcontractkit/.github/actions/setup-postgres@7aa7ce23687ba493e9ba9c6ad47a063e60ae3433 # setup-postgres@0.1.0
281283

282284
- name: Setup CI Core Environment
283285
uses: ./.github/actions/setup-ci-core-tests
@@ -312,5 +314,6 @@ jobs:
312314
313315
- name: Print postgres logs
314316
if: ${{ always() }}
315-
run: docker compose logs postgres | tee ../../../postgres_logs.txt
316-
working-directory: ./.github/actions/setup-postgres
317+
uses: smartcontractkit/.github/actions/setup-postgres@7aa7ce23687ba493e9ba9c6ad47a063e60ae3433 # setup-postgres@0.1.0
318+
with:
319+
print-logs: 'true'

.github/workflows/ci-core.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ jobs:
243243

244244
- name: Setup Postgres
245245
if: ${{ needs.filter.outputs.should-run-ci-core == 'true' }}
246-
uses: ./.github/actions/setup-postgres
246+
uses: smartcontractkit/.github/actions/setup-postgres@7aa7ce23687ba493e9ba9c6ad47a063e60ae3433 # setup-postgres@0.1.0
247247

248248
- name: Touching core/web/assets/index.html
249249
if: ${{ needs.filter.outputs.should-run-ci-core == 'true' }}
@@ -253,13 +253,9 @@ jobs:
253253
if: ${{ needs.filter.outputs.should-run-ci-core == 'true' }}
254254
run: go mod download
255255

256-
- name: Build binary
257-
if: ${{ needs.filter.outputs.should-run-ci-core == 'true' }}
258-
run: go build -o chainlink.test .
259-
260256
- name: Setup DB
261257
if: ${{ needs.filter.outputs.should-run-ci-core == 'true' }}
262-
run: ./chainlink.test local db preparetest
258+
run: go run ./core/store/cmd/preparetest
263259
env:
264260
CL_DATABASE_URL: ${{ env.DB_URL }}
265261

@@ -306,8 +302,9 @@ jobs:
306302
307303
- name: Print postgres logs
308304
if: ${{ always() && needs.filter.outputs.should-run-ci-core == 'true' }}
309-
run: docker compose logs postgres | tee ../../../postgres_logs.txt
310-
working-directory: ./.github/actions/setup-postgres
305+
uses: smartcontractkit/.github/actions/setup-postgres@7aa7ce23687ba493e9ba9c6ad47a063e60ae3433 # setup-postgres@0.1.0
306+
with:
307+
print-logs: 'true'
311308

312309
- name: Store logs artifacts
313310
if: ${{ always() && needs.filter.outputs.should-run-ci-core == 'true' }}

.github/workflows/flakeguard.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,19 +303,16 @@ jobs:
303303
uses: ./.github/actions/setup-wasmd
304304

305305
- name: Setup Postgres
306-
uses: ./.github/actions/setup-postgres
306+
uses: smartcontractkit/.github/actions/setup-postgres@7aa7ce23687ba493e9ba9c6ad47a063e60ae3433 # setup-postgres@0.1.0
307307

308308
- name: Touching core/web/assets/index.html
309309
run: mkdir -p core/web/assets && touch core/web/assets/index.html
310310

311311
- name: Download Go vendor packages
312312
run: go mod download
313313

314-
- name: Build binary
315-
run: go build -o chainlink.test .
316-
317314
- name: Setup DB
318-
run: ./chainlink.test local db preparetest
315+
run: go run ./core/store/cmd/preparetest
319316
env:
320317
CL_DATABASE_URL: ${{ env.DB_URL }}
321318

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ linters-settings:
170170
require-specific: true
171171
require-explanation: true
172172
issues:
173+
max-same-issues: 0
173174
exclude-rules:
174175
- path: test
175176
text: "^G404:"

0 commit comments

Comments
 (0)