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

stop mounting fs in debug mode #178

Merged
merged 3 commits into from
Sep 10, 2024
Merged
Changes from all commits
Commits
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
12 changes: 5 additions & 7 deletions packages/synthetic-chain/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"name": "@agoric/synthetic-chain",
"version": "0.2.1",
"version": "0.3.0",
"description": "Utilities to build a chain and test proposals atop it",
"bin": {
"synthetic-chain": "dist/cli/cli.js"
},
"bin": "dist/cli/cli.js",
"main": "./dist/lib/index.js",
"type": "module",
"module": "./dist/lib/index.js",
@@ -22,16 +20,16 @@
"node": "^18.19 || ^20.9"
},
"dependencies": {
"@endo/zip": "^1.0.6",
"@endo/zip": "^1.0.7",
"better-sqlite3": "^9.6.0",
"chalk": "^5.3.0",
"cosmjs-types": "^0.9.0",
"execa": "^8.0.1"
"execa": "^9.3.1"
},
"devDependencies": {
"@agoric/cosmic-proto": "^0.4.1-dev-c5284e4.0",
"@types/better-sqlite3": "^7.6.11",
"@types/node": "^18.19.46",
"@types/node": "^18.19.50",
"ava": "^6.1.3",
"tsimp": "^2.0.11",
"tsup": "^8.2.4",
8 changes: 5 additions & 3 deletions packages/synthetic-chain/src/cli/run.ts
Original file line number Diff line number Diff line change
@@ -22,11 +22,13 @@ export const debugTestImage = (proposal: ProposalInfo) => {
And within that shell:
cd /usr/src/proposals/${proposal.path} && ./test.sh

The 'proposals' path is mounted in the container so your edits will appear there.
To edit files you can use terminal tools like vim, or mount the container in your IDE.
In VS Code the command is:
Dev Containers: Attach to Running Container...
`,
);

// start the chain, with ports mapped and the repo mounted at /usr/src
const cmd = `docker run --publish 26657:26657 --publish 1317:1317 --publish 9090:9090 --mount type=bind,src=./proposals,dst=/usr/src/proposals --interactive --tty --entrypoint /usr/src/upgrade-test-scripts/start_agd.sh ${name}`;
// start the chain with ports mapped
const cmd = `docker run --publish 26657:26657 --publish 1317:1317 --publish 9090:9090 --interactive --tty --entrypoint /usr/src/upgrade-test-scripts/start_agd.sh ${name}`;
execSync(cmd, { stdio: 'inherit' });
};
136 changes: 77 additions & 59 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -24,14 +24,14 @@ __metadata:
resolution: "@agoric/synthetic-chain@workspace:packages/synthetic-chain"
dependencies:
"@agoric/cosmic-proto": "npm:^0.4.1-dev-c5284e4.0"
"@endo/zip": "npm:^1.0.6"
"@endo/zip": "npm:^1.0.7"
"@types/better-sqlite3": "npm:^7.6.11"
"@types/node": "npm:^18.19.46"
"@types/node": "npm:^18.19.50"
ava: "npm:^6.1.3"
better-sqlite3: "npm:^9.6.0"
chalk: "npm:^5.3.0"
cosmjs-types: "npm:^0.9.0"
execa: "npm:^8.0.1"
execa: "npm:^9.3.1"
tsimp: "npm:^2.0.11"
tsup: "npm:^8.2.4"
typescript: "npm:^5.5.4"
@@ -238,10 +238,10 @@ __metadata:
languageName: node
linkType: hard

"@endo/zip@npm:^1.0.6":
version: 1.0.6
resolution: "@endo/zip@npm:1.0.6"
checksum: 10c0/70549f380db9b2454875416359348ffabc6eeecd550c8b63016d26e384335e498eb7ebfafb45cd69a0c64d093d89d399dedb37408ca6764f13ebaf0d720d8ad2
"@endo/zip@npm:^1.0.7":
version: 1.0.7
resolution: "@endo/zip@npm:1.0.7"
checksum: 10c0/a1c0d155448ce877012b34c8fe8cd3a58de9eb807514c81cddeebb802ee8e552b27d8a9a40fab3f3e4c49e0cb7fea6902fa1dd12a23ff6f30b56161fc3edc1f8
languageName: node
linkType: hard

@@ -762,13 +762,27 @@ __metadata:
languageName: node
linkType: hard

"@sec-ant/readable-stream@npm:^0.4.1":
version: 0.4.1
resolution: "@sec-ant/readable-stream@npm:0.4.1"
checksum: 10c0/64e9e9cf161e848067a5bf60cdc04d18495dc28bb63a8d9f8993e4dd99b91ad34e4b563c85de17d91ffb177ec17a0664991d2e115f6543e73236a906068987af
languageName: node
linkType: hard

"@sindresorhus/merge-streams@npm:^2.1.0":
version: 2.3.0
resolution: "@sindresorhus/merge-streams@npm:2.3.0"
checksum: 10c0/69ee906f3125fb2c6bb6ec5cdd84e8827d93b49b3892bce8b62267116cc7e197b5cccf20c160a1d32c26014ecd14470a72a5e3ee37a58f1d6dadc0db1ccf3894
languageName: node
linkType: hard

"@sindresorhus/merge-streams@npm:^4.0.0":
version: 4.0.0
resolution: "@sindresorhus/merge-streams@npm:4.0.0"
checksum: 10c0/482ee543629aa1933b332f811a1ae805a213681ecdd98c042b1c1b89387df63e7812248bb4df3910b02b3cc5589d3d73e4393f30e197c9dde18046ccd471fc6b
languageName: node
linkType: hard

"@types/better-sqlite3@npm:^7.6.11":
version: 7.6.11
resolution: "@types/better-sqlite3@npm:7.6.11"
@@ -810,12 +824,12 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:^18.19.46":
version: 18.19.46
resolution: "@types/node@npm:18.19.46"
"@types/node@npm:^18.19.50":
version: 18.19.50
resolution: "@types/node@npm:18.19.50"
dependencies:
undici-types: "npm:~5.26.4"
checksum: 10c0/9b4aae9d2bd84f450f4e64f84d793b8867f7caaa66d0bfff2babf45cd2bb3836f245deb12ebf145da267e39a31a8d9a3484012c2b0a16894d384b66bb0c2b1b5
checksum: 10c0/36e6bc9eb47213ce94a868dad9504465ad89fba6af9f7954e22bb27fb17a32ac495f263d0cf4fdaee74becd7b2629609a446ec8c2b59b7a07bd587567c8a4782
languageName: node
linkType: hard

@@ -1840,20 +1854,23 @@ __metadata:
languageName: node
linkType: hard

"execa@npm:^8.0.1":
version: 8.0.1
resolution: "execa@npm:8.0.1"
"execa@npm:^9.3.1":
version: 9.3.1
resolution: "execa@npm:9.3.1"
dependencies:
"@sindresorhus/merge-streams": "npm:^4.0.0"
cross-spawn: "npm:^7.0.3"
get-stream: "npm:^8.0.1"
human-signals: "npm:^5.0.0"
is-stream: "npm:^3.0.0"
merge-stream: "npm:^2.0.0"
npm-run-path: "npm:^5.1.0"
onetime: "npm:^6.0.0"
figures: "npm:^6.1.0"
get-stream: "npm:^9.0.0"
human-signals: "npm:^8.0.0"
is-plain-obj: "npm:^4.1.0"
is-stream: "npm:^4.0.1"
npm-run-path: "npm:^5.2.0"
pretty-ms: "npm:^9.0.0"
signal-exit: "npm:^4.1.0"
strip-final-newline: "npm:^3.0.0"
checksum: 10c0/2c52d8775f5bf103ce8eec9c7ab3059909ba350a5164744e9947ed14a53f51687c040a250bda833f906d1283aa8803975b84e6c8f7a7c42f99dc8ef80250d1af
strip-final-newline: "npm:^4.0.0"
yoctocolors: "npm:^2.0.0"
checksum: 10c0/113979ff56575f6cb69fd021eb3894a674fb59b264f5e8c2b9b30e301629abc4f44cee881e680f9fb3b7d4956645df76a2d8c0006869dea985f96ec65f07b226
languageName: node
linkType: hard

@@ -1900,7 +1917,7 @@ __metadata:
languageName: node
linkType: hard

"figures@npm:^6.0.1":
"figures@npm:^6.0.1, figures@npm:^6.1.0":
version: 6.1.0
resolution: "figures@npm:6.1.0"
dependencies:
@@ -2091,10 +2108,13 @@ __metadata:
languageName: node
linkType: hard

"get-stream@npm:^8.0.1":
version: 8.0.1
resolution: "get-stream@npm:8.0.1"
checksum: 10c0/5c2181e98202b9dae0bb4a849979291043e5892eb40312b47f0c22b9414fc9b28a3b6063d2375705eb24abc41ecf97894d9a51f64ff021511b504477b27b4290
"get-stream@npm:^9.0.0":
version: 9.0.1
resolution: "get-stream@npm:9.0.1"
dependencies:
"@sec-ant/readable-stream": "npm:^0.4.1"
is-stream: "npm:^4.0.1"
checksum: 10c0/d70e73857f2eea1826ac570c3a912757dcfbe8a718a033fa0c23e12ac8e7d633195b01710e0559af574cbb5af101009b42df7b6f6b29ceec8dbdf7291931b948
languageName: node
linkType: hard

@@ -2316,10 +2336,10 @@ __metadata:
languageName: node
linkType: hard

"human-signals@npm:^5.0.0":
version: 5.0.0
resolution: "human-signals@npm:5.0.0"
checksum: 10c0/5a9359073fe17a8b58e5a085e9a39a950366d9f00217c4ff5878bd312e09d80f460536ea6a3f260b5943a01fe55c158d1cea3fc7bee3d0520aeef04f6d915c82
"human-signals@npm:^8.0.0":
version: 8.0.0
resolution: "human-signals@npm:8.0.0"
checksum: 10c0/e4dac4f7d3eb791ed04129fc6a85bd454a9102d3e3b76c911d0db7057ebd60b2956b435b5b5712aec18960488ede3c21ef7c56e42cdd70760c0d84d3c05cd92e
languageName: node
linkType: hard

@@ -2472,6 +2492,13 @@ __metadata:
languageName: node
linkType: hard

"is-plain-obj@npm:^4.1.0":
version: 4.1.0
resolution: "is-plain-obj@npm:4.1.0"
checksum: 10c0/32130d651d71d9564dc88ba7e6fda0e91a1010a3694648e9f4f47bb6080438140696d3e3e15c741411d712e47ac9edc1a8a9de1fe76f3487b0d90be06ac9975e
languageName: node
linkType: hard

"is-plain-object@npm:^5.0.0":
version: 5.0.0
resolution: "is-plain-object@npm:5.0.0"
@@ -2493,10 +2520,10 @@ __metadata:
languageName: node
linkType: hard

"is-stream@npm:^3.0.0":
version: 3.0.0
resolution: "is-stream@npm:3.0.0"
checksum: 10c0/eb2f7127af02ee9aa2a0237b730e47ac2de0d4e76a4a905a50a11557f2339df5765eaea4ceb8029f1efa978586abe776908720bfcb1900c20c6ec5145f6f29d8
"is-stream@npm:^4.0.1":
version: 4.0.1
resolution: "is-stream@npm:4.0.1"
checksum: 10c0/2706c7f19b851327ba374687bc4a3940805e14ca496dc672b9629e744d143b1ad9c6f1b162dece81c7bfbc0f83b32b61ccc19ad2e05aad2dd7af347408f60c7f
languageName: node
linkType: hard

@@ -2782,13 +2809,6 @@ __metadata:
languageName: node
linkType: hard

"mimic-fn@npm:^4.0.0":
version: 4.0.0
resolution: "mimic-fn@npm:4.0.0"
checksum: 10c0/de9cc32be9996fd941e512248338e43407f63f6d497abe8441fa33447d922e927de54d4cc3c1a3c6d652857acd770389d5a3823f311a744132760ce2be15ccbf
languageName: node
linkType: hard

"mimic-function@npm:^5.0.0":
version: 5.0.1
resolution: "mimic-function@npm:5.0.1"
@@ -3105,12 +3125,12 @@ __metadata:
languageName: node
linkType: hard

"npm-run-path@npm:^5.1.0":
version: 5.2.0
resolution: "npm-run-path@npm:5.2.0"
"npm-run-path@npm:^5.2.0":
version: 5.3.0
resolution: "npm-run-path@npm:5.3.0"
dependencies:
path-key: "npm:^4.0.0"
checksum: 10c0/7963c1f98e42afebe9524a08b0881477ec145aab34f6018842a315422b25ad40e015bdee709b697571e5efda2ecfa2640ee917d92674e4de1166fa3532a211b1
checksum: 10c0/124df74820c40c2eb9a8612a254ea1d557ddfab1581c3e751f825e3e366d9f00b0d76a3c94ecd8398e7f3eee193018622677e95816e8491f0797b21e30b2deba
languageName: node
linkType: hard

@@ -3158,15 +3178,6 @@ __metadata:
languageName: node
linkType: hard

"onetime@npm:^6.0.0":
version: 6.0.0
resolution: "onetime@npm:6.0.0"
dependencies:
mimic-fn: "npm:^4.0.0"
checksum: 10c0/4eef7c6abfef697dd4479345a4100c382d73c149d2d56170a54a07418c50816937ad09500e1ed1e79d235989d073a9bade8557122aee24f0576ecde0f392bb6c
languageName: node
linkType: hard

"p-map@npm:^4.0.0":
version: 4.0.0
resolution: "p-map@npm:4.0.0"
@@ -3893,10 +3904,10 @@ __metadata:
languageName: node
linkType: hard

"strip-final-newline@npm:^3.0.0":
version: 3.0.0
resolution: "strip-final-newline@npm:3.0.0"
checksum: 10c0/a771a17901427bac6293fd416db7577e2bc1c34a19d38351e9d5478c3c415f523f391003b42ed475f27e33a78233035df183525395f731d3bfb8cdcbd4da08ce
"strip-final-newline@npm:^4.0.0":
version: 4.0.0
resolution: "strip-final-newline@npm:4.0.0"
checksum: 10c0/b0cf2b62d597a1b0e3ebc42b88767f0a0d45601f89fd379a928a1812c8779440c81abba708082c946445af1d6b62d5f16e2a7cf4f30d9d6587b89425fae801ff
languageName: node
linkType: hard

@@ -4372,3 +4383,10 @@ __metadata:
checksum: 10c0/ccd7e723e61ad5965fffbb791366db689572b80cca80e0f96aad968dfff4156cd7cd1ad18607afe1046d8241e6fb2d6c08bf7fa7bfb5eaec818735d8feac8f05
languageName: node
linkType: hard

"yoctocolors@npm:^2.0.0":
version: 2.1.1
resolution: "yoctocolors@npm:2.1.1"
checksum: 10c0/85903f7fa96f1c70badee94789fade709f9d83dab2ec92753d612d84fcea6d34c772337a9f8914c6bed2f5fc03a428ac5d893e76fab636da5f1236ab725486d0
languageName: node
linkType: hard
Loading