Skip to content

Commit

Permalink
Merge pull request #4459 from ChainSafe/rc/v1.0.0
Browse files Browse the repository at this point in the history
Release v1.0.0
  • Loading branch information
dapplion committed Aug 23, 2022
2 parents c524c55 + 1495a7f commit 4fb7950
Show file tree
Hide file tree
Showing 466 changed files with 15,849 additions and 8,540 deletions.
21 changes: 19 additions & 2 deletions .dockerignore
Expand Up @@ -28,9 +28,26 @@ docker-compose.yml

# Tests
packages/**/test
packages/**/lib

# Tests artifacts
.__testdb
packages/spec-test-runner/spec-tests
packages/validator/spec-tests
packages/*/spec-tests
packages/*/benchmark_data
packages/beacon-node/test-logs/
packages/state-transition/test-cache
benchmark_data
invalidSszObjects/
packages/beacon-node/mainnet_pubkeys.csv

# Autogenerated docs
packages/**/docs
packages/**/typedocs
docs/packages
docs/contributing.md
docs/assets
docs/reference/cli.md
/site

# Lodestar artifacts
.lodestar
Expand Down
18 changes: 16 additions & 2 deletions .eslintrc.js
Expand Up @@ -35,7 +35,7 @@ module.exports = {
{
pattern: "@lodestar/**",
group: "internal",
}
},
],
pathGroupsExcludedImportTypes: ["builtin"],
},
Expand Down Expand Up @@ -84,7 +84,7 @@ module.exports = {
],
"@typescript-eslint/func-call-spacing": "error",
// TODO after upgrading es-lint, member-ordering is now leading to lint errors. Set to warning now and fix in another PR
"@typescript-eslint/member-ordering": "warn",
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-unused-vars": [
Expand Down Expand Up @@ -185,6 +185,20 @@ module.exports = {
],
},
overrides: [
{
files: ["**/*.config.js", "**/*.config.mjs", "**/*.config.cjs", "**/*.config.ts"],
rules: {
// Allow importing packages from dev dependencies
"import/no-extraneous-dependencies": "off",
// Allow importing and mixing different configurations
"import/no-relative-packages": "off",
"@typescript-eslint/naming-convention": "off",
// Allow require in CJS modules
"@typescript-eslint/no-var-requires": "off",
// Allow require in CJS modules
"@typescript-eslint/no-require-imports": "off",
},
},
{
files: ["**/test/**/*.ts"],
rules: {
Expand Down
20 changes: 10 additions & 10 deletions .github/stale.yml
Expand Up @@ -12,17 +12,17 @@ onlyLabels: []

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- "meta-goodfirstissue"
- "meta-helpwanted"
- "Epic"
- "meta-good-first-issue"
- "meta-help-wanted"
- "meta-discussion"
- "prio0-critical"
- "prio2-high"
- "prio5-medium"
- "prio7-low"
- "status0-blocked"
- "status1-donotmerge"
- "status2-onice"
- "status7-opendiscussion"
- "meta-pm"
- "prio-critical"
- "prio-high"
- "prio-medium"
- "prio-low"
- "status-blocked"
- "status-do-not-merge"

# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/benchmark.yml
Expand Up @@ -18,8 +18,11 @@ on:
jobs:
run:
runs-on: ubuntu-latest
# Skip for dependabot PRs, secrets are not made available and will fail
# Don't run on forks. Forks don't have access to the S3 credentials and the workflow will fail
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
if: |
github.actor != 'dependabot[bot]' &&
( github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository )
steps:
# <common-build> - Uses YAML anchors in the future
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-dev.yml
Expand Up @@ -122,3 +122,6 @@ jobs:
- name: Build and push
run: docker buildx build --push --tag chainsafe/lodestar:next --platform linux/amd64,linux/arm64 --build-arg VERSION=${{ needs.npm.outputs.version }} .
- run: docker run chainsafe/lodestar:next --help
# Display history to know byte size of each layer
# Image is available only because of the previous `docker run` command
- run: docker image history chainsafe/lodestar:next
3 changes: 3 additions & 0 deletions .github/workflows/publish-rc.yml
Expand Up @@ -146,3 +146,6 @@ jobs:
- name: Build and push
run: docker buildx build --push --tag chainsafe/lodestar:rc --tag chainsafe/lodestar:${{ needs.tag.outputs.tag }} --platform linux/amd64,linux/arm64 --build-arg VERSION=${{ needs.tag.outputs.tag }} .
- run: docker run chainsafe/lodestar:${{ needs.tag.outputs.tag }} --help
# Display history to know byte size of each layer
# Image is available only because of the previous `docker run` command
- run: docker image history chainsafe/lodestar:${{ needs.tag.outputs.tag }}
3 changes: 3 additions & 0 deletions .github/workflows/publish-stable.yml
Expand Up @@ -136,3 +136,6 @@ jobs:
- name: Build and push
run: docker buildx build --push --tag chainsafe/lodestar:latest --tag chainsafe/lodestar:${{ needs.tag.outputs.tag }} --platform linux/amd64,linux/arm64 --build-arg VERSION=${{ needs.tag.outputs.tag }} .
- run: docker run chainsafe/lodestar:${{ needs.tag.outputs.tag }} --help
# Display history to know byte size of each layer
# Image is available only because of the previous `docker run` command
- run: docker image history chainsafe/lodestar:${{ needs.tag.outputs.tag }}
58 changes: 58 additions & 0 deletions .github/workflows/test-browser.yml
@@ -0,0 +1,58 @@
name: Browser tests

on:
push:
branches:
- stable
- unstable
pull_request:
branches:
- stable
- unstable

jobs:
tests-main:
name: Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [16]
steps:
# <common-build> - Uses YAML anchors in the future
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{matrix.node}}
- name: Node.js version
id: node
run: echo "::set-output name=v8CppApiVersion::$(node --print "process.versions.modules")"
- name: Restore dependencies
uses: actions/cache@master
id: cache-deps
with:
path: |
node_modules
packages/*/node_modules
key: ${{ runner.os }}-${{ steps.node.outputs.v8CppApiVersion }}-${{ hashFiles('**/yarn.lock', '**/package.json') }}
- name: Install & build
if: steps.cache-deps.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --ignore-optional && yarn build
- name: Build
run: yarn build
if: steps.cache-deps.outputs.cache-hit == 'true'
# </common-build>

# Misc sanity checks
- name: Test root binary exists
run: ./lodestar --version
- name: Reject yarn.lock changes
run: .github/workflows/scripts/reject_yarn_lock_changes.sh
# Run only on forks
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}

- name: Browser tests
run: |
export DISPLAY=':99.0'
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
yarn test:browsers
60 changes: 60 additions & 0 deletions .github/workflows/test-e2e.yml
@@ -0,0 +1,60 @@
name: E2E tests

on:
push:
branches:
- stable
- unstable
pull_request:
branches:
- stable
- unstable

env:
GOERLI_RPC_DEFAULT_URL: https://goerli.infura.io/v3/84842078b09946638c03157f83405213

jobs:
tests-main:
name: Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [16]
steps:
# <common-build> - Uses YAML anchors in the future
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{matrix.node}}
- name: Node.js version
id: node
run: echo "::set-output name=v8CppApiVersion::$(node --print "process.versions.modules")"
- name: Restore dependencies
uses: actions/cache@master
id: cache-deps
with:
path: |
node_modules
packages/*/node_modules
key: ${{ runner.os }}-${{ steps.node.outputs.v8CppApiVersion }}-${{ hashFiles('**/yarn.lock', '**/package.json') }}
- name: Install & build
if: steps.cache-deps.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --ignore-optional && yarn build
- name: Build
run: yarn build
if: steps.cache-deps.outputs.cache-hit == 'true'
# </common-build>

