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
339fd1e0
Commit
339fd1e0
authored
Aug 09, 2023
by
Joshua Gutow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use make clean to clear op-e2e state
parent
ca0bc8fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
16 deletions
+37
-16
config.yml
.circleci/config.yml
+3
-5
Makefile
op-e2e/Makefile
+22
-7
newer-file.sh
ops/scripts/newer-file.sh
+12
-4
No files found.
.circleci/config.yml
View file @
339fd1e0
...
@@ -822,11 +822,9 @@ jobs:
...
@@ -822,11 +822,9 @@ jobs:
name
:
print go's available MIPS targets
name
:
print go's available MIPS targets
command
:
go tool dist list | grep mips
command
:
go tool dist list | grep mips
-
run
:
-
run
:
name
:
generate cannon prestate
name
:
Run all init steps for op-e2e
command
:
make cannon-prestate
command
:
make pre-test
-
run
:
working_directory
:
<<parameters.module>>
name
:
generate L1 state
command
:
make devnet-allocs
-
run
:
-
run
:
name
:
run tests
name
:
run tests
command
:
|
command
:
|
...
...
op-e2e/Makefile
View file @
339fd1e0
devnet-allocs
:
test
:
pre-test
PYTHONPATH
=
../bedrock-devnet python3 ../bedrock-devnet/main.py
--monorepo-dir
=
..
--allocs
go
test
-v
./...
cannon-prestate
:
make
-C
.. cannon-prestate
# We depend on the absolute pre-state generated by cannon to deploy the dispute game contracts.
devnet-allocs
:
pre-test-cannon
make
-C
.. devnet-allocs
pre-test
:
pre-test-cannon pre-test-allocs
pre-test
:
$(
shell
../ops/scripts/newer-file.sh ../.devnet/allocs-l1.json .././packages/contracts-bedrock
)
pre-test-cannon
:
if
[
$
(
.SHELLSTATUS
)
-ne
0
]
;
then
\
@
if
[
!
-e
../op-program/bin
]
;
then
\
make cannon-prestate
;
\
fi
pre-test-allocs
:
@
if
[
!
-e
../.devnet
]
;
then
\
make devnet-allocs
;
\
make devnet-allocs
;
\
fi
fi
test
:
pre-test
clean
:
go
test
-v
./...
rm
-r
../.devnet
rm
-r
../op-program/bin
lint
:
lint
:
golangci-lint run
-E
goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint
-e
"errors.As"
-e
"errors.Is"
golangci-lint run
-E
goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint
-e
"errors.As"
-e
"errors.Is"
...
...
ops/scripts/newer-file.sh
View file @
339fd1e0
...
@@ -6,9 +6,17 @@
...
@@ -6,9 +6,17 @@
if
[[
!
-e
"
$1
"
]]
;
then
exit
1
;
fi
if
[[
!
-e
"
$1
"
]]
;
then
exit
1
;
fi
if
[[
!
-e
"
$2
"
]]
;
then
exit
1
;
fi
if
[[
!
-e
"
$2
"
]]
;
then
exit
1
;
fi
FILE_1_AGE
=
$(
date
+%s%N
--reference
"
$1
"
)
if
uname
|
grep
-q
"Darwin"
;
then
FILE_2_AGE
=
$(
date
+%s%N
--reference
"
$2
"
)
MOD_TIME_FMT
=
"-f %m"
if
((
"
$FILE_1_AGE
"
>
"
$FILE_2_AGE
"
))
;
then
else
MOD_TIME_FMT
=
"-c %Y"
fi
FILE_1_AGE
=
$(
stat
$MOD_TIME_FMT
"
$1
"
)
FILE_2_AGE
=
$(
stat
$MOD_TIME_FMT
"
$2
"
)
if
[
"
$FILE_1_AGE
"
-gt
"
$FILE_2_AGE
"
]
;
then
exit
0
exit
0
fi
fi
exit
1
exit
1
\ No newline at end of file
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