Skip to content

Commit

Permalink
Merge branch 'ccip-develop' into CCIP-2379/ccip-capability-job
Browse files Browse the repository at this point in the history
  • Loading branch information
makramkd committed Jun 21, 2024
2 parents ea3c424 + 292ac45 commit 7733387
Show file tree
Hide file tree
Showing 243 changed files with 12,319 additions and 5,951 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-cups-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#added zkSync L1 GasPrice calculation
5 changes: 5 additions & 0 deletions .changeset/chilled-papayas-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ccip": patch
---

#updated Add TokenPricesReader implementation
5 changes: 5 additions & 0 deletions .changeset/clever-hotels-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ccip": patch
---

use chainlink-common for hash and merklemulti in ocr3 #internal
6 changes: 6 additions & 0 deletions .changeset/early-readers-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"ccip": patch
---

New function on NetworkSelector to get ChainID #added
Align logs and include chainID #changed
10 changes: 0 additions & 10 deletions .changeset/early-shoes-sit.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/five-socks-approve.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/metal-cars-report.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/quick-kangaroos-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ccip": minor
---

#removed nops and weights logic from multi onramp
5 changes: 5 additions & 0 deletions .changeset/smooth-apricots-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ccip": minor
---

#updated chainselector and metis toml
5 changes: 5 additions & 0 deletions .changeset/smooth-starfishes-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ccip": minor
---

Move price observations from Commit plugin into a standalone job
5 changes: 5 additions & 0 deletions .changeset/tasty-pianos-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ccip": patch
---

add offchainConfig value to know after what time the offchain code should stop attempting a tx
5 changes: 5 additions & 0 deletions .changeset/violet-poems-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ccip": patch
---

#internal ocr3 execute work
5 changes: 5 additions & 0 deletions .changeset/wild-gifts-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ccip": patch
---

Increased gas limit for LM transmitter to 5e6 #changed
3 changes: 2 additions & 1 deletion .github/workflows/ccip-chaos-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ jobs:
pull-requests: write
id-token: write
contents: read
name: ccip-load-with-chaos-tests
name: CCIP Load With Chaos Tests
if: false # Disabled until CCIP-2555 is resolved
runs-on: ubuntu-latest
needs: [ build-chainlink, build-test-image ]
env:
Expand Down
48 changes: 15 additions & 33 deletions .github/workflows/ccip-offchain-upgrade-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,22 @@ jobs:
AWS_REGION: ${{ secrets.QA_AWS_REGION }}
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}

build-test-image-current-sha:
build-test-image:
if: needs.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch'
needs: [ changes ]
environment: integration
permissions:
id-token: write
contents: read
name: Build Test Image with Current Sha
name: Build Test Image
runs-on: ubuntu-latest
steps:
- name: Collect Metrics
if: needs.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch'
id: collect-gha-metrics
uses: smartcontractkit/push-gha-metrics-action@dea9b546553cb4ca936607c2267a09c004e4ab3f # v3.0.0
with:
id: ccip-offchain-upgrade-compatibility-tests-build-test-image-current-sha
id: ccip-offchain-upgrade-compatibility-tests-build-test-image
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }}
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
Expand All @@ -125,19 +125,19 @@ jobs:
uses: ./.github/actions/build-test-image
with:
# we just want to build the load tests
suites: ccip-tests/load
suites: ccip-tests/load ccip-tests/smoke
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }}
QA_AWS_ACCOUNT_NUMBER: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}

