-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* op-batcher: Add metrics for pending L2 transaction data size (#5797) * feat(op-node): Finalize Mainnet Rollup Config [release branch] (#5905) * copy over develop chainsgo * stage rollup config changes * final rollup config values * fix(op-batcher): solve race condition of BatchSubmitter publishTxToL1 and handleReceipt access state concurrently (#5) * chore: update readme, add testnet assets (#9) * chore: update readme, add testnet assets * doc: clarify readme * ci: add the ci code used to package and release docker images (#11) * ci: add the ci code used to package and release docker images (#7) * ci: add the ci code used to package and release docker images Co-authored-by: Welkin <[email protected]> * fix: add latest tag for docker image (#9) Co-authored-by: Welkin <[email protected]> * try to use cache for docker build (#10) Co-authored-by: Welkin <[email protected]> --------- Co-authored-by: Welkin <[email protected]> * feat(ci): add ci workflow * fix * fix * update * update * skip fail test temporarily * add batcher/proposer * add e2e * skip fail e2e case temporary * add op-node-lint * fix lint * add batcher/proposer lint * test junit-report * add junit report for all * adjust parallel to 2 for avoiding fail * add needs for job serial execution * use testname format to simplify result --------- Co-authored-by: Joshua Gutow <[email protected]> Co-authored-by: refcell.eth <[email protected]> Co-authored-by: bnoieh <[email protected]> Co-authored-by: Owen <[email protected]> Co-authored-by: Welkin <[email protected]>
- Loading branch information
1 parent
c335153
commit 039e6fd
Showing
6 changed files
with
237 additions
and
3 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,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' |
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
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
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