# Misc sanity checks
- name: Test root binary exists
run: ./lodestar --version
- name: Reject yarn.lock changes
run: .github/workflows/scripts/reject_yarn_lock_changes.sh
# Run only on forks
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}

- name: E2E tests
run: yarn test:e2e
env:
GOERLI_RPC_URL: ${{ secrets.GOERLI_RPC_URL!=0 && secrets.GOERLI_RPC_URL || env.GOERLI_RPC_DEFAULT_URL }}
14 changes: 11 additions & 3 deletions .github/workflows/test-sim-merge.yml
@@ -1,6 +1,14 @@
name: Sim merge tests

on: [pull_request, push]
on:
push:
branches:
- stable
- unstable
pull_request:
branches:
- stable
- unstable

env:
GETH_COMMIT: be9742721f56eb8bb7ebf4f6a03fb01b13a05408
Expand Down Expand Up @@ -49,7 +57,7 @@ jobs:
working-directory: packages/beacon-node
env:
EL_BINARY_DIR: ../../go-ethereum/build/bin
EL_SCRIPT_DIR: kiln/geth
EL_SCRIPT_DIR: geth
ENGINE_PORT: 8551
ETH_PORT: 8545
TX_SCENARIOS: simple
Expand All @@ -68,7 +76,7 @@ jobs:
working-directory: packages/beacon-node
env:
EL_BINARY_DIR: ../../nethermind/src/Nethermind/Nethermind.Runner
EL_SCRIPT_DIR: kiln/nethermind
EL_SCRIPT_DIR: nethermind
ENGINE_PORT: 8551
ETH_PORT: 8545

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/test-sim.yml
@@ -1,6 +1,14 @@
name: Sim tests

on: [pull_request, push]
on:
push:
branches:
- stable
- unstable
pull_request:
branches:
- stable
- unstable

jobs:
tests-sim:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/test-spec.yml
@@ -1,6 +1,14 @@
name: Spec tests

on: [pull_request, push]
on:
push:
branches:
- stable
- unstable
pull_request:
branches:
- stable
- unstable

jobs:
tests-spec:
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/test.yml
@@ -1,9 +1,14 @@
name: Tests

on: [pull_request, push]

env:
GOERLI_RPC_DEFAULT_URL: https://goerli.infura.io/v3/84842078b09946638c03157f83405213
on:
push:
branches:
- stable
- unstable
pull_request:
branches:
- stable
- unstable

jobs:
tests-main:
Expand All @@ -12,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [16, 18]
node: [16]
steps:
# <common-build> - Uses YAML anchors in the future
- uses: actions/checkout@v2
Expand Down Expand Up @@ -72,7 +77,3 @@ jobs:
run: yarn test:unit
- name: Upload coverage data
run: yarn coverage
- name: E2e tests
run: yarn test:e2e
env:
GOERLI_RPC_URL: ${{ secrets.GOERLI_RPC_URL!=0 && secrets.GOERLI_RPC_URL || env.GOERLI_RPC_DEFAULT_URL }}

0 comments on commit 4fb7950

Please sign in to comment.