Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Nov 28, 2024
1 parent 7c31f58 commit 0378e72
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions crates/next-api/src/module_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ use petgraph::{
visit::Dfs,
};
use tracing::Instrument;
use turbo_tasks::{FxIndexMap, ResolvedVc, TryFlatJoinIterExt, TryJoinIterExt, Vc};
use turbo_tasks::{
debug::ValueDebug, CollectiblesSource, FxIndexMap, ResolvedVc, TryFlatJoinIterExt,

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / rustdoc check / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / rust check / build

unused import: `debug::ValueDebug`

Check failure on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / rust check / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / build / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test devlow package / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test unit (18) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test unit (20) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test cargo benches / Test

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test cargo benches / Test

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / build-native / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Test new tests for flakes (dev) (1/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Test new tests for flakes (dev) (2/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Test new tests for flakes (dev) (3/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Test new tests for flakes (dev) (4/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Test new tests for flakes (prod) (4/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Test new tests for flakes (prod) (3/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Test new tests for flakes (prod) (2/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Test new tests for flakes (prod) (1/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / types and precompiled / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / stable - x86_64-unknown-linux-gnu - node@16

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test ppr integration / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test cargo unit / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Run devlow benchmarks (--turbopack=true, --scenario=heavy-npm-deps-dev --page=homepage) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / lint / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack development integration (2/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test next-swc wasm / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack development integration (4/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Run devlow benchmarks (--turbopack=false, --scenario=heavy-npm-deps-dev --page=homepage) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack development integration (1/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack development integration (5/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test integration (9/12) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test integration (6/12) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Run devlow benchmarks (--turbopack=false, --scenario=heavy-npm-deps-build-turbo-cache-enabled --p... / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test firefox and safari / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test integration (1/12) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test integration (10/12) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Run devlow benchmarks (--turbopack=true, --scenario=heavy-npm-deps-build-turbo-cache-enabled --pa... / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test integration (3/12) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test integration (2/12) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack dev (5/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test integration (7/12) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test dev (3/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack dev (2/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test integration (5/12) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack production integration (2/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack production (3/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack dev (3/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test integration (11/12) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test integration (4/12) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test ppr dev (1/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack dev (4/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test ppr dev (4/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack production (2/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test integration (12/12) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack production integration (5/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Run devlow benchmarks (--turbopack=false, --scenario=heavy-npm-deps-build --page=homepage) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test ppr dev (3/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test ppr dev (2/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack production integration (4/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Run devlow benchmarks (--turbopack=true, --scenario=heavy-npm-deps-build --page=homepage) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test dev (4/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack development integration (3/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack production (4/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test integration (8/12) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test dev (1/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack production integration (1/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test dev (2/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test prod (3/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack dev (1/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test prod (4/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack production (1/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test prod (2/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack production integration (3/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test prod (5/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test ppr prod (4/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test prod (1/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test turbopack production (5/5) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Test new tests when deployed (1/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Test new tests when deployed (4/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Test new tests when deployed (2/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / Test new tests when deployed (3/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test ppr prod (3/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test ppr prod (2/4) / build

unused import: `debug::ValueDebug`

Check warning on line 14 in crates/next-api/src/module_graph.rs

View workflow job for this annotation

GitHub Actions / test ppr prod (1/4) / build

unused import: `debug::ValueDebug`
TryJoinIterExt, Vc,
};
use turbopack_core::{
context::AssetContext,
issue::Issue,
module::{Module, Modules},
reference::primary_referenced_modules,
};
Expand Down Expand Up @@ -317,13 +321,18 @@ pub async fn get_reduced_graphs_for_endpoint(
NextMode::Build => (
false,
vec![
async move {
SingleModuleGraph::new_with_entries(project.get_all_entries())
.to_resolved()
.await
}
.instrument(tracing::info_span!("module graph for app"))
.await?,
// async move
{
let vc = SingleModuleGraph::new_with_entries(project.get_all_entries());
let vc = vc.resolve_strongly_consistent().await?;
let _ = vc.take_collectibles::<Box<dyn Issue>>();
vc.to_resolved().await?
// graph.untracked().await?;
// let v = graph.take_collectibles::<Box<dyn Issue>>();
// println!("taking {:?}", v.iter().map(|i| i.dbg()).try_join().await?);
// graph.to_resolved().await
}, /* .instrument(tracing::info_span!("module graph for app"))
* .await?, */
],
),
};
Expand Down

0 comments on commit 0378e72

Please sign in to comment.