再次合并最新master到埋点开发分支
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m0s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 2m35s
Project CI / Native shell tests (pull_request) Failing after 2m28s
Project CI / Frontend tests (pull_request) Failing after 2m40s
Project CI / Backend tests (pull_request) Successful in 5m23s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 9m27s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 8m11s
Project CI / AI game creator shell web tests (pull_request) Failing after 58s
Project CI / Repository checks (pull_request) Failing after 2m34s

同步主分支最新改动并保留客户端埋点实现
This commit is contained in:
2026-09-21 17:08:31 +00:00
@@ -461,6 +461,9 @@ async fn deploy_and_uninstall_use_fixed_job_and_apply_owned_artifacts() {
.to_bytes();
let list: Value = serde_json::from_slice(&list_body).unwrap();
assert_eq!(list["deployments"], json!([]));
wait_for_persisted_status(&state.config, &id, super::DeploymentStatus::Stopped)
.await
.expect("persisted deployment reaches stopped");
let state_file = state.config.state_file.clone();
let mut recovered_config = test_config(state.config.jenkins_root_url.clone());
recovered_config.state_file = state_file.clone();
@@ -659,6 +662,24 @@ async fn wait_for_status(
Err(())
}
async fn wait_for_persisted_status(
config: &Config,
id: &str,
expected: super::DeploymentStatus,
) -> Result<(), ()> {
for _ in 0..100 {
if super::load_deployments(config)
.ok()
.and_then(|deployments| deployments.get(id).map(|record| record.public.status))
.is_some_and(|status| status == expected)
{
return Ok(());
}
tokio::time::sleep(Duration::from_millis(5)).await;
}
Err(())
}
#[test]
fn public_web_url_is_derived_from_instance_id_and_configured_domain() {
assert_eq!(