Skip to content

Commit

Permalink
Merge branch 'workflow-registry-contract-draft' into cappl-2222/secre…
Browse files Browse the repository at this point in the history
…ts-syncer
  • Loading branch information
MStreet3 committed Nov 10, 2024
2 parents e2c0e25 + 40023d2 commit c2eee53
Show file tree
Hide file tree
Showing 570 changed files with 24,790 additions and 16,555 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-frogs-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": minor
---

update plugin and evm chainwriter to remove evmConfig dependency #updated
105 changes: 105 additions & 0 deletions .changeset/changelog-generator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
/*
* Based off of https://github.com/changesets/changesets/blob/7323704dff6e76f488370db384579b86c95c866f/packages/changelog-github/src/index.ts
*/

const ghInfo = require("@changesets/get-github-info");

const getDependencyReleaseLine = async (changesets, dependenciesUpdated, options) => {
if (dependenciesUpdated.length === 0) return "";
if (!options || !options.repo) {
throw new Error(
'Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]'
);
}

const changesetLink = `- Updated dependencies [${(
await Promise.all(
changesets.map(async (cs) => {
if (cs.commit) {
let { links } = await ghInfo.getInfo({
repo: options.repo,
commit: cs.commit,
});
return links.commit;
}
})
)
)
.filter((_) => _)
.join(", ")}]:`;


const updatedDepsList = dependenciesUpdated.map(
(dependency) => ` - ${dependency.name}@${dependency.newVersion}`
);

return [changesetLink, ...updatedDepsList].join("\n");
};

const getReleaseLine = async (changeset, _, options) => {
if (!options || !options.repo) {
throw new Error(
'Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]'
);
}

let prFromSummary;
let commitFromSummary;

const replacedChangelog = changeset.summary
.replace(/^\s*(?:pr|pull|pull\s+request):\s*#?(\d+)/im, (_, pr) => {
let num = Number(pr);
if (!isNaN(num)) prFromSummary = num;
return "";
})
.replace(/^\s*commit:\s*([^\s]+)/im, (_, commit) => {
commitFromSummary = commit;
return "";
})
.trim();

const [firstLine, ...futureLines] = replacedChangelog
.split("\n")
.map((l) => l.trimRight());

const links = await (async () => {
if (prFromSummary !== undefined) {
let { links } = await ghInfo.getInfoFromPullRequest({
repo: options.repo,
pull: prFromSummary,
});
if (commitFromSummary) {
const shortCommitId = commitFromSummary.slice(0, 7);
links = {
...links,
commit: `[\`${shortCommitId}\`](https://github.com/${options.repo}/commit/${commitFromSummary})`,
};
}
return links;
}
const commitToFetchFrom = commitFromSummary || changeset.commit;
if (commitToFetchFrom) {
let { links } = await ghInfo.getInfo({
repo: options.repo,
commit: commitToFetchFrom,
});
return links;
}
return {
commit: null,
pull: null,
user: null,
};
})();

const prefix = [
links.pull === null ? "" : ` ${links.pull}`,
links.commit === null ? "" : ` ${links.commit}`,
].join("");

return `\n\n-${prefix ? `${prefix} -` : ""} ${firstLine}\n${futureLines
.map((l) => ` ${l}`)
.join("\n")}`;
};

module.exports = { getReleaseLine, getDependencyReleaseLine };
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": [
"@changesets/changelog-github",
"./changelog-generator.js",
{
"repo": "smartcontractkit/chainlink"
}
Expand Down
5 changes: 5 additions & 0 deletions .changeset/cool-feet-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

Ensure RPCClient with enabled polling respects health check flag #internal
5 changes: 5 additions & 0 deletions .changeset/famous-ligers-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

Set `NodePool.EnforceRepeatableRead = true` by default for all chains. This forces Core to stop using RPCs behind on the latest finalized block. #changed #nops
5 changes: 5 additions & 0 deletions .changeset/good-roses-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": minor
---

#internal Fix Contract Reader data word index calculation and change ccip contract reader config for more optimal querying.
5 changes: 5 additions & 0 deletions .changeset/great-spiders-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

Fixed outdated headtracker config doc. #internal
5 changes: 0 additions & 5 deletions .changeset/green-crabs-joke.md

