Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release v1.19.0 #6854

Merged
merged 57 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
ab10788
chore: merge stable to unstable (#6703)
wemeetagain Apr 23, 2024
fd2fb16
chore: n-historical state - track state persist count per epoch (#6699)
twoeths Apr 23, 2024
2649a87
feat: add lodestar binaries to release (#6666)
jeluard Apr 24, 2024
97d9aa8
feat: switch bls to napi rebuild (#6616)
matthewkeil Apr 24, 2024
09e4b9c
chore: update references to consensus spec to v1.4.0 (#6704)
nflaig Apr 24, 2024
2fe9fca
chore: update consensus spec version in README (#6705)
nflaig Apr 25, 2024
aa17500
docs: correct plausible url (#6709)
jeluard Apr 25, 2024
a67b368
docs: incorrect scripts location (#6710)
jeluard Apr 25, 2024
de3988d
docs: no more broken images (#6708)
jeluard Apr 25, 2024
1a7ea75
feat: check aggregationBits length of `SignedAggregateAndProof` in go…
ensi321 Apr 26, 2024
e1bc926
feat: add and track blob source for metrics (#6628)
g11tech Apr 26, 2024
02e28cf
feat: add support for browser bundle for lightclient (#6673)
nazarhussain Apr 26, 2024
5bc27a0
docs: fix plausible domain (#6712)
jeluard Apr 26, 2024
e460bb1
ci: add paths-ignore to workflows (#6713)
jeluard Apr 26, 2024
766c8fd
feat: add arm64 binary support (#6707)
jeluard Apr 26, 2024
e17b744
ci: publish binaries for release candidates (#6714)
nflaig Apr 26, 2024
c9ff6e3
feat: add types support to esm bundle for lightclient (#6685)
nazarhussain Apr 30, 2024
473aeb0
chore: update vitest (#6718)
nazarhussain Apr 30, 2024
122a0f8
chore: do not build all binaries atomically (#6719)
jeluard Apr 30, 2024
a215ae2
feat: update libp2p deps (#6711)
wemeetagain May 1, 2024
f4f570f
chore(deps): bump ejs from 3.1.9 to 3.1.10 (#6721)
dependabot[bot] May 1, 2024
dbde1cb
chore: revert "ci: add paths-ignore to workflows (#6713)" (#6730)
nflaig May 3, 2024
6b26136
docs: restore docs pages lost during docusaurus migration (#6725)
nflaig May 3, 2024
8c55820
ci: fix incorrect build caching (#6731)
jeluard May 3, 2024
df6f52e
fix: build error log during esm bundle build (#6737)
nazarhussain May 6, 2024
4f2a627
chore: update fastify to v4.27.0 (#6740)
nflaig May 7, 2024
8e875c6
deps: upgrade vitest minor version (#6745)
nazarhussain May 8, 2024
ec108d7
chore: warn when heap limit is too low (#6722)
jeluard May 11, 2024
7e14c5e
feat: disable flood publish (#6755)
twoeths May 13, 2024
d0893ab
Merge branch 'stable' into unstable
wemeetagain May 13, 2024
c39b914
test: allow compact diff for test failures (#6783)
nazarhussain May 15, 2024
a6b10df
chore: upgrade classic-level (#6793)
jeluard May 16, 2024
bda2c20
feat(prover): support non-mutated verification provider in prover (#6…
nazarhussain May 21, 2024
992fdd4
docs: added debugging section (#6743)
jeluard May 22, 2024
3c5bb15
chore: review debugging section PR (#6807)
nflaig May 22, 2024
c635098
chore: update the naming conventions used in sim tests (#6805)
nazarhussain May 23, 2024
3121363
feat: recognize grandine from agentVersion (#6808)
ensi321 May 23, 2024
8ed9109
chore: refactor event loop interactions (#6806)
jeluard May 23, 2024
6c20dc2
chore: fix broken docker (#6813)
jeluard May 24, 2024
3471475
chore: log newPayload engine api (#6810)
twoeths May 24, 2024
7f63fab
chore: add `get_proposer_head` check in fork choice spec test (#6814)
ensi321 May 24, 2024
b439da2
chore: consolidate classic-level usage (#6795)
jeluard May 24, 2024
95ce044
chore: added docker support for osx (#6696)
jeluard May 24, 2024
4bf2585
chore: fix vitest performance with spec tests artifacts in place (#6817)
nazarhussain May 24, 2024
87bb83e
chore: clean up yarn lockfile (#6816)
nflaig May 24, 2024
794b9f1
feat: disable flood publish by default (#6815)
wemeetagain May 24, 2024
66fe753
feat: use @chainsafe/blst directly (#6706)
wemeetagain May 24, 2024
1831d47
fix: avoid Buffer.from copies (#6723)
wemeetagain May 24, 2024
deafa4f
chore: update nodejs to latest 22 (#6729)
nazarhussain May 24, 2024
8b6ecc4
deps: update systeminformation to 5.22.9 (#6823)
nflaig May 28, 2024
cb522bd
chore: add distutils to build phase of Dockerfile (#6845)
matthewkeil Jun 3, 2024
2b4c166
test: increase timeout of keystore tests (#6846)
nflaig Jun 3, 2024
519b05e
chore: only log warning if media type is not supported (415) (#6847)
nflaig Jun 3, 2024
cbb8946
fix: revert napi bls (#6853)
wemeetagain Jun 4, 2024
6c98744
chore: bump package versions to 1.19.0
wemeetagain Jun 4, 2024
347a452
chore: bump @chainsafe/blst to v0.2.11 (#6856)
wemeetagain Jun 5, 2024
c5b4c1c
fix: arm64 binaries creation issue (#6858)
jeluard Jun 5, 2024
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
2 changes: 2 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
{
"name": "Node.js & TypeScript",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
// Upgrade the container to Node 22
// https://github.com/ChainSafe/lodestar/issues/6742
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
"features": {
"ghcr.io/devcontainers/features/python:1": {}
Expand Down
9 changes: 8 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,14 @@ module.exports = {
},
overrides: [
{
files: ["**/*.config.js", "**/*.config.mjs", "**/*.config.cjs", "**/*.config.ts"],
files: [
"**/*.config.js",
"**/*.config.mjs",
"**/*.config.cjs",
"**/*.config.ts",
"scripts/vitest/**/*.ts",
"scripts/vite/**/*.ts",
],
rules: {
"@typescript-eslint/naming-convention": "off",
// Allow require in CJS modules
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/setup-and-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ runs:
lib/
packages/*/lib
packages/*/.git-data.json
key: ${{ runner.os }}-node-${{ inputs.node }}-${{ github.sha }}
key: ${{ runner.os }}-${{ runner.arch }}-node-${{ inputs.node }}-${{ github.sha }}

- name: Install & build
if: steps.cache-build-restore.outputs.cache-hit != 'true'
Expand All @@ -55,4 +55,4 @@ runs:
lib/
packages/*/lib
packages/*/.git-data.json
key: ${{ runner.os }}-node-${{ inputs.node }}-${{ github.sha }}
key: ${{ runner.os }}-${{ runner.arch }}-node-${{ inputs.node }}-${{ github.sha }}
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
check-latest: true
cache: yarn
- name: Node.js version
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Build binaries

on:
workflow_dispatch:
inputs:
version:
required: true
type: string
workflow_call:
inputs:
version:
required: true
type: string

jobs:
binaries:
name: Build lodestar binaries
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
platform: linux
arch: amd64
- os: lodestar-arm64-runner
platform: linux
arch: arm64
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Install arm64 specifics
if: matrix.arch == 'arm64'
run: |-
# Install missing yarn
# See https://github.com/github-early-access/arm-runners-beta/issues/5
curl -fsSL --create-dirs -o $HOME/bin/yarn \
https://github.com/yarnpkg/yarn/releases/download/v1.22.22/yarn-1.22.22.js
chmod +x $HOME/bin/yarn
echo "$HOME/bin" >> $GITHUB_PATH
# Install missing build-essential
sudo apt-get update
sudo apt-get install -y build-essential python3
- uses: "./.github/actions/setup-and-build"
with:
node: 22
- run: |
mkdir -p dist
yarn global add caxa@3.0.1
npx caxa -m "Unpacking Lodestar binary, please wait..." -e "dashboards/**" -e "docs/**" -D -p "yarn install --frozen-lockfile --production" --input . --output "lodestar" -- "{{caxa}}/node_modules/.bin/node" "--max-old-space-size=8192" "{{caxa}}/node_modules/.bin/lodestar"
tar -czf "dist/lodestar-${{ inputs.version }}-${{ matrix.platform }}-${{ matrix.arch }}.tar.gz" "lodestar"
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
name: binaries-${{ matrix.os }}
path: dist/
if-no-files-found: error
- name: Sanity check binary
uses: actions/github-script@v7
with:
script: |
exec.exec('./lodestar dev');
await new Promise(resolve => setTimeout(resolve, 30000));
const resp = await fetch('http://127.0.0.1:9596/eth/v1/node/version').catch(err => {
core.setFailed(`Error accessing the API ${err}`);
process.exit(1);
});
if (resp.status !== 200) {
core.setFailed(`Failed to access API: ${resp.status}`);
process.exit(1);
}
process.exit(0);
2 changes: 1 addition & 1 deletion .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: yarn
- name: Node.js version
id: node
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
check-latest: true
cache: yarn

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: "https://registry.npmjs.org"
check-latest: true
cache: yarn
Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/publish-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,17 @@ jobs:
tag: ${{ steps.get_tag.outputs.tag }}
prev_tag: ${{ steps.get_prev_tag.outputs.prev_tag }}

binaries:
name: Build lodestar binaries
uses: ./.github/workflows/binaries.yml
needs: tag
with:
version: ${{ needs.tag.outputs.tag }}

npm:
name: Publish to NPM & Github
runs-on: buildjet-4vcpu-ubuntu-2204
needs: tag
needs: [tag, binaries]
if: needs.tag.outputs.is_rc == 'true'
steps:
- uses: actions/checkout@v4
Expand All @@ -54,17 +61,25 @@ jobs:

- uses: "./.github/actions/setup-and-build"
with:
node: 20
node: 22

- name: Generate changelog
run: node scripts/generate_changelog.mjs ${{ needs.tag.outputs.prev_tag }} ${{ needs.tag.outputs.tag }} CHANGELOG.md

- name: Get binaries
uses: actions/download-artifact@v4
with:
path: dist/
merge-multiple: true

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: dist/*
fail_on_unmatched_files: true
tag_name: ${{ needs.tag.outputs.tag }}
body_path: "CHANGELOG.md"
name: Release ${{ needs.tag.outputs.tag }}
Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/publish-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,17 @@ jobs:
tag: ${{ steps.get_tag.outputs.tag }}
prev_tag: ${{ steps.get_prev_tag.outputs.prev_tag }}

binaries:
name: Build lodestar binaries
uses: ./.github/workflows/binaries.yml
needs: tag
with:
version: ${{ needs.tag.outputs.tag }}

npm:
name: Publish to NPM & Github
runs-on: buildjet-4vcpu-ubuntu-2204
needs: tag
needs: [tag, binaries]
if: needs.tag.outputs.is_stable == 'true'
steps:
- uses: actions/checkout@v4
Expand All @@ -60,17 +67,25 @@ jobs:

- uses: "./.github/actions/setup-and-build"
with:
node: 20
node: 22

- name: Generate changelog
run: node scripts/generate_changelog.mjs ${{ needs.tag.outputs.prev_tag }} ${{ needs.tag.outputs.tag }} CHANGELOG.md

- name: Get binaries
uses: actions/download-artifact@v4
with:
path: dist/
merge-multiple: true

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: dist/*
fail_on_unmatched_files: true
tag_name: ${{ needs.tag.outputs.tag }}
body_path: "CHANGELOG.md"
name: Release ${{ needs.tag.outputs.tag }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-sim-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
check-latest: true
cache: yarn
- name: Node.js version
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test-sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: actions/checkout@v4
- uses: "./.github/actions/setup-and-build"
with:
node: 20
node: 22

sim-test-multifork:
name: Multifork sim test
Expand All @@ -42,7 +42,7 @@ jobs:
- uses: actions/checkout@v4
- uses: "./.github/actions/setup-and-build"
with:
node: 20
node: 22
- name: Load env variables
uses: ./.github/actions/dotenv
- name: Download required docker images before running tests
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
- uses: actions/checkout@v4
- uses: "./.github/actions/setup-and-build"
with:
node: 20
node: 22
- name: Load env variables
uses: ./.github/actions/dotenv
- name: Download required docker images before running tests
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
- uses: actions/checkout@v4
- uses: "./.github/actions/setup-and-build"
with:
node: 20
node: 22
- name: Load env variables
uses: ./.github/actions/dotenv
- name: Download required docker images before running tests
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
- uses: actions/checkout@v4
- uses: "./.github/actions/setup-and-build"
with:
node: 20
node: 22
- name: Load env variables
uses: ./.github/actions/dotenv
- name: Download required docker images before running tests
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
- uses: actions/checkout@v4
- uses: "./.github/actions/setup-and-build"
with:
node: 20
node: 22
- name: Load env variables
uses: ./.github/actions/dotenv
- name: Download required docker images before running tests
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [20]
node: [22]
steps:
# <common-build> - Uses YAML anchors in the future
- uses: actions/checkout@v4
Expand All @@ -42,7 +42,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [20]
node: [22]
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/setup-and-build"
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [20]
node: [22]
steps:
- uses: actions/checkout@v4

Expand All @@ -95,7 +95,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [20]
node: [22]
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/setup-and-build"
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [20]
node: [22]
steps:
# <common-build> - Uses YAML anchors in the future
- uses: actions/checkout@v4
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [20]
node: [22]
steps:
# <common-build> - Uses YAML anchors in the future
- uses: actions/checkout@v4
Expand All @@ -195,7 +195,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [20]
node: [22]
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/setup-and-build"
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.__testdb*
node_modules/
lib
dist
.nyc_output/
coverage/**
.DS_Store
Expand All @@ -21,10 +22,13 @@ validators
**/coverage
**/node_modules
**/lib
**/dist
**/.nyc_output
.tmp
.vscode
.npmrc
.vscode/launch.json
.vscode/settings.json
.vscode/tasks.json

# Tests artifacts
packages/*/spec-tests*
Expand Down
3 changes: 3 additions & 0 deletions .vscode/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Copy `launch.template.json` as `launch.json` and adapt to your needs.

See [Debugging](../docs/pages/tools/debugging.md) for more details.
Loading
Loading