Skip to content

Commit 7ca1c2b

Browse files
authored
Merge pull request #154 from tower/develop
v0.3.39 re-release
2 parents 18e085c + c116632 commit 7ca1c2b

4 files changed

Lines changed: 14 additions & 12 deletions

File tree

.github/workflows/build-binaries.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666

6767
macos-x86_64:
6868
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
69-
runs-on: macos-14
69+
runs-on: macos-15
7070
steps:
7171
- uses: actions/checkout@v4.2.2
7272
with:
@@ -89,7 +89,7 @@ jobs:
8989

9090
macos-aarch64:
9191
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
92-
runs-on: macos-14
92+
runs-on: macos-15
9393
steps:
9494
- uses: actions/checkout@v4.2.2
9595
with:

crates/tower-cmd/src/run.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,10 @@ where
193193

194194
// Wait for app to complete or SIGTERM
195195
let status_result = tokio::select! {
196-
status = status_task => status.unwrap(),
196+
status = status_task => {
197+
debug!("Status task completed, result: {:?}", status);
198+
status.unwrap()
199+
},
197200
_ = tokio::signal::ctrl_c(), if !output::get_output_mode().is_mcp() => {
198201
output::write("\nReceived Ctrl+C, stopping local run...\n");
199202
app.lock().await.terminate().await.ok();
@@ -205,8 +208,8 @@ where
205208
// And if we crashed, err out
206209
match status_result {
207210
Status::Exited => output::success("Your local run exited cleanly."),
208-
Status::Crashed { .. } => {
209-
output::error("Your local run crashed!");
211+
Status::Crashed { code } => {
212+
output::error(&format!("Your local run crashed with exit code: {}", code));
210213
return Err(Error::AppCrashed);
211214
}
212215
_ => {
@@ -611,20 +614,19 @@ async fn monitor_local_status(app: Arc<Mutex<LocalApp>>) -> Status {
611614
err_count = 0;
612615

613616
match status {
614-
tower_runtime::Status::Exited => {
617+
Status::Exited => {
615618
debug!("Run exited cleanly, stopping status monitoring");
616619

617620
// We're done. Exit this loop and function.
618621
return status;
619622
}
620-
tower_runtime::Status::Crashed { .. } => {
623+
Status::Crashed { .. } => {
621624
debug!("Run crashed, stopping status monitoring");
622625

623626
// We're done. Exit this loop and function.
624627
return status;
625628
}
626629
_ => {
627-
debug!("App status: other, continuing to monitor");
628630
sleep(Duration::from_millis(100)).await;
629631
}
630632
}

crates/tower-runtime/src/local.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,20 +441,20 @@ fn make_env_vars(
441441
debug!(ctx: &ctx, "converting {} env variables", (params.len() + secs.len()));
442442

443443
for (key, value) in secs.into_iter() {
444-
debug!(ctx: &ctx, "adding key {}", make_env_var_key(&key));
445444
res.insert(make_env_var_key(&key), value.to_string());
446445
}
447446

448447
for (key, value) in params.into_iter() {
449-
debug!(ctx: &ctx, "adding key {}", make_env_var_key(&key));
450448
res.insert(key.to_string(), value.to_string());
451449
}
452450

453451
for (key, value) in other_env_vars.into_iter() {
454-
debug!(ctx: &ctx, "adding key {}", &key);
455452
res.insert(key.to_string(), value.to_string());
456453
}
457454

455+
let added_keys = res.keys().map(|s| &**s).collect::<Vec<&str>>().join(", ");
456+
debug!(ctx: &ctx, "added keys {}", &added_keys);
457+
458458
// We also need a PYTHONPATH that is set to the current working directory to help with the
459459
// dependency resolution problem at runtime.
460460
let pythonpath = cwd.to_string_lossy().to_string();

tests/integration/features/steps/cli_steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def step_final_status_should_show_crashed_in_red(context):
118118
red_color_code in output
119119
), f"Expected red color codes in output, got: {output}"
120120
assert (
121-
"Your local run crashed!" in output
121+
"Your local run crashed with exit code:" in output
122122
), f"Expected 'Your local run crashed!' message, got: {output}"
123123

124124

0 commit comments

Comments
 (0)