Try to download wasi-sdk ahead of time (#42377)
This hopefully resolves the lingering test failures on linux, but also adds some logging just in case this isn't the problem... Release Notes: - N/A --------- Co-authored-by: Ben Kunkle <ben@zed.dev>
This commit is contained in:
co-authored by
Ben Kunkle
parent
3fbfea491d
commit
c24f9e47b4
@@ -31,8 +31,7 @@ use util::test::TempTree;
|
||||
#[cfg(test)]
|
||||
#[ctor::ctor]
|
||||
fn init_logger() {
|
||||
// show info logs while we debug the extension_store tests hanging.
|
||||
zlog::init_test_with("info");
|
||||
zlog::init_test();
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
@@ -532,6 +531,7 @@ async fn test_extension_store(cx: &mut TestAppContext) {
|
||||
|
||||
#[gpui::test]
|
||||
async fn test_extension_store_with_test_extension(cx: &mut TestAppContext) {
|
||||
log::info!("Initializing test");
|
||||
init_test(cx);
|
||||
cx.executor().allow_parking();
|
||||
|
||||
@@ -556,6 +556,8 @@ async fn test_extension_store_with_test_extension(cx: &mut TestAppContext) {
|
||||
let extensions_dir = extensions_tree.path().canonicalize().unwrap();
|
||||
let project_dir = project_dir.path().canonicalize().unwrap();
|
||||
|
||||
log::info!("Setting up test");
|
||||
|
||||
let project = Project::test(fs.clone(), [project_dir.as_path()], cx).await;
|
||||
|
||||
let proxy = Arc::new(ExtensionHostProxy::new());
|
||||
@@ -674,6 +676,8 @@ async fn test_extension_store_with_test_extension(cx: &mut TestAppContext) {
|
||||
)
|
||||
});
|
||||
|
||||
log::info!("Flushing events");
|
||||
|
||||
// Ensure that debounces fire.
|
||||
let mut events = cx.events(&extension_store);
|
||||
let executor = cx.executor();
|
||||
|
||||
@@ -30,16 +30,17 @@ pub fn init_test() {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn init_test_with(filter: &str) {
|
||||
if try_init(Some(filter.to_owned())).is_ok() {
|
||||
init_output_stdout();
|
||||
}
|
||||
}
|
||||
|
||||
fn get_env_config() -> Option<String> {
|
||||
std::env::var("ZED_LOG")
|
||||
.or_else(|_| std::env::var("RUST_LOG"))
|
||||
.ok()
|
||||
.or_else(|| {
|
||||
if std::env::var("CI").is_ok() {
|
||||
Some("info".to_owned())
|
||||
} else {
|
||||
None
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
pub fn process_env(filter: Option<String>) {
|
||||
|
||||
Reference in New Issue
Block a user