Skip to content

Commit 4a13a55

Browse files
committed
Merge branch 'main' into PLEX-1731
2 parents 93c2d93 + 2969be7 commit 4a13a55

File tree

119 files changed

+6757
-1040
lines changed

Some content is hidden

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

119 files changed

+6757
-1040
lines changed

.github/workflows/golangci_lint.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
name: Golangci-lint
22

3-
on: [pull_request]
3+
on: [pull_request, merge_group]
44

55
jobs:
66
golangci-lint:
7+
# Avoid running in merge queue since we run in PR's and have an optional
8+
# label to skip lint issues on a PR which would be ignored in the merge queue.
9+
if: ${{ github.event_name != 'merge_group' }}
710
runs-on: ubuntu-latest
811
permissions:
912
id-token: write
1013
contents: read
1114
actions: read
15+
pull-requests: read
1216
steps:
1317
- name: Checkout code
1418
uses: actions/checkout@v5

.github/workflows/keystore.yml

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,34 @@ name: Keystore Checks
22
permissions:
33
contents: read
44

5-
on:
6-
push:
7-
paths:
8-
- "keystore/**"
5+
on: [push, merge_group]
96

107
jobs:
8+
changes:
9+
name: detect changes
10+
runs-on: ubuntu-latest
11+
outputs:
12+
keystore-src: ${{ steps.keystore-changes.outputs.src }}
13+
steps:
14+
- name: Checkout the repo
15+
uses: actions/checkout@v4
16+
with:
17+
persist-credentials: false
18+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
19+
id: keystore-changes
20+
with:
21+
filters: |
22+
src:
23+
- 'keystore/**'
24+
1125
run-tests:
26+
name: run tests
27+
runs-on: ubuntu-latest
28+
needs: changes
29+
if: needs.changes.outputs.keystore-src == 'true'
1230
defaults:
1331
run:
1432
working-directory: keystore
15-
runs-on: ubuntu-latest
1633
steps:
1734
- name: Checkout
1835
uses: actions/checkout@v4
@@ -30,7 +47,13 @@ jobs:
3047
run: go test ./... -coverpkg=./... -coverprofile=coverage.txt
3148

3249
build-race-tests:
50+
name: race tests
3351
runs-on: ubuntu-latest
52+
needs: changes
53+
if: needs.changes.outputs.keystore-src == 'true'
54+
defaults:
55+
run:
56+
working-directory: keystore
3457
steps:
3558
- name: Checkout
3659
uses: actions/checkout@v4
@@ -61,4 +84,17 @@ jobs:
6184
with:
6285
name: go-race-results
6386
path: |
64-
./race.*
87+
./race.*
88+
89+
gate:
90+
name: summary gate
91+
runs-on: ubuntu-latest
92+
needs: [changes, run-tests, build-race-tests]
93+
if: always()
94+
steps:
95+
- name: Fail if any job ran and failed
96+
if: needs.changes.outputs.keystore-src == 'true' &&
97+
(needs.run-tests.result != 'success' ||
98+
needs.build-race-tests.result != 'success')
99+
run: exit 1
100+

.github/workflows/pkg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: PKG Build and Test
22

3-
on: [push]
3+
on: [push, merge_group]
44

55
jobs:
66
build-test:

go.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ flowchart LR
1515
chainlink-common --> grpc-proxy
1616
chainlink-common --> libocr
1717
click chainlink-common href "https://github.com/smartcontractkit/chainlink-common"
18+
chainlink-common/keystore --> chainlink-common
19+
click chainlink-common/keystore href "https://github.com/smartcontractkit/chainlink-common"
1820
chainlink-common/pkg/chipingress
1921
click chainlink-common/pkg/chipingress href "https://github.com/smartcontractkit/chainlink-common"
2022
chainlink-common/pkg/monitoring --> chainlink-common
@@ -40,6 +42,7 @@ flowchart LR
4042
4143
subgraph chainlink-common-repo[chainlink-common]
4244
chainlink-common
45+
chainlink-common/keystore
4346
chainlink-common/pkg/chipingress
4447
chainlink-common/pkg/monitoring
4548
chainlink-common/pkg/values

