Skip to content

Commit

Permalink
Merge branch 'develop' into bugfix/alt_sync_remove_peer
Browse files Browse the repository at this point in the history
  • Loading branch information
welkin22 authored Oct 16, 2023
2 parents 14f6fbf + 628b517 commit d1f61e6
Show file tree
Hide file tree
Showing 27 changed files with 592 additions and 21 deletions.
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Report a bug
about: Something with opBNB is not working as expected
title: ''
labels: 'type:bug'
assignees: ''
---

#### System information

Network: `mainnet`/`testnet`/`local`

if you are running a local node, please provide the following information:
op-node version: `op-node version`
op-geth version: `op-node -v`
OS & Version: Windows/Linux/OSX

#### Expected behaviour


#### Actual behaviour


#### Steps to reproduce the behaviour


#### Backtrace

````
[backtrace]
````

When submitting logs: please submit them as text and not screenshots.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Request a feature
about: Report a missing feature - e.g. as a step before submitting a PR
title: ''
labels: 'type:feature'
assignees: ''
---

# Rationale

Why should this feature exist?
What are the use-cases?

# Implementation

Do you have ideas regarding the implementation of this feature?
Are you willing to implement this feature?
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Ask a question
about: Something is unclear
title: ''
labels: 'type:docs'
assignees: ''
---

This should only be used in very rare cases e.g. if you are not 100% sure if something is a bug or asking a question that leads to improving the documentation. For general questions please use [discord](https://discord.gg/bnbchain).
17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
### Description

add a description of your changes here...

### Rationale

tell us why we need these changes...

### Example

add an example CLI or API response...

### Changes

Notable changes:
* add each change in a bullet point here
* ...
214 changes: 214 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
name: CI Workflow

on:
pull_request:
branches:
- 'release/**'
- develop

jobs:
op-node-lint:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version-file: go.mod

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
working-directory: op-node
version: latest
args: -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint --timeout 5m -e "errors.As" -e "errors.Is"

op-batcher-lint:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version-file: go.mod

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
working-directory: op-batcher
version: latest
args: -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint --timeout 5m -e "errors.As" -e "errors.Is"

op-proposer-lint:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version-file: go.mod

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
working-directory: op-proposer
version: latest
args: -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint --timeout 5m -e "errors.As" -e "errors.Is"

op-node-test:
runs-on: ubuntu-latest
needs: op-node-lint

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version-file: go.mod

- name: Install gotestsum
uses: autero1/[email protected]
with:
gotestsum_version: 1.10.0

- name: Run tests
working-directory: op-node
run: |
gotestsum --format=testname --junitfile=/tmp/test-results/op-node.xml -- -parallel=2 -coverpkg=github.com/ethereum-optimism/optimism/... -coverprofile=coverage.out ./...
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '/tmp/test-results/op-node.xml'

op-batcher-test:
runs-on: ubuntu-latest
needs: op-batcher-lint

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version-file: go.mod

- name: Install gotestsum
uses: autero1/[email protected]
with:
gotestsum_version: 1.10.0

- name: Run tests
working-directory: op-batcher
run: |
gotestsum --format=testname --junitfile=/tmp/test-results/op-batcher.xml -- -parallel=2 -coverpkg=github.com/ethereum-optimism/optimism/... -coverprofile=coverage.out ./...
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '/tmp/test-results/op-batcher.xml'

op-proposer-test:
runs-on: ubuntu-latest
needs: op-proposer-lint

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version-file: go.mod

- name: Install gotestsum
uses: autero1/[email protected]
with:
gotestsum_version: 1.10.0

- name: Run tests
working-directory: op-proposer
run: |
gotestsum --format=testname --junitfile=/tmp/test-results/op-proposer.xml -- -parallel=2 -coverpkg=github.com/ethereum-optimism/optimism/... -coverprofile=coverage.out ./...
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '/tmp/test-results/op-proposer.xml'

op-e2e-http-test:
runs-on: ubuntu-latest
needs: [op-node-test, op-batcher-test, op-proposer-test]

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version-file: go.mod

- name: Install gotestsum
uses: autero1/[email protected]
with:
gotestsum_version: 1.10.0

- name: Run tests
working-directory: op-e2e
run: |
OP_TESTLOG_DISABLE_COLOR=true OP_E2E_DISABLE_PARALLEL=false OP_E2E_USE_HTTP=true gotestsum \
--format=testname --junitfile=/tmp/test-results/op-e2e_http_true.xml \
-- -timeout=20m -parallel=2 ./...
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '/tmp/test-results/op-e2e_http_true.xml'

op-e2e-ws-test:
runs-on: ubuntu-latest
needs: [op-node-test, op-batcher-test, op-proposer-test]

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version-file: go.mod

- name: Install gotestsum
uses: autero1/[email protected]
with:
gotestsum_version: 1.10.0

- name: Run tests
working-directory: op-e2e
run: |
OP_TESTLOG_DISABLE_COLOR=true OP_E2E_DISABLE_PARALLEL=false OP_E2E_USE_HTTP=false gotestsum \
--format=testname --junitfile=/tmp/test-results/op-e2e_http_false.xml \
-- -timeout=20m -parallel=2 ./...
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '/tmp/test-results/op-e2e_http_false.xml'
Loading

0 comments on commit d1f61e6

Please sign in to comment.