Fix hotpatched assets (#4326)
* wip: fixes to get docsite working again * Fix asset location with PIC in hot patched builds * Add an hidden cli flag to exit early in hot patch tests on failure * add a test for hot patching with assets * fix clippy * fix looks_like_manganis_symbol * longer timeout for hot patching in CI * log page content * log assets * Log asset after write * record a playwright trace * Explicitly enable cargo incremental for hot patching * fix retry for patch test * reset asset * disable hot patching test for new exports * add nightly playwright * use different toolchain names * use beta instead of nightly for less thrashing * add failing test * workaround hot reloading bug * restore swapping asset tests * add toolchain --------- Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
1 parent
6cc379718b
commit
2071be2b67
20 files changed
+365
-125
No files matched your search
@@ -791,19 +791,12 @@ impl BuildRequest {
|
||||
ctx.status_start_bundle();
|
||||
|
||||
self.write_executable(ctx, &artifacts.exe, &mut artifacts.assets)
|
||||
.await
|
||||
.context("Failed to write main executable")?;
|
||||
self.write_frameworks(ctx, &artifacts.direct_rustc)
|
||||
.await
|
||||
.context("Failed to write frameworks")?;
|
||||
self.write_assets(ctx, &artifacts.assets)
|
||||
.await
|
||||
.context("Failed to write assets")?;
|
||||
.await?;
|
||||
self.write_frameworks(ctx, &artifacts.direct_rustc).await?;
|
||||
self.write_assets(ctx, &artifacts.assets).await?;
|
||||
self.write_metadata().await?;
|
||||
self.optimize(ctx).await?;
|
||||
self.assemble(ctx)
|
||||
.await
|
||||
.context("Failed to assemble app bundle")?;
|
||||
self.assemble(ctx).await?;
|
||||
|
||||
tracing::debug!("Bundle created at {}", self.root_dir().display());
|
||||
}
|
||||
@@ -1420,7 +1413,7 @@ impl BuildRequest {
|
||||
}
|
||||
|
||||
// Now extract the assets from the fat binary
|
||||
self.collect_assets(&self.patch_exe(artifacts.time_start), ctx)?;
|
||||
artifacts.assets = self.collect_assets(&self.patch_exe(artifacts.time_start), ctx)?;
|
||||
|
||||
// If this is a web build, reset the index.html file in case it was modified by SSG
|
||||
self.write_index_html(&artifacts.assets)
|
||||
|
||||
Reference in new issue
Block a user