This file was deleted.

7 changes: 7 additions & 0 deletions .changeset/honest-bugs-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"chainlink": minor
---

#updated
update ethkeys, ethtransactions to handle duplicate chain id in different network
introduce network arg input to Chain graphql query to allow better lookup based on network and chain id
5 changes: 5 additions & 0 deletions .changeset/hot-pants-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

Minor fixes to the CCIPChainReader enabling proper serialization #internal
5 changes: 5 additions & 0 deletions .changeset/neat-singers-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": minor
---

Added multiple blocks history estimator feature and config for Solana TXM. #added
6 changes: 6 additions & 0 deletions .changeset/rotten-timers-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"chainlink": minor
---

Support multiple chains evm clients for TXM gas estimator to fetch L1 gas oracle
#added
5 changes: 5 additions & 0 deletions .changeset/short-gifts-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

use last mined nonce instead of pending nonce to recover from occasional nonce gap issues within nonce tracker. #internal
5 changes: 5 additions & 0 deletions .changeset/six-wombats-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

CCIP token transfer integration tests #internal
5 changes: 5 additions & 0 deletions .changeset/small-gifts-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#updated Operator UI to support StreamSpec job definition
5 changes: 5 additions & 0 deletions .changeset/strange-radios-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

Merge raw configs correctly #bugfix
5 changes: 5 additions & 0 deletions .changeset/tasty-years-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

Modify release changelog generation format #internal
5 changes: 5 additions & 0 deletions .changeset/tender-colts-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#updated celo alfajores config
5 changes: 5 additions & 0 deletions .changeset/thick-chefs-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

Enable AutoPurge feature on all affected chains #nops
5 changes: 5 additions & 0 deletions .changeset/tricky-candles-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#bugfix Memory leak fix on promwrapper
6 changes: 5 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Root
* @smartcontractkit/foundations @smartcontractkit/core

.changeset @smartcontractkit/releng @smartcontractkit/foundations @smartcontractkit/core
.changeset @smartcontractkit/foundations @smartcontractkit/core

# Chains
/common @smartcontractkit/bix-framework @smartcontractkit/core
Expand Down Expand Up @@ -35,6 +35,10 @@
/core/services/ccip @smartcontractkit/ccip
/core/services/ocr2/plugins/ccip @smartcontractkit/ccip

# CCIP
/core/services/ccip @smartcontractkit/ccip
/core/services/ocr2/plugins/ccip @smartcontractkit/ccip

# VRF-related services
/core/services/vrf @smartcontractkit/dev-services @smartcontractkit/core
/core/services/blockhashstore @smartcontractkit/dev-services @smartcontractkit/core
Expand Down
7 changes: 4 additions & 3 deletions .github/actions/goreleaser-build-sign-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ runs:
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- name: Setup docker buildx
uses: docker/setup-buildx-action@2b51285047da1547ffb1b2203d8be4c0af6b1f20 # v3.2.0
- name: Setup go
uses: actions/setup-go@v5.0.2
- name: Set up Go
uses: ./.github/actions/setup-go
with:
go-version-file: "go.mod"
go-version-file: 'go.mod'
only-modules: 'true'
- name: Setup goreleaser
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
Expand Down
30 changes: 27 additions & 3 deletions .github/actions/setup-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ inputs:
cache-version:
description: Set this to cache bust
default: "1"
build-cache-version:
description: For scoping build caches to certain matrix jobs, takes precedence over cache-version
default: ""
go-version-file:
description: Set where the go version file is located at
default: "go.mod"
Expand All @@ -18,6 +21,10 @@ inputs:
Only restore the module cache, don't automatically update it.
Leave the updating to go-mod-cache.yml.
default: "true"
restore-build-cache-only:
description: |
Only restore the build cache, don't automatically update/upload it.
default: "false"