go.mod

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ require (
2020
github.com/google/uuid v1.6.0
2121
github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1
2222
github.com/hashicorp/go-hclog v1.6.3
23-
github.com/hashicorp/go-plugin v1.6.3
23+
github.com/hashicorp/go-plugin v1.7.0
2424
github.com/iancoleman/strcase v0.3.0
2525
github.com/invopop/jsonschema v0.13.0
2626
github.com/jackc/pgx/v4 v4.18.3
@@ -37,8 +37,8 @@ require (
3737
github.com/scylladb/go-reflectx v1.0.1
3838
github.com/shopspring/decimal v1.4.0
3939
github.com/smartcontractkit/chain-selectors v1.0.67
40-
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.9-0.20251020164035-ab562b473fe2
41-
github.com/smartcontractkit/chainlink-protos/billing/go v0.0.0-20251020004840-4638e4262066
40+
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10
41+
github.com/smartcontractkit/chainlink-protos/billing/go v0.0.0-20251024234028-0988426d98f4
4242
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20251021010742-3f8d3dba17d8
4343
github.com/smartcontractkit/chainlink-protos/linking-service/go v0.0.0-20251002192024-d2ad9222409b
4444
github.com/smartcontractkit/chainlink-protos/storage-service v0.3.0
@@ -83,7 +83,6 @@ require (
8383
github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59 // indirect
8484
github.com/bahlo/generic-list-go v0.2.0 // indirect
8585
github.com/beorn7/perks v1.0.1 // indirect
86-
github.com/bufbuild/protocompile v0.14.1 // indirect
8786
github.com/buger/goterm v1.0.4 // indirect
8887
github.com/buger/jsonparser v1.1.1 // indirect
8988
github.com/cenkalti/backoff/v5 v5.0.2 // indirect
@@ -112,7 +111,6 @@ require (
112111
github.com/jackc/pgproto3/v2 v2.3.3 // indirect
113112
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
114113
github.com/jackc/pgtype v1.14.4 // indirect
115-
github.com/jhump/protoreflect v1.15.3 // indirect
116114
github.com/json-iterator/go v1.1.12 // indirect
117115
github.com/klauspost/compress v1.18.0 // indirect
118116
github.com/klauspost/cpuid/v2 v2.2.10 // indirect

go.sum

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ github.com/hako/durafmt v0.0.0-20200710122514-c0fb7b4da026 h1:BpJ2o0OR5FV7vrkDYf
143143
github.com/hako/durafmt v0.0.0-20200710122514-c0fb7b4da026/go.mod h1:5Scbynm8dF1XAPwIwkGPqzkM/shndPm79Jd1003hTjE=
144144
github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k=
145145
github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
146-
github.com/hashicorp/go-plugin v1.6.3 h1:xgHB+ZUSYeuJi96WtxEjzi23uh7YQpznjGh0U0UUrwg=
147-
github.com/hashicorp/go-plugin v1.6.3/go.mod h1:MRobyh+Wc/nYy1V4KAXUiYfzxoYhs7V1mlH1Z7iY2h0=
146+
github.com/hashicorp/go-plugin v1.7.0 h1:YghfQH/0QmPNc/AZMTFE3ac8fipZyZECHdDPshfk+mA=
147+
github.com/hashicorp/go-plugin v1.7.0/go.mod h1:BExt6KEaIYx804z8k4gRzRLEvxKVb+kn0NMcihqOqb8=
148148
github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8=
149149
github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns=
150150
github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI=
@@ -202,8 +202,8 @@ github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0f
202202
github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
203203
github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
204204
github.com/jackc/puddle v1.3.0/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
205-
github.com/jhump/protoreflect v1.15.3 h1:6SFRuqU45u9hIZPJAoZ8c28T3nK64BNdp9w6jFonzls=
206-
github.com/jhump/protoreflect v1.15.3/go.mod h1:4ORHmSBmlCW8fh3xHmJMGyul1zNqZK4Elxc8qKP+p1k=
205+
github.com/jhump/protoreflect v1.17.0 h1:qOEr613fac2lOuTgWN4tPAtLL7fUSbuJL5X5XumQh94=
206+
github.com/jhump/protoreflect v1.17.0/go.mod h1:h9+vUUL38jiBzck8ck+6G/aeMX8Z4QUY/NiJPwPNi+8=
207207
github.com/jmoiron/sqlx v1.4.0 h1:1PLqN7S1UYp5t4SrVVnt4nUVNemrDAtxlulVe+Qgm3o=
208208
github.com/jmoiron/sqlx v1.4.0/go.mod h1:ZrZ7UsYB/weZdl2Bxg6jCRO9c3YHl8r3ahlKmRT4JLY=
209209
github.com/jonboulle/clockwork v0.5.0 h1:Hyh9A8u51kptdkR+cqRpT1EebBwTn1oK9YfGYbdFz6I=
@@ -326,10 +326,10 @@ github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMB
326326
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
327327
github.com/smartcontractkit/chain-selectors v1.0.67 h1:gxTqP/JC40KDe3DE1SIsIKSTKTZEPyEU1YufO1admnw=
328328
github.com/smartcontractkit/chain-selectors v1.0.67/go.mod h1:xsKM0aN3YGcQKTPRPDDtPx2l4mlTN1Djmg0VVXV40b8=
329-
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.9-0.20251020164035-ab562b473fe2 h1:p79eZtyBbZYumftwZGCkyKSNDvUralW7lqcTD99Ovmw=
330-
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.9-0.20251020164035-ab562b473fe2/go.mod h1:oiDa54M0FwxevWwyAX773lwdWvFYYlYHHQV1LQ5HpWY=
331-
github.com/smartcontractkit/chainlink-protos/billing/go v0.0.0-20251020004840-4638e4262066 h1:D7fFxHtPZNKKh1eWcTqpasb/aBGxnQ2REssEP49l1lg=
332-
github.com/smartcontractkit/chainlink-protos/billing/go v0.0.0-20251020004840-4638e4262066/go.mod h1:HHGeDUpAsPa0pmOx7wrByCitjQ0mbUxf0R9v+g67uCA=
329+
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10 h1:FJAFgXS9oqASnkS03RE1HQwYQQxrO4l46O5JSzxqLgg=
330+
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10/go.mod h1:oiDa54M0FwxevWwyAX773lwdWvFYYlYHHQV1LQ5HpWY=
331+
github.com/smartcontractkit/chainlink-protos/billing/go v0.0.0-20251024234028-0988426d98f4 h1:GCzrxDWn3b7jFfEA+WiYRi8CKoegsayiDoJBCjYkneE=
332+
github.com/smartcontractkit/chainlink-protos/billing/go v0.0.0-20251024234028-0988426d98f4/go.mod h1:HHGeDUpAsPa0pmOx7wrByCitjQ0mbUxf0R9v+g67uCA=
333333
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20251021010742-3f8d3dba17d8 h1:hPeEwcvRVtwhyNXH45qbzqmscqlbygu94cROwbjyzNQ=
334334
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20251021010742-3f8d3dba17d8/go.mod h1:jUC52kZzEnWF9tddHh85zolKybmLpbQ1oNA4FjOHt1Q=
335335
github.com/smartcontractkit/chainlink-protos/linking-service/go v0.0.0-20251002192024-d2ad9222409b h1:QuI6SmQFK/zyUlVWEf0GMkiUYBPY4lssn26nKSd/bOM=

keystore/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
WARNING: In development do not use in production.
2+
13
# Keystore
24
Design principles:
35
- Use structs for typed extensibility of the interfaces. Easy

0 commit comments

Comments
 (0)