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
e8e1ea1a
Unverified
Commit
e8e1ea1a
authored
Jul 15, 2023
by
mergify[bot]
Committed by
GitHub
Jul 15, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into inphi/cannon-read
parents
5c4014d8
8cf09344
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
207 additions
and
9 deletions
+207
-9
config.yml
.circleci/config.yml
+19
-6
maketests.py
cannon/mipsevm/open_mips_tests/maketests.py
+2
-3
cannon-fault-proof-vm.md
specs/cannon-fault-proof-vm.md
+186
-0
No files found.
.circleci/config.yml
View file @
e8e1ea1a
...
...
@@ -72,7 +72,7 @@ jobs:
command
:
mkdir -p /tmp/test-results
-
run
:
name
:
build Cannon example binaries
command
:
make elf
# only compile ELF binaries with Go, we do not have MIPS GCC for creating the debug-dumps.
command
:
make elf
# only compile ELF binaries with Go, we do not have MIPS GCC for creating the debug-dumps.
working_directory
:
cannon/example
-
run
:
name
:
Cannon Go lint
...
...
@@ -90,6 +90,18 @@ jobs:
command
:
codecov --verbose --clean --flags cannon-go-tests
-
store_test_results
:
path
:
/tmp/test-results
cannon-build-test-vectors
:
docker
:
-
image
:
us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest
resource_class
:
medium
steps
:
-
checkout
-
check-changed
:
patterns
:
cannon/mipsevm/open_mips_tests/test
-
run
:
name
:
Build MIPS test vectors
command
:
python3 maketests.py && git diff --exit-code
working_directory
:
cannon/mipsevm/open_mips_tests
pnpm-monorepo
:
docker
:
...
...
@@ -1208,14 +1220,14 @@ workflows:
name
:
fault-detector-tests
coverage_flag
:
fault-detector-tests
package_name
:
fault-detector
dependencies
:
'
(common-ts|core-utils|sdk)'
dependencies
:
"
(common-ts|core-utils|sdk)"
requires
:
-
pnpm-monorepo
-
js-lint-test
:
name
:
sdk-next-tests
coverage_flag
:
sdk-next-tests
package_name
:
sdk
dependencies
:
'
(common-ts|contracts-bedrock|core-utils)'
dependencies
:
"
(common-ts|contracts-bedrock|core-utils)"
requires
:
-
pnpm-monorepo
-
js-lint-test
:
...
...
@@ -1229,7 +1241,7 @@ workflows:
name
:
sdk-tests
coverage_flag
:
sdk-tests
package_name
:
sdk
dependencies
:
'
(contracts-bedrock|core-utils)'
dependencies
:
"
(contracts-bedrock|core-utils)"
requires
:
-
pnpm-monorepo
-
depcheck
:
...
...
@@ -1489,6 +1501,7 @@ workflows:
-
check-generated-mocks-op-node
-
check-generated-mocks-op-service
-
cannon-go-lint-and-test
-
cannon-build-test-vectors
release
:
jobs
:
-
hold
:
...
...
@@ -1646,7 +1659,7 @@ workflows:
cron
:
"
0
0,6,12,18
*
*
*"
filters
:
branches
:
only
:
[
"
develop"
]
only
:
[
"
develop"
]
jobs
:
-
fpp-verify
:
context
:
...
...
@@ -1660,7 +1673,7 @@ workflows:
cron
:
"
0
0
*
*
*"
filters
:
branches
:
only
:
[
"
develop"
]
only
:
[
"
develop"
]
jobs
:
-
bedrock-markdown-links
:
context
:
slack
cannon/mipsevm/open_mips_tests/maketests.py
View file @
e8e1ea1a
...
...
@@ -8,10 +8,9 @@ md = Cs(CS_ARCH_MIPS, CS_MODE_32 + CS_MODE_BIG_ENDIAN)
def
maketest
(
d
,
out
):
with
tempfile
.
NamedTemporaryFile
()
as
nf
:
path
=
"/Users/kafka/fun/mips/mips-gcc-4.8.1/bin/"
print
(
"building"
,
d
,
"->"
,
out
)
# which mips is go
ret
=
os
.
system
(
"
%
s/mips-elf-as -defsym big_endian=1 -march=mips32r2 -o
%
s
%
s"
%
(
path
,
nf
.
name
,
d
))
ret
=
os
.
system
(
"
mips-linux-gnu-as -defsym big_endian=1 -march=mips32r2 -o
%
s
%
s"
%
(
nf
.
name
,
d
))
assert
(
ret
==
0
)
nf
.
seek
(
0
)
elffile
=
ELFFile
(
nf
)
...
...
@@ -35,4 +34,4 @@ if __name__ == "__main__":
for
d
in
os
.
listdir
(
"test/"
):
if
not
d
.
endswith
(
".asm"
):
continue
maketest
(
"test/"
+
d
,
"test/bin/"
+
(
d
.
replace
(
".asm"
,
".bin"
)))
\ No newline at end of file
maketest
(
"test/"
+
d
,
"test/bin/"
+
(
d
.
replace
(
".asm"
,
".bin"
)))
specs/cannon-fault-proof-vm.md
0 → 100644
View file @
e8e1ea1a
This diff is collapsed.
Click to expand it.
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