build-test-image-for-last-release:
last-release-info:
if: needs.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch'
needs: [ changes ]
environment: integration
permissions:
id-token: write
contents: read
name: Build Test Image for Last Release
name: Fetch Info for Last Release
runs-on: ubuntu-latest
outputs:
release_name: ${{ steps.fetch_last_release.outputs.release_name }}
Expand All @@ -149,7 +149,7 @@ jobs:
id: collect-gha-metrics
uses: smartcontractkit/push-gha-metrics-action@dea9b546553cb4ca936607c2267a09c004e4ab3f # v3.0.0
with:
id: ccip-offchain-upgrade-compatibility-tests-build-test-image-for-last-release
id: ccip-offchain-upgrade-compatibility-tests-last-release-info
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }}
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
Expand All @@ -165,20 +165,6 @@ jobs:
echo "release_name=${release_name}" >> $GITHUB_OUTPUT
sha_ref=$(curl -s --header "Authorization: token ${{ secrets.GITHUB_TOKEN }}" --request GET https://api.github.com/repos/${{ github.repository }}/git/refs/tags/${release_name} | jq -r '.object.sha' | sort -V | tail -n 1)
echo "sha_ref=${sha_ref}" >> $GITHUB_OUTPUT
- name: Checkout the repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
repository: smartcontractkit/ccip
ref: ${{ steps.fetch_last_release.outputs.sha_ref }}
- name: Build Test Image
if: needs.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch'
uses: ./.github/actions/build-test-image
with:
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }}
QA_AWS_ACCOUNT_NUMBER: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}
tag: ${{ steps.fetch_last_release.outputs.sha_ref }}
other_tags: ${{ steps.fetch_last_release.outputs.release_name }}
# End Build Test Dependencies

# run test with previous image
Expand All @@ -190,7 +176,7 @@ jobs:
pull-requests: write
id-token: write
contents: read
needs: [ changes, build-test-image-for-last-release ]
needs: [ changes, last-release-info, build-test-image ]
outputs:
existing_namespace: ${{ steps.fetch_namespace.outputs.existing_namespace }}
triggered_by: ${{ steps.fetch_namespace.outputs.triggered_by }}
Expand All @@ -203,11 +189,11 @@ jobs:
run: ^TestSmokeCCIPForBidirectionalLane$
config_path: ./integration-tests/ccip-tests/testconfig/tomls/node-pre-upgrade-compatibility.toml
runs-on: ubuntu-latest
name: CCIP Deployment with ${{ needs.build-test-image-for-last-release.outputs.release_tag }} - ${{ matrix.product.name }}
name: CCIP Deployment with ${{ needs.last-release-info.outputs.release_tag }} - ${{ matrix.product.name }}
env:
RELEASE_TAG: ${{ needs.build-test-image-for-last-release.outputs.release_tag }}
RELEASE_SHA: ${{ needs.build-test-image-for-last-release.outputs.release_sha }}
RELEASE_NAME: ${{ needs.build-test-image-for-last-release.outputs.release_name }}
RELEASE_TAG: ${{ needs.last-release-info.outputs.release_tag }}
RELEASE_SHA: ${{ needs.last-release-info.outputs.release_sha }}
RELEASE_NAME: ${{ needs.last-release-info.outputs.release_name }}
TEST_TRIGGERED_BY: ${{ matrix.product.name }}-${{ github.run_id }}
steps:
- name: Collect Metrics
Expand All @@ -219,7 +205,7 @@ jobs:
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }}
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
this-job-name: CCIP Deployment with ${{ needs.build-test-image-for-last-release.outputs.release_tag }} - ${{ matrix.product.name }}
this-job-name: CCIP Deployment with ${{ needs.last-release-info.outputs.release_tag }} - ${{ matrix.product.name }}
test-results-file: '{"testType":"go","filePath":"/tmp/gotest.log"}'
- name: Checkout the repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down Expand Up @@ -253,11 +239,7 @@ jobs:
env:
BASE64_CCIP_CONFIG_OVERRIDE: ${{ steps.set_override_config.outputs.base_64_override }}
TEST_BASE64_CCIP_CONFIG_OVERRIDE: ${{ steps.set_override_config.outputs.base_64_override }}
# uncomment this later for next release
# ENV_JOB_IMAGE: ${{ env.ENV_JOB_IMAGE_BASE }}:${{ env.RELEASE_SHA }}
# for now we run test with a specific test image pertaining to previous release with some added fixes
# this image use 1.2 ramps instead of incompatible 1.5-dev ramps from offchain v2.10.0-ccip1.4-release
ENV_JOB_IMAGE: ${{ env.ENV_JOB_IMAGE_BASE }}:release-v2.10.0-ccip1.4
ENV_JOB_IMAGE: ${{ env.ENV_JOB_IMAGE_BASE }}:${{ github.sha }}
TEST_SUITE: smoke
TEST_ARGS: -test.timeout 30m
TEST_LOG_LEVEL: info
Expand Down Expand Up @@ -317,7 +299,7 @@ jobs:
pull-requests: write
id-token: write
contents: read
needs: [ build-chainlink, changes, build-test-image-current-sha, run-test-with-last-release ]
needs: [ build-chainlink, changes, build-test-image, run-test-with-last-release ]
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
name: Changeset

