-
Notifications
You must be signed in to change notification settings - Fork 305
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
ci: 🚭 fix summonerd smoke tests #4358
Conversation
env
in summoner smoke test shebang36ba425
to
a022083
Compare
7b745c9
to
a4edeca
Compare
a4edeca
to
7b86267
Compare
7b86267
to
269ecc7
Compare
@@ -58,6 +58,7 @@ async fn handle_bid(app: &mut App, to: Address, from: AddressIndex, bid: &str) - | |||
planner.output(value, to); | |||
let plan = planner | |||
.memo("E PLURIBUS UNUM".into()) | |||
.memo_return_address(app.config.full_viewing_key.payment_address(from).0) |
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.
this is the fix 🩹
everything else in this branch is tweaks to facilitate debugging, and confirming this does in fact fix the issue.
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.
Lovely, thanks for taking the time to show the work. Leaving unmerged, so you can drop/squash at your leisure.
@@ -41,7 +67,7 @@ cargo run --quiet --release --bin pd -- start --home "${HOME}/.penumbra/testnet_ | |||
pd_pid="$!" | |||
|
|||
# Ensure processes are cleaned up after script exits, regardless of status. | |||
trap 'kill -9 "$cometbft_pid" "$pd_pid"' EXIT | |||
trap 'kill -9 "$cometbft_pid" "$pd_pid"' EXIT INT |
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.
Thank you for the super detailed commit messages. 🙏
this is a small noöp refactor. we don't need to acquire a handle to the current async runtime, if we are attempting to spawn onto the *current* runtime. by default, `tokio::spawn()` does that for us.
this adds `cometbft` (defined above) to the `devShell`. this argument is threaded down into `pkgs.mkShell`, see: - https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-mkShell otherwise, `which cometbft` won't find cometbft. this was needed for me to run the summoner smoke test script locally.
- 🚭 use `env` in summoner smoke test shebang - 🚀 add `/tmp/summonerd` and `/tmp/account1` checks - 🔁 add `SUMMONER_SMOKE_RESET` toggle for local development
this squashes two related commits from development: --- ci: ⭐ `SIGINT` will also kill cometbft, pd, summonerd when running this locally in a development shell, i found that `ctrl+c` would not terminate the other running processes. this would stop the shell script, but logs from pd and cometbft would continue being printed to the screen. moreover, after stopping that shell, `ps` showed me that these processes were left running, causing subsequent runs of the summonerd smoke test to fail due to ports already being bound. this adds `SIGINT` to the list of signals that will bring down the cometbft, pd, and summonerd processes. this way, `ctrl+c` will properly clean things up. --- ci: ➕ don't clobber smoke test's child pids fixes #4370. this makes the list of process id's provided to `kill -9` when a SIGEXIT or SIGINT signal is received an _additive_ list. prior, we were clobbering this list when the phase1 and phase2 steps were run. now, we append a new id to the list at each point we set a signal trap.
269ecc7
to
3998da3
Compare
describe your changes
this provides some small changes needed for running the summoner smoke test locally.
issue ticket number and link
fixes #4321.
fixes #4370.
related to #4319.
checklist before requesting a review
if this code contains consensus-breaking changes, i have added the "consensus-breaking" label. otherwise, i declare my belief that there are not consensus-breaking changes, for the following reason: