Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithreaded booking and new data flow with solidification of transactions #2151

Merged
merged 327 commits into from
May 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
327 commits
Select commit Hold shift + click to select a range
bfda5bb
Refactor: started to comment utils
hmoog Apr 5, 2022
098b013
Feat: started refactoring models
hmoog Apr 5, 2022
a7b8ca5
Feat: commented ChildBranch
hmoog Apr 6, 2022
6e399cd
Fix: fixed bug with default options
hmoog Apr 6, 2022
a8af9e6
Refactor: refactored Conflict
hmoog Apr 6, 2022
e1a9d89
Refactor: removed unused code
hmoog Apr 6, 2022
ce05f84
Feat: finished branchdag refactor
hmoog Apr 6, 2022
ba6b873
Refactor: refactored some code
hmoog Apr 6, 2022
37def7c
Add multithreaded test for solidification and propagation (#2147)
jonastheis Apr 6, 2022
c0ec24e
Feat: commented Ledger (models missing)
hmoog Apr 7, 2022
a33bc35
Add tests for edge cases
jonastheis Apr 7, 2022
ce5aa8e
Merge branch 'feat/utxovm' of github.com:iotaledger/goshimmer into fe…
jonastheis Apr 7, 2022
156b29c
remove unused code
jonastheis Apr 7, 2022
c754a30
Refactor: refactored code
hmoog Apr 7, 2022
7a31915
Add tests for childbranches when asserting branch DAG references
jonastheis Apr 7, 2022
16060c6
Merge branch 'feat/utxovm' of github.com:iotaledger/goshimmer into fe…
jonastheis Apr 7, 2022
d3f5695
Refactor: refactored code
hmoog Apr 7, 2022
3a67bdd
Refactor: refactored code
hmoog Apr 7, 2022
83a11ec
Fix: fixed some refactor bugs
hmoog Apr 7, 2022
8ccccb0
Fix: fixed refactor errors in devnetvm
hmoog Apr 7, 2022
e877f5c
Feat: go mod tidy
hmoog Apr 7, 2022
e83e3c4
Feat: commented Outputs
hmoog Apr 7, 2022
77c387d
Feat: commented more code
hmoog Apr 7, 2022
0d1bd98
Feat: commented models
hmoog Apr 8, 2022
25b41fe
Refactor: reviewed the code
hmoog Apr 8, 2022
9d48575
Refactor: changed more code
hmoog Apr 8, 2022
80b4377
Add comments to testframework
jonastheis Apr 8, 2022
9389b44
Add locks to testframework
jonastheis Apr 8, 2022
9b3a154
Merge branch 'feat/utxovm' of github.com:iotaledger/goshimmer into fe…
jonastheis Apr 8, 2022
23d567a
Feat: added comments for properties in TestFramework
hmoog Apr 8, 2022
78c41ee
Start implementing new tangle data flow
jonastheis Apr 9, 2022
e9ae091
Fix: fixed some random things
hmoog Apr 9, 2022
f8f8194
Feat: started implementing error handling
hmoog Apr 10, 2022
d84c7fd
Fix: fixed some random stuff
hmoog Apr 10, 2022
5abec0a
Merge remote-tracking branch 'origin/feat/utxovm' into feat/multithre…
jonastheis Apr 11, 2022
6de8e17
Feat: added comment
hmoog Apr 11, 2022
8be866e
Merge remote-tracking branch 'origin/feat/utxovm' into feat/multithre…
jonastheis Apr 11, 2022
d47bb04
Feat: added Shutdown calls
hmoog Apr 11, 2022
f37b1e8
Feat: added context to all final events Booked/Invalid
hmoog Apr 11, 2022
102af6f
change to improved data flow and embed payloadbooker into booker
jonastheis Apr 11, 2022
1abfb63
Merge remote-tracking branch 'origin/feat/utxovm' into feat/multithre…
jonastheis Apr 11, 2022
ee8c626
Rename ledgerstate to ledgerstateOLD in preparation to get rid of it.…
jonastheis Apr 11, 2022
8369492
WIP
jonastheis Apr 12, 2022
fcd3d48
WIP
jonastheis Apr 12, 2022
3612e1f
fix more errors
jonastheis Apr 12, 2022
2066939
Feat: added UndefinedBranchID
hmoog Apr 12, 2022
152173a
fix more errors
jonastheis Apr 12, 2022
36e4692
Merge remote-tracking branch 'origin/feat/utxovm' into feat/multithre…
jonastheis Apr 12, 2022
91a2b0d
Feat: refactored comment
hmoog Apr 12, 2022
dd11c2a
Feat: use EventLoop for gossip manager
karimodm Apr 12, 2022
69301c3
Merge remote-tracking branch 'origin/feat/multithreaded-tangle' into …
karimodm Apr 12, 2022
bda6a55
Feat: fixed some bugs
hmoog Apr 12, 2022
581e49c
Fix: fixed some random code
hmoog Apr 12, 2022
acf0ff0
fix more stuff
jonastheis Apr 13, 2022
918faf2
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
jonastheis Apr 13, 2022
cdf04af
Feat: more generic events
karimodm Apr 13, 2022
56c6b9e
Merge remote-tracking branch 'origin/feat/multithreaded-tangle' into …
karimodm Apr 13, 2022
6033d43
Feat: started implementing indexer
hmoog Apr 13, 2022
0760590
Feat: more generic events
karimodm Apr 13, 2022
2a7cc2a
Merge remote-tracking branch 'origin/feat/multithreaded-tangle' into …
karimodm Apr 13, 2022
b825715
Feat: more generic events
karimodm Apr 13, 2022
2833adc
Feat: more generic events
karimodm Apr 13, 2022
f963149
Feat: more generic events
karimodm Apr 13, 2022
1e2adaa
Feat: added an Indexer for the devnetvm
hmoog Apr 13, 2022
061b071
Fix: fixed more random things
hmoog Apr 14, 2022
0d31dc5
Fix: fixed approvalweightmanager
hmoog Apr 14, 2022
2b0db74
fix more and more stuff
jonastheis Apr 14, 2022
59f675b
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
jonastheis Apr 14, 2022
8523f0c
Feat: more generic events
karimodm Apr 14, 2022
dc94673
Merge remote-tracking branch 'origin/feat/multithreaded-tangle' into …
karimodm Apr 14, 2022
807b666
Fix: fixed more stuff
hmoog Apr 14, 2022
d1a9462
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
hmoog Apr 14, 2022
fac7865
Fix: fixed more bugs
hmoog Apr 14, 2022
10628ff
Feat: more generic events
karimodm Apr 14, 2022
9d3d39a
Merge remote-tracking branch 'origin/feat/multithreaded-tangle' into …
karimodm Apr 14, 2022
aeb72fe
Feat: upgrade hive.go
hmoog Apr 14, 2022
c6a274b
Fix: change workerpool in tangle_test
karimodm Apr 14, 2022
0ab6471
Fix: fixed workerpool
hmoog Apr 14, 2022
ead39fc
Feat: more generic events
karimodm Apr 14, 2022
b4c8fcf
Merge remote-tracking branch 'origin/feat/multithreaded-tangle' into …
karimodm Apr 14, 2022
70194fb
Feat: fixed wallet + client
hmoog Apr 14, 2022
bbec811
Fix: fixed some stuff in otv test
hmoog Apr 14, 2022
bd39b46
Fix: fixed more stuff in otv.test
hmoog Apr 14, 2022
a7aff16
Feat: more generic events
karimodm Apr 14, 2022
0c1702f
Merge remote-tracking branch 'origin/feat/multithreaded-tangle' into …
karimodm Apr 14, 2022
fb9843c
Fix: remove replace in go.mod
karimodm Apr 14, 2022
cbc2ab0
Fix: fixed otv_test
hmoog Apr 14, 2022
45f8eee
Fix: fixed more stuff
hmoog Apr 14, 2022
510d421
Fix: fixed more stuff
hmoog Apr 14, 2022
c7e45a1
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
hmoog Apr 14, 2022
cde840c
Fix: fixed more ledgerstate references
hmoog Apr 14, 2022
bb9dc07
Fix: removed all references to ledgerstate package
hmoog Apr 14, 2022
0e81534
Feat: started adding snapshots
hmoog Apr 19, 2022
eedd7b5
Merge pull request #2154 from iotaledger/feat/eventloop
jonastheis Apr 19, 2022
445810b
Merge remote-tracking branch 'origin/feat/utxovm' into feat/multithre…
jonastheis Apr 19, 2022
e2fbfc3
Fix more errors
jonastheis Apr 20, 2022
b0d5519
Fix more stuff
jonastheis Apr 21, 2022
a2ed3eb
Fix more compile errors, only snapshot left now
jonastheis Apr 21, 2022
11c20b1
Feat: Implemented TransactionConfirmed event (#2168)
hmoog Apr 25, 2022
d557ce7
Feat: started implementing mana snapshit
hmoog Apr 25, 2022
84d8196
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
hmoog Apr 25, 2022
0f91dfe
Feat: node builds
hmoog Apr 25, 2022
969e755
Refactor: simplified code by removing some wrappers
hmoog Apr 26, 2022
fedd71f
Fix: fixed refactor related bugs
hmoog Apr 26, 2022
51ce998
Refactor: removed Transaction wrapping
hmoog Apr 26, 2022
91be826
Fix: fixed broken mocks
hmoog Apr 26, 2022
1f5136e
Update to latest hive.go version and fix out of order event error on …
jonastheis Apr 27, 2022
5b7e011
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
jonastheis Apr 27, 2022
0c7a6cf
Fix permissions in Docker file when mounting volume
jonastheis Apr 27, 2022
e7d22c1
Feat: started reworking snapshot logic
hmoog Apr 27, 2022
f5b773e
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
hmoog Apr 27, 2022
96b84ac
Feat: added OutputMetadata snapshot
hmoog Apr 27, 2022
e78aba1
Feat: added more snapshot stuff
hmoog Apr 27, 2022
403fd41
Feat: fixed create snapshot tool
hmoog Apr 28, 2022
26295a5
Fix snapshit generation
jonastheis Apr 28, 2022
d346746
Fix uninitialized events
jonastheis Apr 28, 2022
dfcdcfe
Fix: fixed problem in booker
hmoog Apr 28, 2022
6a7e407
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
hmoog Apr 28, 2022
8df6e21
Use eventloop instead of goroutines
jonastheis Apr 28, 2022
5ed0820
Add snapshot to Docker network and index outputs from snapshot when l…
jonastheis Apr 28, 2022
c003eb3
Fix: fixed waiting in tests
hmoog Apr 28, 2022
ba76ad4
Feat: debug
hmoog Apr 29, 2022
a9be1a1
Fix: fixed some stuff
hmoog Apr 30, 2022
60f9fa0
Fix: removed unused code
hmoog Apr 30, 2022
513486c
debug tests and stuff
jonastheis May 2, 2022
a03a31e
Feat: added debug outputs
hmoog May 2, 2022
407bc89
Fix one issue with out of order test
jonastheis May 2, 2022
aa06d1b
Hook forking events
jonastheis May 2, 2022
463dc90
Fix: fixed stuff
hmoog May 3, 2022
3ee53d1
Fix: fixed some stuff
hmoog May 3, 2022
7de6c52
Feat: refactored solidifier
hmoog May 3, 2022
49bd8f5
Fix: fix bug
hmoog May 3, 2022
dd63e7d
Fix: booker_test TestScenario_1
karimodm May 3, 2022
a826e59
Fix: fixed test
hmoog May 3, 2022
634877f
Fix: fixed test
hmoog May 3, 2022
dc1effe
Fix: fixed tests
hmoog May 3, 2022
4841291
Fix: fixed otv test
hmoog May 3, 2022
9f3553f
Fix: fixed broken plugins
hmoog May 3, 2022
2f78969
Fix: fixed go.mod
hmoog May 3, 2022
6c0a7d4
Fix: fixed some minor things
hmoog May 3, 2022
00ea803
Fix: fixed go.mod
hmoog May 3, 2022
c286f33
Fix: fixed broken test
hmoog May 3, 2022
b1cd8a1
Feat: TSA remove past-cone checks and unconfirmed weak references
karimodm May 4, 2022
1d87e9d
Feat: upgraded to latest hive.go
hmoog May 4, 2022
a8a8ea2
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
hmoog May 4, 2022
5e58e86
Feat: implemented commitment and proof systems for state commitments
hmoog May 7, 2022
8a054ba
Fix: fixed order in booking
hmoog May 8, 2022
6572076
tangle booker test
karimodm May 17, 2022
3ed1142
Fix TestMultiThreadedBookingAndForking
jonastheis May 17, 2022
d2f24a4
Fix: debug.Enabled race condition
karimodm May 18, 2022
32443f8
Fix: make tests more solid
karimodm May 18, 2022
4c61621
Feat: generic branchdag (#2204)
hmoog May 18, 2022
3cb999a
Bump hive version
karimodm May 18, 2022
1bb68f3
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
karimodm May 18, 2022
651afa9
Remove debugging prints
karimodm May 18, 2022
fc57087
Bump hive.go to fix serializer/v2 nested module
karimodm May 18, 2022
242e795
Fix: TestMultiThreadedBookingAndForking test
karimodm May 18, 2022
3dfe296
Refactor: renamed BranchDAG to ConflictDAG
hmoog May 18, 2022
ddc2226
Refactor: started cleaning up stuff
hmoog May 19, 2022
090b9e7
Fix: code warnings
karimodm May 19, 2022
f5262f7
Feat: removed MasterBranch
hmoog May 19, 2022
98f81aa
Feat: TestMultiThreadedBookingAndForkingNested
karimodm May 19, 2022
6f2375c
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
karimodm May 19, 2022
309694e
Fix: BranchDAG -> ConflictDAG renaming
karimodm May 19, 2022
e125f0c
Faster TestMultiThreadedBookingAndForkingNested
karimodm May 19, 2022
12e4242
Fix snapshot generation with new snapshotcreator tool
jonastheis May 20, 2022
7dfda40
Fix: fixed snapshit
hmoog May 20, 2022
4e2d019
Feat: feed outputs to the messagelayer Indexer
karimodm May 20, 2022
dc80612
Fix: make sure ConflictIDs are empty sets
karimodm May 20, 2022
2cf60b0
Fix snapshot generation for integration tests
jonastheis May 20, 2022
d0d047b
Fix common integration tests
jonastheis May 20, 2022
c6a5c7a
Fix autopeering integration test
jonastheis May 20, 2022
6dbbf03
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
jonastheis May 20, 2022
4b935fc
Remove diagnostics integration tests
jonastheis May 20, 2022
2f01840
Remove drng integration tests
jonastheis May 20, 2022
4d2060f
Fix: dashboard
karimodm May 20, 2022
7f45f7c
Fix: fixed some tests
hmoog May 20, 2022
624cc07
Fix: dashboard again
karimodm May 20, 2022
b6ac272
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
karimodm May 20, 2022
289cffd
Fix: fixed some stuff
hmoog May 20, 2022
525f016
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
jonastheis May 20, 2022
96752f4
Fix: fixed test
hmoog May 20, 2022
608615d
Fix: fixed stuff
hmoog May 20, 2022
2f28d75
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
jonastheis May 20, 2022
4c2c856
Fix: some unit tests
karimodm May 20, 2022
6cc4cb5
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
karimodm May 20, 2022
5708f2d
Fix mana integration tests
jonastheis May 20, 2022
bb68f80
Fix faucet integration tests
jonastheis May 20, 2022
2f0e57d
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
jonastheis May 20, 2022
2ef266a
Feat: renamed branchdag
hmoog May 20, 2022
09e41ad
Refactor: moved conflictdag package
hmoog May 20, 2022
fefea70
Refactor: refactored more conflictdag models
hmoog May 20, 2022
a4db2f9
Fix faucet integration tests
jonastheis May 22, 2022
e5d7a68
Fix value integration tests
jonastheis May 22, 2022
08d24a0
Fix nil pointer in conflicts dashboard
jonastheis May 23, 2022
62c540b
Fix reference creation for shallow dislike and TestConflictSpamAndMer…
jonastheis May 23, 2022
f67a4ff
Fix consensus integration tests
jonastheis May 23, 2022
56d70fb
Run integration tests for multithreaded tangle (#2217)
jonastheis May 23, 2022
830bae6
Fix: dashboard
karimodm May 23, 2022
c869593
Refactor: refactored code
hmoog May 23, 2022
b697553
Merge branch 'feat/multithreaded-tangle' of https://github.com/iotale…
hmoog May 23, 2022
74288b2
Fix: critical - return strongparent as-is if branch liked
karimodm May 23, 2022
672873f
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
karimodm May 23, 2022
ce5da3b
Refactor: cleaned up stuff
hmoog May 23, 2022
ba48729
Merge branch 'feat/multithreaded-tangle' of https://github.com/iotale…
hmoog May 23, 2022
fca6d1f
Merge develop
jonastheis May 24, 2022
87948db
Revert "Fix: critical - return strongparent as-is if branch liked"
karimodm May 24, 2022
2270d34
Fix issue where liked branch is not returned when LikedConflictMember…
jonastheis Apr 22, 2022
c2abca3
Add Feature network identities in snapshot creation tool
karimodm May 24, 2022
f2f4cfc
WIP
jonastheis May 24, 2022
2f3beb0
Make code compile
jonastheis May 24, 2022
fbb60e1
Fix output unmarshallimg
jonastheis May 24, 2022
7a773c1
Fix unit tests
jonastheis May 24, 2022
6a62ddf
Fix: do not evaluate time difference if message approves Genesis
karimodm May 25, 2022
312f34f
Fix: Faucet properly attach async events
karimodm May 25, 2022
f55c63a
Feat: cleaned up first model
hmoog May 25, 2022
b4b08f9
Adjust models in conflict dag
jonastheis May 25, 2022
c11acc3
Fix: fixed conflictdag
hmoog May 25, 2022
fe74bad
Fix: fixed some more stuff
hmoog May 25, 2022
026cdea
fixed test
hmoog May 26, 2022
efddc1f
Ledger tests pass
jonastheis May 26, 2022
0aa7a80
Ledger tests and devnetvm tests pass again
jonastheis May 26, 2022
7dcd90d
Fix indexer
jonastheis May 26, 2022
6fff40f
Fix objectstorage interface for some objects
jonastheis May 26, 2022
b496f01
Use serix for model.Model serialization
jonastheis May 26, 2022
ca29866
Fix more stuff
jonastheis May 26, 2022
61b2b30
Fix: fixed stuff
hmoog May 27, 2022
9967280
git pushMerge branch 'feat/merge-multithreaded-tangle' of https://git…
hmoog May 27, 2022
eef829a
Refactor: removed unnecessary helper
hmoog May 27, 2022
fb8e984
Feat: cleaned up more code
hmoog May 27, 2022
c9b31d5
Refactor: changed to new models
hmoog May 27, 2022
951431d
Fix more stuff
jonastheis May 27, 2022
b9dde6a
Merge branch 'feat/merge-multithreaded-tangle' of github.com:iotaledg…
jonastheis May 27, 2022
f15db0e
Fix snapshit again
jonastheis May 27, 2022
865d60d
Fix: fixed bug with models
hmoog May 27, 2022
62c13e1
Merge branch 'feat/multithreaded-tangle' into feat/merge-multithreade…
karimodm May 27, 2022
44efe9d
Bump hive.go
karimodm May 27, 2022
585d059
Few fixes and prints
karimodm May 27, 2022
6e69551
Feat: added test for outputcommitment
hmoog May 28, 2022
5d2daac
Add manual serialization to Ouput types to enable correct interface (…
jonastheis May 30, 2022
54a7f53
Merge branch 'feat/merge-multithreaded-tangle' of github.com:iotaledg…
jonastheis May 30, 2022
1619653
go mod tidy
jonastheis May 30, 2022
de7cf46
Fix value test hopefully
jonastheis May 30, 2022
d5e0947
Merge pull request #2218 from iotaledger/feat/merge-multithreaded-tangle
jonastheis May 30, 2022
31f7f6e
Merge branch 'develop' of github.com:iotaledger/goshimmer into feat/m…
jonastheis May 30, 2022
3c7363e
Fix unsanitized user input print
jonastheis May 30, 2022
dfa92ee
Fix: removed unused identifier
hmoog May 31, 2022
a56c0e4
Update CHANGELOG.md
jonastheis May 31, 2022
e13ceb5
Update pkger
jonastheis May 31, 2022
002f109
Merge branch 'feat/multithreaded-tangle' of github.com:iotaledger/gos…
jonastheis May 31, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
97 changes: 0 additions & 97 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,55 +156,6 @@ jobs:
name: ${{ env.TEST_NAME }}
path: tools/integration-tests/logs

drng:
name: drng
env:
TEST_NAME: drng
runs-on: ubuntu-latest
steps:

- name: Checkout repository
uses: actions/checkout@v2

- name: Cache Go modules for tester container
uses: actions/cache@v2
with:
path: |
~/go
# make sure concurrent runs (not really supported) do not match the same key but instead fall back to a reasonable cache
key: ${{ runner.os }}-it-go-${{ hashFiles('tools/integration-tests/tester/go.sum') }}-${{ github.job }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-it-go-${{ hashFiles('tools/integration-tests/tester/go.sum') }}-
${{ runner.os }}-it-go-

- name: Build GoShimmer image
run: |
docker build \
--build-arg DOWNLOAD_SNAPSHOT=0 \
-t iotaledger/goshimmer .

- name: Pull additional Docker images
run: |
docker pull angelocapossele/drand:v1.1.4

- name: Run integration tests
run: |
export CURRENT_UID=$(id -u):$(id -g)
docker-compose -f tools/integration-tests/tester/docker-compose.ci.yml up --abort-on-container-exit --exit-code-from tester

- name: Create logs from tester
if: always()
run: |
docker logs tester &> tools/integration-tests/logs/tester.log

- name: Save logs as artifacts
if: always()
uses: actions/upload-artifact@v1
with:
name: ${{ env.TEST_NAME }}
path: tools/integration-tests/logs


value:
name: value
env:
Expand Down Expand Up @@ -349,51 +300,3 @@ jobs:
with:
name: ${{ env.TEST_NAME }}
path: tools/integration-tests/logs

diagnostics:
name: diagnostics
env:
TEST_NAME: diagnostics
runs-on: ubuntu-latest
steps:

- name: Check out code
uses: actions/checkout@v2

- name: Cache Go modules for tester container
uses: actions/cache@v2
with:
path: |
~/go
# make sure concurrent runs (not really supported) do not match the same key but instead fall back to a reasonable cache
key: ${{ runner.os }}-it-go-${{ hashFiles('tools/integration-tests/tester/go.sum') }}-${{ github.job }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-it-go-${{ hashFiles('tools/integration-tests/tester/go.sum') }}-
${{ runner.os }}-it-go-

- name: Build GoShimmer image
run: |
docker build \
--build-arg DOWNLOAD_SNAPSHOT=0 \
-t iotaledger/goshimmer .

- name: Pull additional Docker images
run: |
docker pull alpine/socat:1.7.4.3-r0

- name: Run integration tests
run: |
export CURRENT_UID=$(id -u):$(id -g)
docker-compose -f tools/integration-tests/tester/docker-compose.ci.yml up --abort-on-container-exit --exit-code-from tester

- name: Create logs from tester
if: always()
run: |
docker logs tester &> tools/integration-tests/logs/tester.log

- name: Save logs as artifacts
if: always()
uses: actions/upload-artifact@v1
with:
name: ${{ env.TEST_NAME }}
path: tools/integration-tests/logs
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ FROM prepare-runtime as debugger-enabled-0

ENTRYPOINT ["/app/goshimmer", "--config=/app/config.json"]

# We execute this stage only if debugging is enabled, i.e REMOTE_DEBUGGIN==1
# We execute this stage only if debugging is enabled, i.e REMOTE_DEBUGGING==1
FROM prepare-runtime as debugger-enabled-1
EXPOSE 40000

Expand Down
10 changes: 5 additions & 5 deletions client/diagnostics.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (api *GoShimmerAPI) GetDiagnosticsMessagesByRank(rank uint64) (*csv.Reader,
// GetDiagnosticsUtxoDag runs diagnostics over utxo dag.
// Returns csv with the following fields:
//
// ID,IssuanceTime,SolidTime,AccessManaPledgeID,ConsensusManaPledgeID,Inputs,Outputs,Attachments,
// ID,IssuanceTime,BookingTime,AccessManaPledgeID,ConsensusManaPledgeID,Inputs,Outputs,Attachments,
// BranchID,Conflicting,LazyBooked,GradeOfFinality,GradeOfFinalityTime
func (api *GoShimmerAPI) GetDiagnosticsUtxoDag() (*csv.Reader, error) {
return api.diagnose(RouteDiagnosticsUtxoDag)
Expand All @@ -55,23 +55,23 @@ func (api *GoShimmerAPI) GetDiagnosticsUtxoDag() (*csv.Reader, error) {
// GetDiagnosticsBranches runs diagnostics over branches.
// Returns csv with the following fields:
//
// ID,ConflictSet,IssuanceTime,SolidTime,LazyBooked,GradeOfFinality
// ID,ConflictSet,IssuanceTime,BookingTime,LazyBooked,GradeOfFinality
func (api *GoShimmerAPI) GetDiagnosticsBranches() (*csv.Reader, error) {
return api.diagnose(RouteDiagnosticsBranches)
}

// GetDiagnosticsLazyBookedBranches runs diagnostics over lazy booked branches.
// Returns csv with the following fields:
//
// ID,ConflictSet,IssuanceTime,SolidTime,LazyBooked,GradeOfFinality
// ID,ConflictSet,IssuanceTime,BookingTime,LazyBooked,GradeOfFinality
func (api *GoShimmerAPI) GetDiagnosticsLazyBookedBranches() (*csv.Reader, error) {
return api.diagnose(RouteDiagnosticsLazyBookedBranches)
}

// GetDiagnosticsInvalidBranches runs diagnostics over invalid branches.
// Returns csv with the following fields:
//
// ID,ConflictSet,IssuanceTime,SolidTime,LazyBooked,GradeOfFinality
// ID,ConflictSet,IssuanceTime,BookingTime,LazyBooked,GradeOfFinality
func (api *GoShimmerAPI) GetDiagnosticsInvalidBranches() (*csv.Reader, error) {
return api.diagnose(RouteDiagnosticsInvalidBranches)
}
Expand All @@ -84,7 +84,7 @@ func (api *GoShimmerAPI) GetDiagnosticsTips() (*csv.Reader, error) {
// GetDiagnosticsDRNG runs diagnostics for DRNG
// Returns csv with the following fields:
//
// ID,IssuerID,IssuerPublicKey,IssuanceTime,ArrivalTime,SolidTime,ScheduledTime,BookedTime,
// ID,IssuerID,IssuerPublicKey,IssuanceTime,ArrivalTime,BookingTime,ScheduledTime,BookedTime,
// dRNGPayloadType,InstanceID,Round,PreviousSignature,Signature,DistributedPK
func (api *GoShimmerAPI) GetDiagnosticsDRNG() (*csv.Reader, error) {
return api.diagnose(RouteDiagnosticsDRNG)
Expand Down
10 changes: 6 additions & 4 deletions client/evilspammer/spammer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import (
"github.com/cockroachdb/errors"

"github.com/iotaledger/goshimmer/client/evilwallet"
"github.com/iotaledger/goshimmer/packages/ledgerstate"
"github.com/iotaledger/goshimmer/packages/ledger/utxo"
"github.com/iotaledger/goshimmer/packages/ledger/vm/devnetvm"

"github.com/iotaledger/hive.go/configuration"
"github.com/iotaledger/hive.go/logger"
"github.com/iotaledger/hive.go/types"
Expand Down Expand Up @@ -184,7 +186,7 @@ func (s *Spammer) StopSpamming() {

// PostTransaction use provided client to issue a transaction. It chooses API method based on Spammer options. Counts errors,
// counts transactions and provides debug logs.
func (s *Spammer) PostTransaction(tx *ledgerstate.Transaction, clt evilwallet.Client) {
func (s *Spammer) PostTransaction(tx *devnetvm.Transaction, clt evilwallet.Client) {
if tx == nil {
s.log.Debug(ErrTransactionIsNil)
s.ErrCounter.CountError(ErrTransactionIsNil)
Expand All @@ -197,7 +199,7 @@ func (s *Spammer) PostTransaction(tx *ledgerstate.Transaction, clt evilwallet.Cl
}

var err error
var txID ledgerstate.TransactionID
var txID utxo.TransactionID
txID, err = clt.PostTransaction(tx)
if err != nil {
s.log.Debug(ErrFailPostTransaction)
Expand All @@ -213,7 +215,7 @@ func (s *Spammer) PostTransaction(tx *ledgerstate.Transaction, clt evilwallet.Cl
return
}

func (s *Spammer) handleSolidityForReuseOutputs(clt evilwallet.Client, tx *ledgerstate.Transaction) (ok bool) {
func (s *Spammer) handleSolidityForReuseOutputs(clt evilwallet.Client, tx *devnetvm.Transaction) (ok bool) {
ok = true
ok = s.EvilWallet.AwaitInputsSolidity(tx.Essence().Inputs(), clt)
if s.EvilScenario.OutputWallet.Type() == evilwallet.Reuse {
Expand Down
5 changes: 3 additions & 2 deletions client/evilspammer/spamming_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"sync"

"github.com/cockroachdb/errors"

"github.com/iotaledger/goshimmer/client/evilwallet"
"github.com/iotaledger/goshimmer/packages/ledgerstate"
"github.com/iotaledger/goshimmer/packages/ledger/vm/devnetvm"
)

func DataSpammingFunction(s *Spammer) {
Expand Down Expand Up @@ -41,7 +42,7 @@ func CustomConflictSpammingFunc(s *Spammer) {
wg := sync.WaitGroup{}
for i, tx := range txs {
wg.Add(1)
go func(clt evilwallet.Client, tx *ledgerstate.Transaction) {
go func(clt evilwallet.Client, tx *devnetvm.Transaction) {
defer wg.Done()
s.PostTransaction(tx, clt)
}(clients[i], tx)
Expand Down
28 changes: 14 additions & 14 deletions client/evilwallet/aliasmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ package evilwallet
import (
"sync"

"github.com/cockroachdb/errors"
"go.uber.org/atomic"

"github.com/cockroachdb/errors"
"github.com/iotaledger/goshimmer/packages/ledgerstate"
"github.com/iotaledger/goshimmer/packages/ledger/vm/devnetvm"
)

// region AliasManager /////////////////////////////////////////////////////////////////////////////////////////////////

// AliasManager is the manager for output aliases.
type AliasManager struct {
outputMap map[string]ledgerstate.Output
inputMap map[string]ledgerstate.Input
outputMap map[string]devnetvm.Output
inputMap map[string]devnetvm.Input

outputAliasCount *atomic.Uint64
mu sync.RWMutex
Expand All @@ -23,14 +23,14 @@ type AliasManager struct {
// NewAliasManager creates and returns a new AliasManager.
func NewAliasManager() *AliasManager {
return &AliasManager{
outputMap: make(map[string]ledgerstate.Output),
inputMap: make(map[string]ledgerstate.Input),
outputMap: make(map[string]devnetvm.Output),
inputMap: make(map[string]devnetvm.Input),
outputAliasCount: atomic.NewUint64(0),
}
}

// AddOutputAlias maps the given outputAliasName to output, if there's duplicate outputAliasName, it will be overwritten.
func (a *AliasManager) AddOutputAlias(output ledgerstate.Output, aliasName string) {
func (a *AliasManager) AddOutputAlias(output devnetvm.Output, aliasName string) {
a.mu.Lock()
defer a.mu.Unlock()

Expand All @@ -39,7 +39,7 @@ func (a *AliasManager) AddOutputAlias(output ledgerstate.Output, aliasName strin
}

// AddInputAlias adds an input alias.
func (a *AliasManager) AddInputAlias(input ledgerstate.Input, aliasName string) {
func (a *AliasManager) AddInputAlias(input devnetvm.Input, aliasName string) {
a.mu.Lock()
defer a.mu.Unlock()

Expand All @@ -48,15 +48,15 @@ func (a *AliasManager) AddInputAlias(input ledgerstate.Input, aliasName string)
}

// GetInput returns the input for the alias specified.
func (a *AliasManager) GetInput(aliasName string) (ledgerstate.Input, bool) {
func (a *AliasManager) GetInput(aliasName string) (devnetvm.Input, bool) {
a.mu.RLock()
defer a.mu.RUnlock()
in, ok := a.inputMap[aliasName]
return in, ok
}

// GetOutput returns the output for the alias specified.
func (a *AliasManager) GetOutput(aliasName string) ledgerstate.Output {
func (a *AliasManager) GetOutput(aliasName string) devnetvm.Output {
a.mu.RLock()
defer a.mu.RUnlock()

Expand All @@ -68,8 +68,8 @@ func (a *AliasManager) ClearAllAliases() {
a.mu.Lock()
defer a.mu.Unlock()

a.inputMap = make(map[string]ledgerstate.Input)
a.outputMap = make(map[string]ledgerstate.Output)
a.inputMap = make(map[string]devnetvm.Input)
a.outputMap = make(map[string]devnetvm.Output)
}

// ClearAliases clears provided aliases.
Expand All @@ -86,7 +86,7 @@ func (a *AliasManager) ClearAliases(aliases ScenarioAlias) {
}

// AddOutputAliases batch adds the outputs their respective aliases.
func (a *AliasManager) AddOutputAliases(outputs []ledgerstate.Output, aliases []string) error {
func (a *AliasManager) AddOutputAliases(outputs []devnetvm.Output, aliases []string) error {
if len(outputs) != len(aliases) {
return errors.New("mismatch outputs and aliases length")
}
Expand All @@ -102,7 +102,7 @@ func (a *AliasManager) AddInputAliases(inputs []*Output, aliases []string) error
return errors.New("mismatch outputs and aliases length")
}
for i, out := range inputs {
input := ledgerstate.NewUTXOInput(out.OutputID)
input := devnetvm.NewUTXOInput(out.OutputID)
a.AddInputAlias(input, aliases[i])
}
return nil
Expand Down
Loading