-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix_configs
- Loading branch information
Showing
34 changed files
with
539 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"chainlink": minor | ||
--- | ||
|
||
Validate user email before asking for a password in the chainlink CLI. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,48 @@ jobs: | |
dockerhub_password: ${{ secrets.DOCKERHUB_READONLY_PASSWORD }} | ||
git-commit-sha: ${{ steps.git-ref.outputs.checked-out || github.sha }} | ||
|
||
- name: Setup GAP | ||
# Don't run for plugins. | ||
if: matrix.image.name == '' | ||
uses: smartcontractkit/.github/actions/setup-gap@1bc7ce34fa81fffcb4a6eb0e4e12e59d94d0fc8f # [email protected] | ||
with: | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
aws-role-arn: ${{ secrets.AWS_OIDC_CRIB_ROLE_ARN_SAND }} | ||
api-gateway-host: ${{ secrets.AWS_API_GW_HOST_K8S_SAND }} | ||
use-k8s: "true" | ||
k8s-cluster-name: ${{ secrets.AWS_EKS_CLUSTER_NAME_SAND }} | ||
use-private-ecr-registry: true | ||
ecr-private-registry: ${{ secrets.AWS_ACCOUNT_ID_PROD }} | ||
metrics-job-name: push-chainlink-develop ${{ matrix.image.name }} | ||
gc-host: ${{ secrets.GRAFANA_INTERNAL_HOST }} | ||
gc-basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }} | ||
gc-org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }} | ||
|
||
# A mutable image tag is used for these CRIBs and it was just built/published | ||
# from this workflow. The deployment has an `imagePullPolicy: Always` set, so | ||
# we need to restart the deployments to pick up the new image. | ||
- name: Restart K8s Deployments for CRIBs | ||
# Don't run for plugins. | ||
if: matrix.image.name == '' | ||
shell: bash | ||
run: | | ||
set -euo pipefail | ||
# Removes the "smartcontractkit/" (org name) prefix. | ||
REPO_NAME_ONLY="${GITHUB_REPOSITORY##*/}" | ||
K8S_NAMESPACE="crib-${REPO_NAME_ONLY}-develop" | ||
deployment_node_names=$(kubectl --namespace "${K8S_NAMESPACE}" \ | ||
get deployments \ | ||
-l "app=${K8S_NAMESPACE}" \ | ||
-o custom-columns=:metadata.name --no-headers) | ||
IFS=$'\n' read -r -d '' -a deployment_names_arr <<< "$deployment_node_names" || : | ||
for name in "${deployment_names_arr[@]}"; do | ||
echo "Restarting deployment: $name" | ||
kubectl --namespace "${K8S_NAMESPACE}" \ | ||
rollout restart "deployment/${name}" | ||
done | ||
- name: Collect Metrics | ||
if: always() | ||
id: collect-gha-metrics | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,6 +154,9 @@ jobs: | |
run: | | ||
echo "TIMEOUT=10m" >> $GITHUB_ENV | ||
echo "COUNT=50" >> $GITHUB_ENV | ||
- name: Install gotestloghelper | ||
if: ${{ needs.filter.outputs.changes == 'true' }} | ||
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/[email protected] | ||
- name: Run tests | ||
if: ${{ needs.filter.outputs.changes == 'true' }} | ||
id: run-tests | ||
|
@@ -163,10 +166,8 @@ jobs: | |
run: ./tools/bin/${{ matrix.type.cmd }} ./... | ||
- name: Print Filtered Test Results | ||
if: ${{ failure() && matrix.type.cmd == 'go_core_tests' && needs.filter.outputs.changes == 'true' }} | ||
uses: smartcontractkit/chainlink-github-actions/go/go-test-results-parsing@7882cf348cd6a1f6bcf1ee8280185584ebba96e9 # v2.3.10 | ||
with: | ||
results-file: ./output.txt | ||
output-file: ./output-short.txt | ||
run: | | ||
cat output.txt | gotestloghelper -ci | ||
- name: Print Races | ||
if: ${{ failure() && matrix.type.cmd == 'go_core_race_tests' && needs.filter.outputs.changes == 'true' }} | ||
run: find race.* | xargs cat | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# | ||
# This action creates or updates a Release Preview PR that shows which changes are going to be part of the next release | ||
# when a PR is merged into develop branch | ||
# | ||
|
||
name: Release Preview - Changeset | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
cicd-changesets: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
steps: | ||
- name: cicd-changesets | ||
uses: smartcontractkit/.github/actions/cicd-changesets@6da79c7b9f14bec077df2c1ad40d53823b409d9c # [email protected] | ||
with: | ||
# general inputs | ||
git-user: app-token-issuer-releng[bot] | ||
git-email: app-token-issuer-releng[bot]@users.noreply.github.com | ||
pnpm-use-cache: false | ||
pr-draft: true | ||
pr-title: "[DO NOT MERGE] Release Preview - Changeset" | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_CI_AUTO_PR_TOKEN_ISSUER_ROLE_ARN }} | ||
aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }} | ||
# grafana inputs | ||
gc-basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }} | ||
gc-host: ${{ secrets.GRAFANA_INTERNAL_HOST }} | ||
gc-org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.