Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/aptos-ccip-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ jobs:
run: |
go build -o chainlink-aptos ./cmd/chainlink-aptos/main.go

# Clear up disk space, else we run out below:
# Unhandled exception. System.IO.IOException: No space left on device : '/home/runner/actions-runner/cached/_diag/Worker_20250801-102100-utc.log'
- name: Free up disk space
run: |
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
df -h

- name: Start PostgreSQL
run: |
docker run -d \
Expand Down
184 changes: 92 additions & 92 deletions .github/workflows/aptos-run-smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,58 +23,58 @@ jobs:
DEFAULT_CORE_REF: aptos-init
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Get core ref from PR body
if: github.event_name == 'pull_request'
run: |
comment=$(echo "${{ github.event.pull_request.body }}")
core_ref=$(echo $comment | grep -oP 'core ref: \K\S+' || true)
if [ ! -z "$core_ref" ]; then
echo "CUSTOM_CORE_REF=${core_ref}" >> "${GITHUB_ENV}"
fi

- name: Checkout chainlink repo
uses: actions/checkout@v4
with:
repository: smartcontractkit/chainlink
ref: ${{ env.CUSTOM_CORE_REF || env.DEFAULT_CORE_REF }}
path: temp/chainlink

- name: Build chainlink image
working-directory: temp/chainlink
run: |
docker buildx build --build-arg COMMIT_SHA=$(git rev-parse HEAD) -t local_chainlink -f plugins/chainlink.Dockerfile .

- name: Build chainlink-aptos image
run: |
docker buildx build --build-arg BASE_IMAGE=local_chainlink -t chainlink-aptos -f ./Dockerfile .

# Clear up disk space, else we run out below:
# Unhandled exception. System.IO.IOException: No space left on device : '/home/runner/actions-runner/cached/_diag/Worker_20250801-102100-utc.log'
- name: Flatten chainlink-aptos image
run: |
set -e
df -h
docker save chainlink-aptos:latest -o chainlink-aptos.tar
docker system prune -a -f
docker load -i chainlink-aptos.tar
rm -vf chainlink-aptos.tar
df -h

- name: Extract Go version
uses: ./.github/actions/check-go-version
id: go-version

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.go_version }}

- name: Create env file
working-directory: ./
run: |
- name: Checkout code
uses: actions/checkout@v4

- name: Get core ref from PR body
if: github.event_name == 'pull_request'
run: |
comment=$(echo "${{ github.event.pull_request.body }}")
core_ref=$(echo $comment | grep -oP 'core ref: \K\S+' || true)
if [ ! -z "$core_ref" ]; then
echo "CUSTOM_CORE_REF=${core_ref}" >> "${GITHUB_ENV}"
fi

- name: Checkout chainlink repo
uses: actions/checkout@v4
with:
repository: smartcontractkit/chainlink
ref: ${{ env.CUSTOM_CORE_REF || env.DEFAULT_CORE_REF }}
path: temp/chainlink

- name: Build chainlink image
working-directory: temp/chainlink
run: |
docker buildx build --build-arg COMMIT_SHA=$(git rev-parse HEAD) -t local_chainlink -f plugins/chainlink.Dockerfile .

- name: Build chainlink-aptos image
run: |
docker buildx build --build-arg BASE_IMAGE=local_chainlink -t chainlink-aptos -f ./Dockerfile .

# Clear up disk space, else we run out below:
# Unhandled exception. System.IO.IOException: No space left on device : '/home/runner/actions-runner/cached/_diag/Worker_20250801-102100-utc.log'
- name: Flatten chainlink-aptos image
run: |
set -e
df -h
docker save chainlink-aptos:latest -o chainlink-aptos.tar
docker system prune -a -f
docker load -i chainlink-aptos.tar
rm -vf chainlink-aptos.tar
df -h

- name: Extract Go version
uses: ./.github/actions/check-go-version
id: go-version

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.go_version }}

- name: Create env file
working-directory: ./
run: |
cat <<EOT >> .env
# Postgres config
POSTGRES_IMAGE=postgres:15.2-alpine
Expand Down Expand Up @@ -105,43 +105,43 @@ jobs:
CORE_P2P_PORT=6690
EOT

- name: Run Smoke Integration Test
env:
TEST_LOG_LEVEL: debug
run: |
set -e
cd integration-tests
# TODO: remove if scripts get fixed, see https://github.com/smartcontractkit/chainlink/commit/71f72665217bc17325c27109c107fb93b96e2607
echo "replace github.com/smartcontractkit/chainlink/core/scripts => ../temp/chainlink/core/scripts" >> go.mod
echo "replace github.com/smartcontractkit/chainlink/v2 => ../temp/chainlink" >> go.mod
go mod tidy
TEST_LOG_LEVEL=${{env.TEST_LOG_LEVEL}} go test -timeout 24h -count=1 -run TestOCR3Keystone ./smoke

- name: Configure AWS Credentials
if: success()
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
with:
aws-region: ${{ secrets.QA_AWS_REGION }}
role-to-assume: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
role-duration-seconds: 3600
mask-aws-account-id: true

- name: Login to Amazon ECR
if: success()
id: login-ecr
uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1
with:
mask-password: "true"

- name: Push Image to ECR
if: success()
run: |
docker tag chainlink-aptos ${{ env.CL_ECR }}:aptos.${{ github.sha }}
docker push ${{ env.CL_ECR }}:aptos.${{ github.sha }}

- name: Upload Test Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: smoke-test-logs
path: ./integration-tests/logs/
- name: Run Smoke Integration Test
env:
TEST_LOG_LEVEL: debug
run: |
set -e
cd integration-tests
# TODO: remove if scripts get fixed, see https://github.com/smartcontractkit/chainlink/commit/71f72665217bc17325c27109c107fb93b96e2607
echo "replace github.com/smartcontractkit/chainlink/core/scripts => ../temp/chainlink/core/scripts" >> go.mod
echo "replace github.com/smartcontractkit/chainlink/v2 => ../temp/chainlink" >> go.mod
go mod tidy
TEST_LOG_LEVEL=${{env.TEST_LOG_LEVEL}} go test -timeout 24h -count=1 -run TestOCR3Keystone ./smoke

- name: Configure AWS Credentials
if: success()
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
with:
aws-region: ${{ secrets.QA_AWS_REGION }}
role-to-assume: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }}
role-duration-seconds: 3600
mask-aws-account-id: true

- name: Login to Amazon ECR
if: success()
id: login-ecr
uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2.0.1
with:
mask-password: "true"

- name: Push Image to ECR
if: success()
run: |
docker tag chainlink-aptos ${{ env.CL_ECR }}:aptos.${{ github.sha }}
docker push ${{ env.CL_ECR }}:aptos.${{ github.sha }}

- name: Upload Test Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: smoke-test-logs
path: ./integration-tests/logs/
35 changes: 35 additions & 0 deletions bindings/ccip/receiver_registry/receiver_registry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading