Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
f394f0aa
Unverified
Commit
f394f0aa
authored
Oct 27, 2023
by
Adrian Sutton
Committed by
GitHub
Oct 27, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7890 from ethereum-optimism/aj/cannon-ws-only
op-e2e: Disable cannon tests for external geth
parents
bb83c60c
2ec6f8fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
11 deletions
+18
-11
config.yml
.circleci/config.yml
+8
-1
faultproof_test.go
op-e2e/faultproof_test.go
+7
-7
helper.go
op-e2e/helper.go
+3
-3
No files found.
.circleci/config.yml
View file @
f394f0aa
...
@@ -772,6 +772,10 @@ jobs:
...
@@ -772,6 +772,10 @@ jobs:
target
:
target
:
description
:
The make target to execute
description
:
The make target to execute
type
:
string
type
:
string
cannon_enabled
:
description
:
Whether to include cannon tests
default
:
true
type
:
boolean
docker
:
docker
:
-
image
:
us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest
-
image
:
us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest
resource_class
:
xlarge
resource_class
:
xlarge
...
@@ -797,7 +801,8 @@ jobs:
...
@@ -797,7 +801,8 @@ jobs:
command
:
go tool dist list | grep mips
command
:
go tool dist list | grep mips
-
run
:
-
run
:
name
:
run tests
name
:
run tests
command
:
command
:
|
export OP_E2E_CANNON_ENABLED="<<parameters.cannon_enabled>>"
# Note: We don't use circle CI test splits because we need to split by test name, not by package. There is an additional
# Note: We don't use circle CI test splits because we need to split by test name, not by package. There is an additional
# constraint that gotestsum does not currently (nor likely will) accept files from different pacakges when building.
# constraint that gotestsum does not currently (nor likely will) accept files from different pacakges when building.
JUNIT_FILE=/tmp/test-results/<<parameters.module>>_<<parameters.target>>.xml make <<parameters.target>>
JUNIT_FILE=/tmp/test-results/<<parameters.module>>_<<parameters.target>>.xml make <<parameters.target>>
...
@@ -1361,6 +1366,7 @@ workflows:
...
@@ -1361,6 +1366,7 @@ workflows:
name
:
op-e2e-HTTP-tests
name
:
op-e2e-HTTP-tests
module
:
op-e2e
module
:
op-e2e
target
:
test-http
target
:
test-http
cannon_enabled
:
false
requires
:
requires
:
-
op-stack-go-lint
-
op-stack-go-lint
-
devnet-allocs
-
devnet-allocs
...
@@ -1368,6 +1374,7 @@ workflows:
...
@@ -1368,6 +1374,7 @@ workflows:
name
:
op-e2e-ext-geth-tests
name
:
op-e2e-ext-geth-tests
module
:
op-e2e
module
:
op-e2e
target
:
test-external-geth
target
:
test-external-geth
cannon_enabled
:
false
requires
:
requires
:
-
op-stack-go-lint
-
op-stack-go-lint
-
devnet-allocs
-
devnet-allocs
...
...
op-e2e/faultproof_test.go
View file @
f394f0aa
...
@@ -18,7 +18,7 @@ import (
...
@@ -18,7 +18,7 @@ import (
)
)
func
TestMultipleCannonGames
(
t
*
testing
.
T
)
{
func
TestMultipleCannonGames
(
t
*
testing
.
T
)
{
InitParallel
(
t
,
SkipIfHTTP
)
InitParallel
(
t
,
UsesCannon
)
ctx
:=
context
.
Background
()
ctx
:=
context
.
Background
()
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
...
@@ -78,7 +78,7 @@ func TestMultipleCannonGames(t *testing.T) {
...
@@ -78,7 +78,7 @@ func TestMultipleCannonGames(t *testing.T) {
}
}
func
TestMultipleGameTypes
(
t
*
testing
.
T
)
{
func
TestMultipleGameTypes
(
t
*
testing
.
T
)
{
InitParallel
(
t
,
SkipIfHTTP
)
InitParallel
(
t
,
UsesCannon
)
ctx
:=
context
.
Background
()
ctx
:=
context
.
Background
()
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
...
@@ -277,7 +277,7 @@ func TestChallengerCompleteExhaustiveDisputeGame(t *testing.T) {
...
@@ -277,7 +277,7 @@ func TestChallengerCompleteExhaustiveDisputeGame(t *testing.T) {
}
}
func
TestCannonDisputeGame
(
t
*
testing
.
T
)
{
func
TestCannonDisputeGame
(
t
*
testing
.
T
)
{
InitParallel
(
t
,
SkipIfHTTP
)
InitParallel
(
t
,
UsesCannon
)
tests
:=
[]
struct
{
tests
:=
[]
struct
{
name
string
name
string
...
@@ -328,7 +328,7 @@ func TestCannonDisputeGame(t *testing.T) {
...
@@ -328,7 +328,7 @@ func TestCannonDisputeGame(t *testing.T) {
}
}
func
TestCannonDefendStep
(
t
*
testing
.
T
)
{
func
TestCannonDefendStep
(
t
*
testing
.
T
)
{
InitParallel
(
t
,
SkipIfHTTP
)
InitParallel
(
t
,
UsesCannon
)
ctx
:=
context
.
Background
()
ctx
:=
context
.
Background
()
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
...
@@ -370,7 +370,7 @@ func TestCannonDefendStep(t *testing.T) {
...
@@ -370,7 +370,7 @@ func TestCannonDefendStep(t *testing.T) {
}
}
func
TestCannonProposedOutputRootInvalid
(
t
*
testing
.
T
)
{
func
TestCannonProposedOutputRootInvalid
(
t
*
testing
.
T
)
{
InitParallel
(
t
,
SkipIfHTTP
)
InitParallel
(
t
,
UsesCannon
)
// honestStepsFail attempts to perform both an attack and defend step using the correct trace.
// honestStepsFail attempts to perform both an attack and defend step using the correct trace.
honestStepsFail
:=
func
(
ctx
context
.
Context
,
game
*
disputegame
.
CannonGameHelper
,
correctTrace
*
disputegame
.
HonestHelper
,
parentClaimIdx
int64
)
{
honestStepsFail
:=
func
(
ctx
context
.
Context
,
game
*
disputegame
.
CannonGameHelper
,
correctTrace
*
disputegame
.
HonestHelper
,
parentClaimIdx
int64
)
{
// Attack step should fail
// Attack step should fail
...
@@ -448,7 +448,7 @@ func TestCannonProposedOutputRootInvalid(t *testing.T) {
...
@@ -448,7 +448,7 @@ func TestCannonProposedOutputRootInvalid(t *testing.T) {
}
}
func
TestCannonPoisonedPostState
(
t
*
testing
.
T
)
{
func
TestCannonPoisonedPostState
(
t
*
testing
.
T
)
{
InitParallel
(
t
,
SkipIfHTTP
)
InitParallel
(
t
,
UsesCannon
)
ctx
:=
context
.
Background
()
ctx
:=
context
.
Background
()
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
...
@@ -558,7 +558,7 @@ func setupDisputeGameForInvalidOutputRoot(t *testing.T, outputRoot common.Hash)
...
@@ -558,7 +558,7 @@ func setupDisputeGameForInvalidOutputRoot(t *testing.T, outputRoot common.Hash)
}
}
func
TestCannonChallengeWithCorrectRoot
(
t
*
testing
.
T
)
{
func
TestCannonChallengeWithCorrectRoot
(
t
*
testing
.
T
)
{
InitParallel
(
t
,
SkipIfHTTP
)
InitParallel
(
t
,
UsesCannon
)
ctx
:=
context
.
Background
()
ctx
:=
context
.
Background
()
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
...
...
op-e2e/helper.go
View file @
f394f0aa
...
@@ -17,8 +17,8 @@ func InitParallel(t *testing.T, opts ...func(t *testing.T)) {
...
@@ -17,8 +17,8 @@ func InitParallel(t *testing.T, opts ...func(t *testing.T)) {
}
}
}
}
func
SkipIfHTTP
(
t
*
testing
.
T
)
{
func
UsesCannon
(
t
*
testing
.
T
)
{
if
UseHTTP
()
{
if
os
.
Getenv
(
"OP_E2E_CANNON_ENABLED"
)
==
"false"
{
t
.
Skip
(
"Skipping
test because HTTP connection is in use
"
)
t
.
Skip
(
"Skipping
cannon test
"
)
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment