Skip to content

Commit

Permalink
Merge branch 'develop' into add-coordinatorv2_5_mock
Browse files Browse the repository at this point in the history
  • Loading branch information
leeyikjiun authored May 2, 2024
2 parents 31331a7 + 841fe61 commit 7963274
Show file tree
Hide file tree
Showing 576 changed files with 25,038 additions and 10,978 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-queens-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#internal Keystone - rename type -> id
5 changes: 0 additions & 5 deletions .changeset/brown-penguins-grin.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/chilled-bikes-unite.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cyan-crabs-explode.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/empty-tomatoes-yawn.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/flat-guests-marry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/forty-feet-train.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/four-shoes-trade.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fresh-lizards-love.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gold-bottles-tell.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/great-rockets-obey.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hot-dryers-flash.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/hungry-ways-add.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/kind-deers-leave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/loud-peaches-beg.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lucky-ghosts-give.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lucky-windows-taste.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/many-pillows-reflect.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/new-forks-grab.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/odd-horses-fix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/orange-squids-kick.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/plenty-wombats-grab.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/poor-masks-fold.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/poor-socks-travel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pretty-flies-fold.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/real-numbers-taste.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rich-jars-flow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silver-otters-play.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/soft-hotels-decide.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/stale-terms-march.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sweet-sloths-laugh.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/swift-horses-unite.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ten-clouds-collect.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tender-crews-jam.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/weak-emus-reply.md

This file was deleted.

10 changes: 0 additions & 10 deletions .ct.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/actions/build-chainlink-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ runs:
AWS_ROLE_TO_ASSUME: ${{ inputs.AWS_ROLE_TO_ASSUME }}
- name: Build Image
if: steps.check-image.outputs.exists != 'true'
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/build-image@5dd916d08c03cb5f9a97304f4f174820421bb946 # v2.3.11
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/build-image@519851800779323566b7b7c22cc21bff95dbb639 # v2.3.14
with:
cl_repo: smartcontractkit/chainlink
cl_ref: ${{ inputs.git_commit_sha }}
cl_dockerfile: ${{ inputs.dockerfile }}
push_tag: ${{ env.CHAINLINK_IMAGE }}:${{ inputs.git_commit_sha }}${{ inputs.tag_suffix }}
QA_AWS_REGION: ${{ inputs.AWS_REGION }}
QA_AWS_ROLE_TO_ASSUME: ${{ inputs.AWS_ROLE_TO_ASSUME }}
GO_COVER_FLAG: true
dep_evm_sha: ${{ inputs.dep_evm_sha }}
- name: Print Chainlink Image Built
shell: sh
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/golangci-lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inputs:
required: true
name:
description: Name of the lint action
default: lint
required: true
go-directory:
description: Go directory to run commands from
default: "."
Expand Down
50 changes: 50 additions & 0 deletions .github/actions/setup-create-base64-upgrade-config/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@ inputs:
default: "public.ecr.aws/chainlink/chainlink"
upgradeVersion:
description: The git commit sha to use for the image tag
runId:
description: The run id
testLogCollect:
description: Whether to always collect logs, even for passing tests
default: "false"
lokiEndpoint:
description: Loki push endpoint
lokiTenantId:
description: Loki tenant id
lokiBasicAuth:
description: Loki basic auth
logstreamLogTargets:
description: Where to send logs (e.g. file, loki)
grafanaUrl:
description: Grafana URL
grafanaDashboardUrl:
description: Grafana dashboard URL

runs:
using: composite
Expand All @@ -31,6 +48,14 @@ runs:
CHAINLINK_POSTGRES_VERSION: ${{ inputs.chainlinkPostgresVersion }}
UPGRADE_IMAGE: ${{ inputs.upgradeImage }}
UPGRADE_VERSION: ${{ inputs.upgradeVersion }}
RUN_ID: ${{ inputs.runId }}
TEST_LOG_COLLECT: ${{ inputs.testLogCollect }}
LOKI_ENDPOINT: ${{ inputs.lokiEndpoint }}
LOKI_TENANT_ID: ${{ inputs.lokiTenantId }}
LOKI_BASIC_AUTH: ${{ inputs.lokiBasicAuth }}
LOGSTREAM_LOG_TARGETS: ${{ inputs.logstreamLogTargets }}
GRAFANA_URL: ${{ inputs.grafanaUrl }}
GRAFANA_DASHBOARD_URL: ${{ inputs.grafanaDashboardUrl }}
run: |
function convert_to_toml_array() {
local IFS=','
Expand All @@ -47,6 +72,14 @@ runs:
selected_networks=$(convert_to_toml_array "$SELECTED_NETWORKS")
if [ -n "$TEST_LOG_COLLECT" ]; then
test_log_collect=true
else
test_log_collect=false
fi
log_targets=$(convert_to_toml_array "$LOGSTREAM_LOG_TARGETS")
cat << EOF > config.toml
[Network]
selected_networks=$selected_networks
Expand All @@ -59,6 +92,23 @@ runs:
[ChainlinkUpgradeImage]
image="$UPGRADE_IMAGE"
version="$UPGRADE_VERSION"
postgres_version="$CHAINLINK_POSTGRES_VERSION"
[Logging]
test_log_collect=$test_log_collect
run_id="$RUN_ID"
[Logging.LogStream]
log_targets=$log_targets
[Logging.Loki]
tenant_id="$LOKI_TENANT_ID"
endpoint="$LOKI_ENDPOINT"
basic_auth_secret="$LOKI_BASIC_AUTH"
[Logging.Grafana]
base_url="$GRAFANA_URL"
dashboard_url="$GRAFANA_DASHBOARD_URL"
EOF
BASE64_CONFIG_OVERRIDE=$(cat config.toml | base64 -w 0)
Expand Down
8 changes: 8 additions & 0 deletions .github/scripts/check-changeset-tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ if [[ ! -f "$CHANGESET_FILE_PATH" ]]; then
exit 1
fi

changeset_content=$(sed -n '/^---$/,/^---$/{ /^---$/!p; }' $CHANGESET_FILE_PATH)
semvar_value=$(echo "$changeset_content" | awk -F": " '/"chainlink"/ {print $2}')

if [[ "$semvar_value" != "major" && "$semvar_value" != "minor" && "$semvar_value" != "patch" ]]; then
echo "Invalid changeset semvar value for 'chainlink'. Must be 'major', 'minor', or 'patch'."
exit 1
fi

while IFS= read -r line; do
for tag in "${tags_list[@]}"; do
if [[ "$line" == *"$tag"* ]]; then
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/automation-nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ jobs:
chainlinkVersion: "latest"
upgradeImage: ${{ env.CHAINLINK_IMAGE }}
upgradeVersion: ${{ github.sha }}
runId: ${{ github.run_id }}
testLogCollect: "true"
lokiEndpoint: https://${{ secrets.GRAFANA_INTERNAL_HOST }}/loki/api/v1/push
lokiTenantId: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }}
lokiBasicAuth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
logstreamLogTargets: ${{ vars.LOGSTREAM_LOG_TARGETS }}
grafanaUrl: ${{ vars.GRAFANA_URL }}
grafanaDashboardUrl: "/d/ddf75041-1e39-42af-aa46-361fe4c36e9e/ci-e2e-tests-logs"
- name: Run Tests
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/run-tests@5dd916d08c03cb5f9a97304f4f174820421bb946 # v2.3.11
env:
Expand Down
Loading

0 comments on commit 7963274

Please sign in to comment.