-
Notifications
You must be signed in to change notification settings - Fork 1
feat: use arkade-regtest for regtest environment #106
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
base: master
Are you sure you want to change the base?
Changes from all commits
da4d629
f0134bb
ce0c33a
e130f1b
eb8823e
f2c7392
8bbeb38
f99bfd9
3bd96a1
d6c3f55
c775255
7496acd
f055ed4
91e5d0c
a0422fd
346fe43
eded761
1c6066c
434cab8
e78088d
47a212d
db43e36
02cbff6
b7939cf
14650d9
e53fbaf
2e15da6
c3cd329
74b8e90
43446a7
e0edbd2
32e8647
0cd68c2
c91a2f6
3cc43ed
6104896
1c02f3e
5b3cc5e
39974c2
5560b77
db9d666
bb0eacd
5853299
73f6f4c
1354937
ec306cf
c993b16
bf5c5bc
e292013
3fb88a2
883eb8f
4e7fb15
d6bf0f3
3fcecfd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # boltz-swap arkade-regtest overrides | ||
| ARKD_IMAGE=ghcr.io/arkade-os/arkd:v0.8.11 | ||
| ARKD_WALLET_IMAGE=ghcr.io/arkade-os/arkd-wallet:v0.8.11 | ||
|
|
||
| # Skip Bitcoin Core restart — avoids nbxplorer connection loss | ||
| BITCOIN_LOW_FEE=false | ||
|
|
||
| # Match old test.docker-compose.yml arkd config (block scheduler needs CSV block type) | ||
| ARKD_SCHEDULER_TYPE=block | ||
| ARKD_ALLOW_CSV_BLOCK_TYPE=true | ||
| ARKD_VTXO_TREE_EXPIRY=200 | ||
| ARKD_BOARDING_EXIT_DELAY=1024 | ||
| ARKD_ROUND_INTERVAL=3 | ||
|
|
||
| # Zero fees — boltz-swap tests don't account for intent fees | ||
| ARK_OFFCHAIN_INPUT_FEE="0.0" | ||
| ARK_ONCHAIN_INPUT_FEE="0.0" | ||
| ARK_OFFCHAIN_OUTPUT_FEE="0.0" | ||
| ARK_ONCHAIN_OUTPUT_FEE="0.0" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [submodule "regtest"] | ||
| path = regtest | ||
| url = https://github.com/ArkLabsHQ/arkade-regtest.git | ||
| branch = master |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,22 +57,16 @@ | |
| "prepack": "pnpm run build", | ||
| "test": "vitest run", | ||
| "test:unit": "vitest run --exclude test/e2e", | ||
| "test:setup": "test/setupRegtestEnv.sh", | ||
| "test:integration": "vitest run test/e2e/**", | ||
| "test:down": "test/setupRegtestEnv.sh down", | ||
| "test:build-docker": "docker compose -f test.docker-compose.yml build --no-cache", | ||
| "test:up-docker": "docker compose -f test.docker-compose.yml up arkd arkd-wallet nbxplorer pgnbxplorer -d", | ||
| "test:setup-docker": "node test/e2e/setup.mjs", | ||
| "test:integration-docker": "vitest run test/e2e/**", | ||
| "test:down-docker": "docker compose -f test.docker-compose.yml down -v", | ||
| "release": "pnpm run build && bash scripts/release.sh", | ||
| "release:dry-run": "bash scripts/release.sh --dry-run", | ||
| "release:cleanup": "bash scripts/release.sh --cleanup", | ||
| "regtest": "pnpm regtest:down && pnpm regtest:build && pnpm regtest:up && pnpm regtest:setup", | ||
| "regtest:build": "docker compose -f test.docker-compose.yml build", | ||
| "regtest:up": "docker compose -f test.docker-compose.yml up arkd arkd-wallet nbxplorer pgnbxplorer -d", | ||
| "regtest:down": "docker compose -f test.docker-compose.yml down -v", | ||
| "regtest:setup": "node test/e2e/setup.mjs" | ||
| "regtest:start": "./regtest/start-env.sh", | ||
| "regtest:stop": "./regtest/stop-env.sh", | ||
| "regtest:clean": "./regtest/clean-env.sh", | ||
| "regtest": "pnpm regtest:clean && pnpm regtest:start && pnpm test:setup-docker" | ||
|
Comment on lines
+66
to
+69
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a submodule preflight before invoking these scripts. These commands assume 🔧 Minimal guard- "regtest:start": "./regtest/start-env.sh",
+ "regtest:start": "[ -x ./regtest/start-env.sh ] || { echo 'Missing regtest submodule. Run: git submodule update --init --recursive' >&2; exit 1; }; ./regtest/start-env.sh",Apply the same guard to 🤖 Prompt for AI Agents |
||
| }, | ||
| "keywords": [ | ||
| "arkade", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: arkade-os/boltz-swap
Length of output: 536
🏁 Script executed:
Repository: arkade-os/boltz-swap
Length of output: 603
🏁 Script executed:
Repository: arkade-os/boltz-swap
Length of output: 702
Include the
regtestsubmodule revision in this cache key.The cache key at line 60 only hashes
regtest/.env.defaultsand.env.regtest, but this PR itself demonstrates the problem: the regtest submodule was bumped to include a "simpler health check" without changing either environment file. This means the integration test will reuse a staleregtest/_buildbuilt from older code, causing integration tests to run against outdated nigiri/tooling.💡 Suggested change
📝 Committable suggestion
🤖 Prompt for AI Agents