on: pull_request
on:

jobs:
changeset:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,13 @@ jobs:
file: ccip
dir: ccip-tests/smoke
run: -run ^TestSmokeCCIPForBidirectionalLane$
- name: ccip-smoke-1.4-pools
nodes: 1
os: ubuntu-latest
file: ccip
dir: ccip-tests/smoke
run: -run ^TestSmokeCCIPForBidirectionalLane$
config_path: ./integration-tests/ccip-tests/testconfig/tomls/contract-version1.4.toml
- name: ccip-smoke-usdc
nodes: 1
os: ubuntu-latest
Expand Down Expand Up @@ -714,7 +721,7 @@ jobs:
SELECTED_NETWORKS: SIMULATED,SIMULATED_1,SIMULATED_2
CHAINLINK_COMMIT_SHA: ${{ inputs.evm-ref || github.sha }}
CHAINLINK_ENV_USER: ${{ github.actor }}
CHAINLINK_IMAGE: public.ecr.aws/chainlink/chainlink
CHAINLINK_IMAGE: public.ecr.aws/w0i8p0z9/chainlink-ccip
UPGRADE_VERSION: ${{ inputs.evm-ref || github.sha }}
UPGRADE_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink
TEST_LOG_LEVEL: debug
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/solidity-wrappers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
uses: smartcontractkit/.github/actions/setup-github-token@ef78fa97bf3c77de6563db1175422703e9e6674f # [email protected]
id: get-gh-token
with:
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_CI_AUTO_PR_TOKEN_ISSUER_ROLE_ARN }}
aws-role-arn: ${{ secrets.AWS_OIDC_CCIP_CI_AUTO_PR_TOKEN_ISSUER_ROLE_ARN }}
aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }}
aws-region: ${{ secrets.AWS_REGION }}

Expand Down
7 changes: 6 additions & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,14 @@ flake.lock @smartcontractkit/prodsec-public
/core/ @smartcontractkit/ccip
/contracts/ @smartcontractkit/ccip-onchain @makramkd @elatoskinas @RayXpub

# leave snapshots & changeset as ownerless
/contracts/gas-snapshots/
/contracts/.changeset/

# CCIP LM
/core/services/ocr2/plugins/liquiditymanager/ @smartcontractkit/liquidity-manager
/core/**/liquiditymanager/ @smartcontractkit/liquidity-manager
/core/services/relay/evm/liquidity_manager.go @smartcontractkit/liquidity-manager
/contracts/**/liquiditymanager/ @smartcontractkit/liquidity-manager

# CCIP ARM
/contracts/src/v0.8/ccip/RMN.sol @smartcontractkit/rmn
Expand Down
5 changes: 5 additions & 0 deletions contracts/.changeset/flat-bikes-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/contracts-ccip': patch
---

add LM event to receive() function
5 changes: 5 additions & 0 deletions contracts/.changeset/gentle-spoons-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/contracts-ccip': minor
---

#changed MultiOffRamp contract size optimizations
5 changes: 5 additions & 0 deletions contracts/.changeset/tall-toys-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@chainlink/contracts-ccip": minor
---

remove nops and weights logic from multi onramp
Loading

0 comments on commit 7733387

Please sign in to comment.