Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve v1.13.0 merge conflicts with develop #8736

Merged
merged 147 commits into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
6625d8b
wip
lukaszcl Feb 24, 2023
a8abb3d
Merge branch 'develop' into use-wsrpc-in-mercury-tests
lukaszcl Feb 28, 2023
9c1c939
WIP tests are passing
lukaszcl Feb 28, 2023
75d30a9
Fix go.mod
lukaszcl Feb 28, 2023
99c552d
WIP: http/ws load groups
skudasov Feb 28, 2023
0744312
chore: remove nocancel VRF Coordinator (#8594)
makramkd Mar 1, 2023
89260f6
convert must decode to function that does not panic (#8591)
EasterTheBunny Mar 1, 2023
4353a33
Mercury Multi Config Support (#8515)
vyzaldysanchez Mar 1, 2023
276e1c4
(fix): Amend Functions Registry calculatePaymentAmount (#8557)
justinkaseman Mar 1, 2023
3762ff9
create automation 2.1 contracts as clones of 2.0
RyanRHall Feb 17, 2023
cc07d2d
getActiveUpkeepIds not revert when exact length is unknown (#8520)
FelixFan1992 Feb 28, 2023
af20354
allow offchain config to be set during migration (#8533)
FelixFan1992 Mar 1, 2023
16efc75
Merge pull request #8604 from smartcontractkit/automation-2-1
RyanRHall Mar 1, 2023
2cac9ef
BCI-268: Rest of changes (#8584)
augustbleeds Mar 1, 2023
de3c326
BCI-268: fix distinct query (#8606)
augustbleeds Mar 2, 2023
e65e485
Authorization option for Prom (#8581)
essamhassan Mar 2, 2023
c07cd34
Allow jobs to be deleted from FMS via rpc (#8549)
eutopian Mar 2, 2023
01782e0
fix bug (#8611)
augustbleeds Mar 2, 2023
5c74108
Explicitly define sending keys in VRF job for easier tracking (#8600)
vreff Mar 2, 2023
2676a42
http/ws load tests
skudasov Mar 2, 2023
465da6a
Merge branch 'develop' into http_ws_load_groups
skudasov Mar 3, 2023
11c0aa1
bump CTF
skudasov Mar 3, 2023
8826d20
remove debug vars
skudasov Mar 3, 2023
e94f025
exclude packr
skudasov Mar 3, 2023
6b65c92
fix go.mod
skudasov Mar 3, 2023
bb42efc
fix go.mod with docker
skudasov Mar 3, 2023
5224d3a
Run go mod tidy
tateexon Mar 3, 2023
5526378
refactor tests to use testing.T aware logger (#8618)
gheorghestrimtu Mar 3, 2023
56d3179
Merge branch 'develop' into http_ws_load_groups
skudasov Mar 6, 2023
6cdc66f
Merge pull request #8619 from smartcontractkit/http_ws_load_groups
skudasov Mar 6, 2023
e4a2ab7
Bump to image versions and chainlink-env versions that support go 1.2…
tateexon Mar 6, 2023
f07b8cc
Add error buffer util (#8620)
essamhassan Mar 6, 2023
be701da
Update mercury setup
lukaszcl Mar 6, 2023
9bb1fd2
core/chains/evm/logpoller: fix doc formatting (#8626)
jmank88 Mar 7, 2023
cfed0a8
TT-181 init test logger
gheorghestrimtu Mar 7, 2023
29609de
Merge branch 'develop' into TT-181-init-logger
gheorghestrimtu Mar 7, 2023
34f797d
remove unused imports
gheorghestrimtu Mar 7, 2023
7950b32
Merge branch 'TT-181-init-logger' of github.com:smartcontractkit/chai…
gheorghestrimtu Mar 7, 2023
3b367c0
BCF-2117 More thorough block JSON testing (#8637)
krehermann Mar 7, 2023
3800f5c
Update contract bindings
lukaszcl Mar 7, 2023
bec073f
wip contracts not working
lukaszcl Mar 7, 2023
64a987d
Note to users that node16 should be used (#8503)
HenryNguyen5 Mar 7, 2023
91f4fc4
embed typed DBChainSet and DBNodeSet interfaces in ChainSet (#8638)
cfal Mar 7, 2023
3170741
Add errbuff to all util.startstoponce services (#8642)
essamhassan Mar 7, 2023
f8fd74e
Release 1.13.0 prep (changelog and version) (#8599)
chainchad Mar 7, 2023
372aa4c
BCF-991 optimize JSON unmarshal'ing for EVM block (#8644)
krehermann Mar 8, 2023
9457c08
[Functions] Update default job spec in scripts and tests (#8598)
bolekk Mar 8, 2023
7ea3478
minor refactor
lukaszcl Mar 8, 2023
77cd3b0
Fix contracts
lukaszcl Mar 8, 2023
c5e59fc
Implement enhanced EA telem (#8571)
george-dorin Mar 8, 2023
84fafa7
Fix job specs
lukaszcl Mar 8, 2023
9c3f5d5
Add buffer to gasPrices on Arbitrum estimator (#8449)
dimriou Mar 8, 2023
b6d4955
ocr fixed
lukaszcl Mar 8, 2023
c90fc0e
generalized fee estimation interface (#8561)
aalu1418 Mar 8, 2023
1e63bed
Chaos and Smoke Collide in docker image tag name (#8656)
tateexon Mar 8, 2023
c272861
Use ip for ms url, increase mockserver resources and do small refacto…
lukaszcl Mar 8, 2023
ca8deb3
Fix BuildGeneralOCR2Config for other tests
lukaszcl Mar 8, 2023
26247d6
Refactoring 1
lukaszcl Mar 8, 2023
6d24db9
Refactoring 2
lukaszcl Mar 8, 2023
d003932
VRF-367 Fix use of getRoundRobinAddress in VRF listener (#8653)
vreff Mar 8, 2023
9f9b01d
Refactoring 3
lukaszcl Mar 9, 2023
7b3a120
remove legacy config (#8434)
jmank88 Mar 9, 2023
b67f29e
pulled develop
gheorghestrimtu Mar 9, 2023
8646fcc
Merge pull request #8640 from smartcontractkit/TT-181-init-logger
skudasov Mar 9, 2023
019a244
wip
lukaszcl Mar 9, 2023
5e89866
core/cmd: legacy config cleanup (#8663)
jmank88 Mar 9, 2023
da7c48b
core/chains/evm/gas: rm unused percentile field (#8655)
jmank88 Mar 9, 2023
e3579a1
increase observation timeout
lukaszcl Mar 9, 2023
ab2894d
Fix not retrying the previous attempt when failing connectivity check…
dimriou Mar 9, 2023
5c016ca
finish mercury client endpoints for new auth
lukaszcl Mar 9, 2023
aaf6e54
Merge branch 'update-mercury-e2e-tests-for-new-plugin' into update-me…
lukaszcl Mar 9, 2023
565575c
wip - hmac api call works!
lukaszcl Mar 9, 2023
15c06f1
Use init sql helm value to initialize mercury server db
lukaszcl Mar 9, 2023
9e39699
Fix WebServer TLS instruction text (#8666)
vreff Mar 9, 2023
22b6ebe
Fixes OCR soak tests (#8671)
kalverra Mar 9, 2023
8bac760
Refactor mercury test environment setup
lukaszcl Mar 10, 2023
e363538
Refactor test setup
lukaszcl Mar 10, 2023
4cf0a94
Fix
lukaszcl Mar 10, 2023
e3cb959
Remove unused file
lukaszcl Mar 10, 2023
329ca7b
Minor refactoring
lukaszcl Mar 10, 2023
a1710dd
Update mercury load test (wip)
lukaszcl Mar 10, 2023
bcc35f0
[Functions] Rename the EVM provider (#8659)
bolekk Mar 10, 2023
0b8cf21
Add keep mercury env flag
lukaszcl Mar 10, 2023
b13336e
Fixes
lukaszcl Mar 10, 2023
8c45840
Update load tests to work with HMAC
lukaszcl Mar 10, 2023
06fe3c6
Update contract setup
lukaszcl Mar 11, 2023
28306be
VRF-391: change consumer contract for CTF test (#8680)
iljapavlovs Mar 12, 2023
e1b9288
Fix
lukaszcl Mar 13, 2023
7c48979
Merge branch 'develop' into update-mercury-e2e-tests-for-new-plugin-a…
lukaszcl Mar 13, 2023
c421f04
Fix go mod
lukaszcl Mar 13, 2023
4d2e267
Telem services have documented health checks (#8670)
essamhassan Mar 13, 2023
63f2a95
Validate existing of new fields in the report
lukaszcl Mar 13, 2023
22d77c4
Pipeline services and subservices have documented health checks (#8672)
essamhassan Mar 13, 2023
16538bd
Remove redundant assignment in VRF coordinator (#8686)
vreff Mar 13, 2023
214b3f0
Fix OCR kickoff by adding fromBlock to bootstrap node
lukaszcl Mar 13, 2023
8f459ff
BCF-2119: Database health check (#8675)
krehermann Mar 13, 2023
a5646b2
Check contract err
lukaszcl Mar 13, 2023
016a007
Solana txm extraction (#8627)
sdrug Mar 13, 2023
e503b96
Update ocr config values
lukaszcl Mar 13, 2023
f468b1e
Bump mockserver resources
lukaszcl Mar 13, 2023
b352726
Clean up http gun
lukaszcl Mar 13, 2023
1e0ab24
remove legacy config (#8689)
jmank88 Mar 13, 2023
fdb8025
New Exchanger contract that fixes ResolveTradeWithReport
lukaszcl Mar 13, 2023
040a238
Merge branch 'develop' into update-mercury-e2e-tests-for-new-plugin-a…
lukaszcl Mar 13, 2023
250193e
Bump github/codeql-action from 2.2.4 to 2.2.6 (#8676)
dependabot[bot] Mar 13, 2023
0108ea1
Use consistent and fixed version of aws creds action. (#8664)
chainchad Mar 13, 2023
e316c75
Update Operator UI from v0.8.0-ffd9ff4 to v0.8.0-782ef0a (#8695)
github-actions[bot] Mar 13, 2023
9cf05c8
Add evmChainID to replay cli (#8687)
george-dorin Mar 14, 2023
9502830
Bump ludeeus/action-shellcheck from 1.1.0 to 2.0.0 (#8359)
dependabot[bot] Mar 14, 2023
1bad41e
Fixes new job proposals not storing the name when received (#8699)
jkongie Mar 14, 2023
85a2851
Do not save mercury env config if config already used
lukaszcl Mar 14, 2023
dcd89da
Fix automation_test.go
lukaszcl Mar 14, 2023
85c78f1
bump golangci-lint to 1.51.2; remove unused code (#8700)
jmank88 Mar 14, 2023
995192d
Clean up env setup from file
lukaszcl Mar 14, 2023
3f424ac
Use gomega to wait for reports in mercury db
lukaszcl Mar 14, 2023
a17d523
Merge branch 'develop' into update-mercury-e2e-tests-for-new-plugin-a…
lukaszcl Mar 14, 2023
c83584b
core/services/chainlink: update legacy env list (#8704)
jmank88 Mar 14, 2023
39fe8e3
Add block timestamps to logs (#8616)
reductionista Mar 14, 2023
fb16f29
update load tests
skudasov Mar 14, 2023
70d5bec
Merge remote-tracking branch 'origin/update-mercury-e2e-tests-for-new…
skudasov Mar 14, 2023
a098ccd
Remove redundant logpoller test (#8706)
reductionista Mar 14, 2023
d5867c1
Decouple testing.T from env setup
lukaszcl Mar 14, 2023
18559af
use chart path as an env var
skudasov Mar 15, 2023
bae5af4
Merge remote-tracking branch 'origin/update-mercury-e2e-tests-for-new…
skudasov Mar 15, 2023
24fb429
fix after merge
skudasov Mar 15, 2023
6fc3cf0
Merge branch 'develop' into update-mercury-e2e-tests-for-new-plugin-a…
skudasov Mar 15, 2023
0275560
handle errors, fix lint
skudasov Mar 15, 2023
bc7015e
Merge pull request #8683 from smartcontractkit/update-mercury-e2e-tes…
skudasov Mar 15, 2023
e6c9e15
None blocking telemetry (#8684)
george-dorin Mar 15, 2023
a55a966
VRF-392 Change lookbackblocks type to uint64 (#8688)
vreff Mar 15, 2023
0df25a4
allow revoke job requests to be sent from fms via rpc (#8657)
eutopian Mar 15, 2023
30bd147
[Functions] Use latest CBOR & Buffer contracts (#8485)
justinkaseman Mar 15, 2023
f7358ea
Bump aws-actions/configure-aws-credentials from 1.7.0 to 2.0.0 (#8705)
dependabot[bot] Mar 15, 2023
cd6e428
Update README.md (#8698)
jmank88 Mar 15, 2023
5622de9
core/cmd: only run fallback API initializer when file not present (#8…
jmank88 Mar 15, 2023
7a5285b
Don't Stop unstarted app in RebroadcastTransactions (#8615)
martin-cll Mar 16, 2023
06e7f48
core/cmd/local_client: replace DATABASE_URL references with CL_DATABA…
cfal Mar 16, 2023
525aff8
embed chains.ChainsORM and chains.NodesORM in chain ORMs (#8709)
cfal Mar 16, 2023
5668c49
bump mockery to 2.22.1 (#8719)
jmank88 Mar 16, 2023
de618d3
Silence Live Testnet Runs (#8721)
kalverra Mar 16, 2023
affefe8
Per service prom health metrics (#8707)
essamhassan Mar 16, 2023
950b8df
(test): Add unit tests for FunctionsBillingRegistry and Functions Ora…
justinkaseman Mar 16, 2023
4c6af4c
[Functions] Separate event for invalid IDs (#8652)
bolekk Mar 16, 2023
fcd089c
BCF-2141: clean up make generate (#8722)
krehermann Mar 16, 2023
1ec6aba
Write custom plugin for Mercury (#8340)
samsondav Mar 16, 2023
c702398
Bump google.golang.org/protobuf from 1.29.0 to 1.29.1 (#8730)
dependabot[bot] Mar 16, 2023
b39d997
Merge branch 'develop' into chore/release-1.13.0-develop-conflicts
chainchad Mar 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/actions/build-sign-publish-chainlink/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ runs:
- if: inputs.publish == 'true'
# Log in to AWS for publish to ECR
name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@ea7b857d8a33dc2fb4ef5a724500044281b49a5e # v1.6.0
uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838 # v1.7.0
with:
role-to-assume: ${{ inputs.aws-role-to-assume }}
role-duration-seconds: ${{ inputs.aws-role-duration-seconds }}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/goreleaser-build-sign-publish/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838 # v1.7.0
with:
role-to-assume: ${{ secrets.aws-role-arn }}
role-duration-seconds: ${{ secrets.aws-role-dur-sec }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/automation-benchmark-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
file: ./integration-tests/test.Dockerfile
build-args: |
BASE_IMAGE=${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/test-base-image
IMAGE_VERSION=v0.3.8
IMAGE_VERSION=v0.3.17
SUITES="benchmark"
AWS_REGION: ${{ secrets.QA_AWS_REGION }}
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bash-cicd-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Run ShellCheck
if: needs.changes.outputs.bash-cicd-scripts-src == 'true'
uses: ludeeus/action-shellcheck@94e0aab03ca135d11a35e5bfc14e6746dc56e7e9 # v1.1.0
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # v2.0.0
with:
scandir: './.github/scripts/bash'
shellspec:
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
##
uses: smartcontractkit/golangci-lint-action@54ab6c5f11d66a92d14c3f7cc41ea13f676644bd # feature/multiple-output-formats-backup
with:
version: v1.51.1
version: v1.51.2
only-new-issues: ${{ github.event.schedule == '' }} # show only new issues, unless it's a scheduled run
allow-extra-out-format-args: true
args: --out-format checkstyle:golangci-lint-report.xml
Expand Down Expand Up @@ -138,9 +138,7 @@ jobs:
name: Core Tests (${{ matrix.cmd }}) ${{ matrix.split.id }}
runs-on: ubuntu-latest
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/chainlink_test?sslmode=disable
CL_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/chainlink_test?sslmode=disable
LOG_LEVEL: debug
steps:
- name: Checkout the repo
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
Expand Down Expand Up @@ -259,16 +257,14 @@ jobs:
uses: ./.github/actions/setup-go
with:
only-modules: "true"
- run: make mockery
- run: make abigen
- run: make gomodtidy
- name: Ensure clean after tidy
run: git diff --minimal --exit-code
- name: Setup NodeJS
uses: ./.github/actions/setup-nodejs
- run: make generate
- run: make generate # generate install go deps
- name: Ensure clean after generate
run: git diff --stat --exit-code
- run: make gomodtidy
- name: Ensure clean after tidy
run: git diff --minimal --exit-code
- name: Collect Metrics
if: always()
id: collect-gha-metrics
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ jobs:
run: mkdir -p core/web/assets && touch core/web/assets/index.html

- name: Initialize CodeQL
uses: github/codeql-action/init@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2.4
uses: github/codeql-action/init@16964e90ba004cdf0cd845b866b5df21038b7723 # v2.2.6
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2.4
uses: github/codeql-action/analyze@16964e90ba004cdf0cd845b866b5df21038b7723 # v2.2.6

- name: Collect Metrics
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser-build-publish-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838 # v1.7.0
uses: aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef # v2.0.0
with:
role-to-assume: ${{ secrets.AWS_OIDC_IAM_ROLE_ARN }}
role-duration-seconds: ${{ secrets.AWS_ROLE_DURATION_SECONDS }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-chaos-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
env:
REF_NAME: ${{ github.head_ref || github.ref_name }}
DEVELOP_REF: develop
BUILD_SHA_REF: ci.${{ github.sha }}
BUILD_SHA_REF: chaos.${{ github.sha }}
CHAINLINK_ECR_BASE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink
ENV_JOB_IMAGE_BASE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink-tests
TEST_SUITE: chaos
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
file: ./integration-tests/test.Dockerfile
build-args: |
BASE_IMAGE=${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/test-base-image
IMAGE_VERSION=v0.3.16
IMAGE_VERSION=v0.3.17
SUITES="${{ env.TEST_SUITE }}"
AWS_REGION: ${{ secrets.QA_AWS_REGION }}
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
file: ./integration-tests/test.Dockerfile
build-args: |
BASE_IMAGE=${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/test-base-image
IMAGE_VERSION=v0.3.8
IMAGE_VERSION=v0.3.17
SUITES="chaos migration performance reorg smoke soak benchmark"
AWS_REGION: ${{ secrets.QA_AWS_REGION }}
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
6 changes: 3 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
file: ./integration-tests/test.Dockerfile
build-args: |
BASE_IMAGE=${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/test-base-image
IMAGE_VERSION=v0.3.8
IMAGE_VERSION=v0.3.17
SUITES="smoke soak chaos benchmark migration performance"
AWS_REGION: ${{ secrets.QA_AWS_REGION }}
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
Expand Down Expand Up @@ -334,7 +334,7 @@ jobs:
file: ./integration-tests/test.Dockerfile
build-args: |
BASE_IMAGE=${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/test-base-image
IMAGE_VERSION=v0.3.8
IMAGE_VERSION=v0.3.17
SUITES="smoke"
AWS_REGION: ${{ secrets.QA_AWS_REGION }}
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
Expand Down Expand Up @@ -433,7 +433,7 @@ jobs:
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
QA_KUBECONFIG: ${{ secrets.QA_KUBECONFIG }}
- name: Notify Slack
if: always()
if: false ## TODO: This is currently noisy and needs to be more compact.
id: slack
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 # v1.23.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-demand-ocr-soak-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
file: ./integration-tests/test.Dockerfile
build-args: |
BASE_IMAGE=${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/test-base-image
IMAGE_VERSION=v0.3.8
IMAGE_VERSION=v0.3.17
SUITES="soak"
AWS_REGION: ${{ secrets.QA_AWS_REGION }}
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/performance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef # v2.0.0
with:
aws-region: ${{ secrets.QA_AWS_REGION }}
role-to-assume: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ tests-*.xml
*.test
tmp-manifest-*.yaml
ztarrepo.tar.gz
**/test-ledger/*

# goreleaser builds
cosign.*
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "contracts/foundry-lib/forge-std"]
path = contracts/foundry-lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "contracts/foundry-lib/openzeppelin-contracts"]
path = contracts/foundry-lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
1 change: 1 addition & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty config to prevent info/debug level log spam
5 changes: 3 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
golang 1.20.1
mockery 2.20.0
mockery 2.22.1
nodejs 16.13.2
postgres 13.3
helm 3.10.3
zig 0.10.1
golangci-lint 1.51.1
golangci-lint 1.51.2
shellspec 0.28.1
codecgen 1.2.10
11 changes: 8 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ go-solidity-wrappers-ocr2vrf: pnpmdep abigen ## Recompiles solidity contracts an
sed -i '' 's/go:generate/go:generate_disabled/g' core/gethwrappers/ocr2vrf/go_generate.go

.PHONY: generate
generate: abigen ## Execute all go:generate commands.
generate: abigen codecgen mockery ## Execute all go:generate commands.
go generate -x ./...

.PHONY: testdb
Expand All @@ -100,7 +100,12 @@ presubmit: ## Format go files and imports.

.PHONY: mockery
mockery: $(mockery) ## Install mockery.
go install github.com/vektra/mockery/v2@v2.20.0
go install github.com/vektra/mockery/v2@v2.22.1

.PHONY: codecgen
codecgen: $(codecgen) ## Install codecgen
go install github.com/ugorji/go/codec/codecgen@v1.2.10


.PHONY: telemetry-protobuf
telemetry-protobuf: $(telemetry-protobuf) ## Generate telemetry protocol buffers.
Expand All @@ -121,7 +126,7 @@ config-docs: ## Generate core node configuration documentation

.PHONY: golangci-lint
golangci-lint: ## Run golangci-lint for all issues.
docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:latest golangci-lint run --max-issues-per-linter 0 --max-same-issues 0 > golangci-lint-output.txt
docker run --rm -v $(shell pwd):/app -w /app golangci/golangci-lint:v1.51.2 golangci-lint run --max-issues-per-linter 0 --max-same-issues 0 > golangci-lint-output.txt

.PHONY: snapshot
snapshot:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ regarding Chainlink social accounts, news, and networking.

1. [Install Go 1.20](https://golang.org/doc/install), and add your GOPATH's [bin directory to your PATH](https://golang.org/doc/code.html#GOPATH)
- Example Path for macOS `export PATH=$GOPATH/bin:$PATH` & `export GOPATH=/Users/$USER/go`
2. Install [NodeJS](https://nodejs.org/en/download/package-manager/) & [pnpm via npm](https://pnpm.io/installation#using-npm).
2. Install [NodeJS v16](https://nodejs.org/en/download/package-manager/) & [pnpm via npm](https://pnpm.io/installation#using-npm).
- It might be easier long term to use [nvm](https://nodejs.org/en/download/package-manager/#nvm) to switch between node versions for different projects. For example, assuming $NODE_VERSION was set to a valid version of NodeJS, you could run: `nvm install $NODE_VERSION && nvm use $NODE_VERSION`
3. Install [Postgres (>= 11.x and < 15.x)](https://wiki.postgresql.org/wiki/Detailed_installation_guides).
- You should [configure Postgres](https://www.postgresql.org/docs/12/ssl-tcp.html) to use SSL connection (or for testing you can set `?sslmode=disable` in your Postgres query string).
Expand Down Expand Up @@ -73,12 +73,12 @@ These clients are supported by Chainlink, but have bugs that prevent Chainlink f

- [Nethermind](https://github.com/NethermindEth/nethermind)
Blocking issues:
- https://github.com/NethermindEth/nethermind/issues/4384
- ~https://github.com/NethermindEth/nethermind/issues/4384~
- [Besu](https://github.com/hyperledger/besu)
Blocking issues:
- https://github.com/hyperledger/besu/issues/4212
- https://github.com/hyperledger/besu/issues/4192
- https://github.com/hyperledger/besu/issues/4114
- ~https://github.com/hyperledger/besu/issues/4192~
- ~https://github.com/hyperledger/besu/issues/4114~
- [Erigon](https://github.com/ledgerwatch/erigon)
Blocking issues:
- https://github.com/ledgerwatch/erigon/discussions/4946
Expand Down
32 changes: 32 additions & 0 deletions common/txmgr/types/fee_estimator.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package types

import "context"

// Opt is an option for a gas estimator
type Opt int

const (
// OptForceRefetch forces the estimator to bust a cache if necessary
OptForceRefetch Opt = iota
)

// PriorAttempt provides a generic interface for reading tx data to be used in the fee esimators
type PriorAttempt[FEE any, HASH any] interface {
Fee() FEE
GetChainSpecificGasLimit() uint32
GetBroadcastBeforeBlockNum() *int64
GetHash() HASH
GetTxType() int
}

// FeeEstimator provides a generic interface for fee estimation
//
//go:generate mockery --quiet --name FeeEstimator --output ./mocks/ --case=underscore
type FeeEstimator[HEAD any, FEE any, MAXPRICE any, HASH any] interface {
OnNewLongestChain(context.Context, HEAD)
Start(context.Context) error
Close() error

GetFee(ctx context.Context, calldata []byte, feeLimit uint32, maxFeePrice MAXPRICE, opts ...Opt) (fee FEE, chainSpecificFeeLimit uint32, err error)
BumpFee(ctx context.Context, originalFee FEE, feeLimit uint32, maxFeePrice MAXPRICE, attempts []PriorAttempt[FEE, HASH]) (bumpedFee FEE, chainSpecificFeeLimit uint32, err error)
}
Loading