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

test(boot): Fast USDC chain impact #10931

Draft
wants to merge 53 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
9a07224
fix(fast-usdc): .exit() all internal temporary seats
dckc Feb 3, 2025
26e7088
feat(fast-usdc): expose deleteCompletedTx via creatorFacet
dckc Feb 3, 2025
744f4ad
feat(fast-usdc): core eval script to deleteCompletedTxs
dckc Feb 3, 2025
60b5062
chore(fast-usdc): don't write-chain-info when testing Fast USDC
dckc Feb 4, 2025
d244bd0
chore(fast-usdc): refine return type of Offers.deposit
dckc Jan 31, 2025
56c33f4
test(fast-usdc): heap usage of durable setStore
dckc Feb 6, 2025
4e7773b
fix: makeFakeStoragKit: '' key deletes storage entry
dckc Feb 3, 2025
5309644
docs(swing-store): listAllSnapshots was missing from SnapStoreDebug
dckc Jan 31, 2025
7d79d29
feat(vat-map.py): support endoZipBase64 moduleFormat
dckc Feb 5, 2025
810fc05
chore(boot): thread archiveSnapshot option thru makeSwingsetTestKit
dckc Feb 6, 2025
fdf28db
chore(deps): swing-store for fast-usdc chain impact test
dckc Jan 31, 2025
b4475db
test: Fast USDC chain impact test (WIP)
dckc Jan 31, 2025
165173d
chore: extract relevant kernel stats
dckc Jan 31, 2025
fa0517f
WIP: access uncompressedSize of heap snapshots of vats
dckc Jan 31, 2025
f17b7c0
WIP: 2 observations: post-boot, post-ocw-provision
dckc Jan 31, 2025
11814b9
chore: start fastUsdc
dckc Jan 31, 2025
b0201a8
WIP: use itest-fast-usdc-config
dckc Feb 4, 2025
d892218
WIP: test LP deposit activity
dckc Jan 31, 2025
d298dce
test: kernel stats after advance, mint
dckc Feb 1, 2025
e0f39e1
WIP: iteration-based test
dckc Feb 3, 2025
046da14
chore: writeStats
dckc Feb 3, 2025
1338970
WIP: clean up debug logging
dckc Feb 3, 2025
c4adb14
WIP: flatten stats
dckc Feb 3, 2025
b6b8c7f
oops: blockHash; cctp nonce
dckc Feb 3, 2025
b76bdb3
WIP: struggling with ADVANCING and such
dckc Feb 3, 2025
8f7143c
WIP: fix some amount math
dckc Feb 3, 2025
a8bdf0b
WIP: punt on increasing seq num in ack
dckc Feb 3, 2025
b3cf853
WIP: punt on advance in promise.all()
dckc Feb 3, 2025
e5bfa00
WIP: all but the channel is stateless
dckc Feb 3, 2025
3ab6cce
WIP: skip tests other than iterations
dckc Feb 3, 2025
e321ca6
WIP: avoid withdraw failures
dckc Feb 3, 2025
f00c68e
test: 16 iterations
dckc Feb 3, 2025
7a02c69
smaller iterations, more of them
dckc Feb 3, 2025
f709623
chore: getting vstorage stats is not optional
dckc Feb 3, 2025
19a3a0a
chore: doCoreEval
dckc Feb 3, 2025
5fa815f
test pruning vstorage
dckc Feb 3, 2025
b51d32d
chore: prune vstorage every 8 iterations
dckc Feb 3, 2025
23e7868
prune dead code
dckc Feb 3, 2025
d70b85c
chore: dump kernel before / after simulation iterations
dckc Feb 3, 2025
405e8d7
chore: separate Fast USDC vstorage consumption
dckc Feb 3, 2025
8f26dfb
chore: prune vstorage before reapAllVats
dckc Feb 3, 2025
f4c8c90
WIP: track vstorage size
dckc Feb 4, 2025
c7bbdf2
refactor(impact): move test.before() up
dckc Feb 4, 2025
52ac591
chore: updateNewCellBlockHeight() between iterations
dckc Feb 4, 2025
dbb5291
impact: dump kernel table in each iteration group
dckc Feb 4, 2025
5b53969
time too
dckc Feb 4, 2025
ab5e161
chore: titles of skipped tests
dckc Feb 5, 2025
786f3d4
count computrons
dckc Feb 5, 2025
9f6d9b7
WIP: punt logging all observations
dckc Feb 5, 2025
2bf2142
WIP: capture snapshots on every iteration
dckc Feb 6, 2025
b69831a
WIP: archive snapshots
dckc Feb 6, 2025
e7e8b07
SQUASHME: delete script moved
dckc Feb 6, 2025
73461e1
WIP(boot): raise blockComputeLimit to accomodate a whole iteration
dckc Feb 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions packages/SwingSet/misc-tools/vat-map.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import sys, json, gzip, re, time
from collections import defaultdict
from pprint import pprint
import zipfile
import base64
import json
from io import BytesIO

# python vat-map.py SLOGFILE[.gz] > vat-map.json
#
Expand Down Expand Up @@ -31,6 +35,12 @@ def entrypoint_of_bundle(vatID, bundle):
source = bundle["source"]
mo = EPRE.search(source)
return mo.group(1)
elif mf == 'endoZipBase64':
zdata = base64.b64decode(bundle["endoZipBase64"])
arc = zipfile.ZipFile(BytesIO(zdata))
cmap = json.load(arc.open('compartment-map.json'))
entry = cmap['entry']
return entry['compartment'] + entry['module'].replace('./', '/')
else:
print("unknown moduleFormat='%s' in vat %s" % (mf, vatID))
return None
Expand All @@ -57,7 +67,7 @@ def entrypoint_of_bundle(vatID, bundle):
name = None
bundle = data["vatSourceBundle"]
entrypoint = entrypoint_of_bundle(vatID, bundle)
if entrypoint == "packages/zoe/contractFacet.js":
if 'zoe' in entrypoint and entrypoint.endswith("/contractFacet.js"):
unnamed_zcf_vats.add(vatID)
name = "<zcf>"
else:
Expand All @@ -70,9 +80,10 @@ def entrypoint_of_bundle(vatID, bundle):
if vatID in unnamed_zcf_vats:
kd = data["kd"]
if kd[0] == "message":
method = kd[2]["method"]
import pdb; pdb.set_trace()
method = kd[2]["methargs"]['body'].split('"', 2)[1]
if method == "executeContract":
bundle = json.loads(kd[2]["args"]["body"])[0]
bundle = json.loads(kd[2]["methargs"]["body"][1:])[1]
entrypoint = entrypoint_of_bundle(vatID, bundle)
name = abbreviations.get(entrypoint, entrypoint)
vats[vatID]["name"] = name
Expand Down
1 change: 1 addition & 0 deletions packages/boot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"@agoric/governance": "^0.10.3",
"@agoric/store": "^0.9.2",
"@agoric/swingset-liveslots": "^0.10.2",
"@agoric/swing-store": "^0.9.1",
"@endo/base64": "^1.0.9",
"@endo/patterns": "^1.4.8",
"ava": "^5.3.0",
Expand Down
Loading
Loading