-
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 task/CAPPL-67/custom-compute-beholder
- Loading branch information
Showing
227 changed files
with
8,151 additions
and
6,328 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,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 }; |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": [ | ||
"@changesets/changelog-github", | ||
"./changelog-generator.js", | ||
{ | ||
"repo": "smartcontractkit/chainlink" | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
--- | ||
"chainlink": minor | ||
--- | ||
|
||
Support multiple chains evm clients for TXM gas estimator to fetch L1 gas oracle | ||
#added |
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": patch | ||
--- | ||
|
||
use last mined nonce instead of pending nonce to recover from occasional nonce gap issues within nonce tracker. #internal |
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": patch | ||
--- | ||
|
||
Modify release changelog generation format #internal |
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": patch | ||
--- | ||
|
||
#bugfix Memory leak fix on promwrapper |
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 |
---|---|---|
|
@@ -21,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 | ||
|
@@ -81,7 +85,7 @@ runs: | |
- uses: actions/cache/[email protected] | ||
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 == 'merge_group' }} | ||
if: ${{ inputs.only-modules == 'false' && (github.event == 'merge_group' || inputs.restore-build-cache-only == 'true') }} | ||
with: | ||
path: | | ||
${{ steps.go-cache-dir.outputs.gobuildcache }} | ||
|
@@ -93,8 +97,8 @@ runs: | |
${{ runner.os }}-gobuild-${{ inputs.cache-version }}- | ||
- uses: actions/[email protected] | ||
# don't save cache on merge queue events, only restore | ||
if: ${{ inputs.only-modules == 'false' && github.event != 'merge_group' }} | ||
# don't save cache on merge queue events | ||
if: ${{ inputs.only-modules == 'false' && (github.event != 'merge_group' && inputs.restore-build-cache-only == 'false') }} | ||
name: Cache Go Build Outputs | ||
with: | ||
path: | | ||
|
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,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 | ||
|
||
|
@@ -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/[email protected] | ||
|
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 |
---|---|---|
|
@@ -30,6 +30,8 @@ jobs: | |
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | ||
id: files-changed | ||
|
@@ -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 | ||
|
Oops, something went wrong.