runs:
using: composite
Expand Down Expand Up @@ -75,14 +82,31 @@ runs:
restore-keys: |
${{ runner.os }}-gomod-${{ inputs.cache-version }}-
- uses: actions/cache/restore@v4.1.1
name: Cache Go Build Outputs (restore)
# For certain events, we don't necessarily want to create a build cache, but we will benefit from restoring from one.
if: ${{ inputs.only-modules == 'false' && (github.event_name == 'merge_group' || inputs.restore-build-cache-only == 'true') }}
with:
path: |
${{ steps.go-cache-dir.outputs.gobuildcache }}
key: ${{ runner.os }}-gobuild-${{ inputs.build-cache-version || inputs.cache-version }}-${{ hashFiles(steps.go-module-path.outputs.path) }}-${{ steps.branch-name.outputs.current_branch }}
restore-keys: |
${{ runner.os }}-gobuild-${{ inputs.build-cache-version || inputs.cache-version }}-${{ hashFiles(steps.go-module-path.outputs.path) }}-develop
${{ runner.os }}-gobuild-${{ inputs.build-cache-version || inputs.cache-version }}-${{ hashFiles(steps.go-module-path.outputs.path) }}-
${{ runner.os }}-gobuild-${{ inputs.build-cache-version || inputs.cache-version }}-
${{ runner.os }}-gobuild-${{ inputs.cache-version }}-
- uses: actions/cache@v4.1.1
if: ${{ inputs.only-modules == 'false' }}
# don't save cache on merge queue events
if: ${{ inputs.only-modules == 'false' && (github.event_name != 'merge_group' && inputs.restore-build-cache-only == 'false') }}
name: Cache Go Build Outputs
with:
path: |
${{ steps.go-cache-dir.outputs.gobuildcache }}
# The lifetime of go build outputs is pretty short, so we make our primary cache key be the branch name
key: ${{ runner.os }}-gobuild-${{ inputs.cache-version }}-${{ hashFiles(steps.go-module-path.output.path) }}-${{ steps.branch-name.outputs.current_branch }}
key: ${{ runner.os }}-gobuild-${{ inputs.build-cache-version || inputs.cache-version }}-${{ hashFiles(steps.go-module-path.outputs.path) }}-${{ steps.branch-name.outputs.current_branch }}
restore-keys: |
${{ runner.os }}-gobuild-${{ inputs.cache-version }}-${{ hashFiles(steps.go-module-path.output.path) }}-
${{ runner.os }}-gobuild-${{ inputs.build-cache-version || inputs.cache-version }}-${{ hashFiles(steps.go-module-path.outputs.path) }}-develop
${{ runner.os }}-gobuild-${{ inputs.build-cache-version || inputs.cache-version }}-${{ hashFiles(steps.go-module-path.outputs.path) }}-
${{ runner.os }}-gobuild-${{ inputs.build-cache-version || inputs.cache-version }}-
${{ runner.os }}-gobuild-${{ inputs.cache-version }}-
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- https://github.com/smartcontractkit/chainlink-common/pull/7777777
-->

### Resolves
### Supports
<!--- Does this work support other open PRs? Please list them.
- https://github.com/smartcontractkit/ccip/pull/7777777
-->
4 changes: 2 additions & 2 deletions .github/workflows/build-publish-develop-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:

- uses: actions/cache/restore@v4
with:
path: dist/linux_arm64
path: dist/linux_arm64_v8.0
key: chainlink-arm64-${{ github.sha }}
fail-on-cache-miss: true

Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:

- runner: ubuntu-24.04-4cores-16GB-ARM
goarch: arm64
dist_name: linux_arm64
dist_name: linux_arm64_v8.0
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-publish-goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:

- uses: actions/cache/restore@v4
with:
path: dist/linux_arm64
path: dist/linux_arm64_v8.0
key: chainlink-arm64-${{ github.sha }}-${{ github.ref_name }}
fail-on-cache-miss: true

Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:

- runner: ubuntu-24.04-4cores-16GB-ARM
goarch: arm64
dist_name: linux_arm64
dist_name: linux_arm64_v8.0
environment: build-publish
permissions:
id-token: write
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.1
with:
fetch-depth: 0

- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: files-changed
Expand All @@ -52,7 +54,7 @@ jobs:
- '!core/chainlink.Dockerfile'
- '!core/gethwrappers/**'
core-changeset:
- added: '.changeset/**'
- added: '.changeset/*.md'
- name: Check for changeset tags for core
id: changeset-tags
Expand Down
Loading

0 comments on commit c2eee53

Please sign in to comment.