Skip to content

Commit

Permalink
Merge branch 'unstable' into cayman/snappy-tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain committed Oct 9, 2024
2 parents 33ca8e7 + 068fbae commit d730129
Show file tree
Hide file tree
Showing 425 changed files with 11,303 additions and 3,688 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ jobs:
- uses: actions/checkout@v4
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/publish-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,11 @@ jobs:
# In case of failure
- name: Rollback on failure
if: failure()
uses: author/action-rollback@9ec72a6af74774e00343c6de3e946b0901c23013
uses: author/action-rollback@1.0.4
with:
id: ${{ steps.create_release.outputs.id }}
release_id: ${{ steps.create_release.outputs.id }}
tag: ${{ needs.tag.outputs.tag }}
delete_orphan_tag: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -131,12 +132,12 @@ jobs:
- run: scripts/await-release.sh ${{ needs.tag.outputs.tag }} rc 900
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/publish-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,11 @@ jobs:
# In case of failure
- name: Rollback on failure
if: failure()
uses: author/action-rollback@9ec72a6af74774e00343c6de3e946b0901c23013
uses: author/action-rollback@1.0.4
with:
id: ${{ steps.create_release.outputs.id }}
release_id: ${{ steps.create_release.outputs.id }}
tag: ${{ needs.tag.outputs.tag }}
delete_orphan_tag: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -131,12 +132,12 @@ jobs:
- run: scripts/await-release.sh ${{ needs.tag.outputs.tag }} latest 900
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

# --platform=$BUILDPLATFORM is used build javascript source with host arch
# Otherwise TS builds on emulated archs and can be extremely slow (+1h)
FROM --platform=${BUILDPLATFORM:-amd64} node:22.4-alpine as build_src
FROM --platform=${BUILDPLATFORM:-amd64} node:22.4-slim AS build_src
ARG COMMIT
WORKDIR /usr/app
RUN apk update && apk add --no-cache g++ make python3 py3-setuptools && rm -rf /var/cache/apk/*
RUN apt-get update && apt-get install -y g++ make python3 python3-setuptools && apt-get clean && rm -rf /var/lib/apt/lists/*

COPY . .

Expand All @@ -21,21 +21,21 @@ RUN cd packages/cli && GIT_COMMIT=${COMMIT} yarn write-git-data

# Copy built src + node_modules to build native packages for archs different than host.
# Note: This step is redundant for the host arch
FROM node:22.4-alpine as build_deps
FROM node:22.4-slim AS build_deps
WORKDIR /usr/app
RUN apk update && apk add --no-cache g++ make python3 py3-setuptools && rm -rf /var/cache/apk/*
RUN apt-get update && apt-get install -y g++ make python3 python3-setuptools && apt-get clean && rm -rf /var/lib/apt/lists/*

COPY --from=build_src /usr/app .

# Do yarn --force to trigger a rebuild of the native packages
# Emmulates `yarn rebuild` which is not available in v1 https://yarnpkg.com/cli/rebuild
# Emmulates `yarn rebuild` which is not available in v1 https://yarnpkg.com/cli/rebuild
RUN yarn install --non-interactive --frozen-lockfile --production --force
# Rebuild leveldb bindings (required for arm64 build)
RUN cd node_modules/classic-level && yarn rebuild

# Copy built src + node_modules to a new layer to prune unnecessary fs
# Previous layer weights 7.25GB, while this final 488MB (as of Oct 2020)
FROM node:22.4-alpine
FROM node:22.4-slim
WORKDIR /usr/app
COPY --from=build_deps /usr/app .

Expand Down
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ Merge `stable` into `unstable`, resolving conflicts:

- `git checkout unstable && git merge stable`
- Resolve conflicts
- Sanity check locally before pushing by using: `git diff unstable origin/unstable`
- Sanity check locally before pushing by using: `git diff origin/unstable unstable`
- Disable `unstable` branch protection
- `git push`
- Enable `unstable` branch protection
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_block_processor.json
Original file line number Diff line number Diff line change
Expand Up @@ -7132,7 +7132,7 @@
"condition": "",
"key": "instance",
"operator": "=",
"value": "unstable-lg1k-hzax41"
"value": "unstable-lg1k-hzax41-dkr"
}
],
"hide": 0,
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_block_production.json
Original file line number Diff line number Diff line change
Expand Up @@ -2211,7 +2211,7 @@
"condition": "",
"key": "instance",
"operator": "=",
"value": "unstable-lg1k-hzax41"
"value": "unstable-lg1k-hzax41-dkr"
}
],
"hide": 0,
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_bls_thread_pool.json
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,7 @@
"condition": "",
"key": "instance",
"operator": "=",
"value": "unstable-lg1k-hzax41"
"value": "unstable-lg1k-hzax41-dkr"
}
],
"hide": 0,
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_debug_gossipsub.json
Original file line number Diff line number Diff line change
Expand Up @@ -8876,7 +8876,7 @@
"condition": "",
"key": "instance",
"operator": "=",
"value": "unstable-lg1k-hzax41"
"value": "unstable-lg1k-hzax41-dkr"
}
],
"hide": 0,
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_discv5.json
Original file line number Diff line number Diff line change
Expand Up @@ -2168,7 +2168,7 @@
"condition": "",
"key": "instance",
"operator": "=",
"value": "unstable-lg1k-hzax41"
"value": "unstable-lg1k-hzax41-dkr"
}
],
"hide": 0,
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_execution_engine.json
Original file line number Diff line number Diff line change
Expand Up @@ -3439,7 +3439,7 @@
"condition": "",
"key": "instance",
"operator": "=",
"value": "unstable-lg1k-hzax41"
"value": "unstable-lg1k-hzax41-dkr"
}
],
"hide": 0,
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_historical_state_regen.json
Original file line number Diff line number Diff line change
Expand Up @@ -2601,7 +2601,7 @@
"condition": "",
"key": "instance",
"operator": "=",
"value": "unstable-lg1k-hzax41"
"value": "unstable-lg1k-hzax41-dkr"
}
],
"hide": 0,
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_libp2p.json
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@
"condition": "",
"key": "instance",
"operator": "=",
"value": "unstable-lg1k-hzax41"
"value": "unstable-lg1k-hzax41-dkr"
}
],
"hide": 0,
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_multinode.json
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@
"condition": "",
"key": "instance",
"operator": "=",
"value": "unstable-lg1k-hzax41"
"value": "unstable-lg1k-hzax41-dkr"
}
],
"hide": 0,
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_networking.json
Original file line number Diff line number Diff line change
Expand Up @@ -6421,7 +6421,7 @@
"condition": "",
"key": "instance",
"operator": "=",
"value": "unstable-lg1k-hzax41"
"value": "unstable-lg1k-hzax41-dkr"
}
],
"hide": 0,
Expand Down
2 changes: 1 addition & 1 deletion dashboards/lodestar_rest_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@
"condition": "",
"key": "instance",
"operator": "=",
"value": "unstable-lg1k-hzax41"
"value": "unstable-lg1k-hzax41-dkr"
}
],
"hide": 0,
Expand Down
Loading

0 comments on commit d730129

Please sign in to comment.