Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Sep 4, 2024
1 parent 45f0405 commit 5379a31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/next/src/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1539,11 +1539,13 @@ export default async function build(
let shutdownPromise = Promise.resolve()
if (!isGenerateMode) {
if (turboNextBuild) {
console.time('Turbopack build')
const {
duration: compilerDuration,
shutdownPromise: p,
...rest
} = await turbopackBuild()
console.timeEnd('Turbopack build')
shutdownPromise = p
traceMemoryUsage('Finished build', nextBuildSpan)

Expand All @@ -1568,6 +1570,7 @@ export default async function build(
buildStage: 'compile-server',
})

console.time('webpack build')
const serverBuildPromise = webpackBuild(useBuildWorker, [
'server',
]).then((res) => {
Expand Down Expand Up @@ -1635,6 +1638,7 @@ export default async function build(
durationInSeconds += res.duration
traceMemoryUsage('Finished client compilation', nextBuildSpan)
})
console.timeEnd('webpack build')

Log.event('Compiled successfully')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ impl Operation for ConnectChildOperation {
task_id,
ref mut aggregation_update,

Check warning on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / build / build

unused variable: `aggregation_update`

Check warning on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / build-native / build

unused variable: `aggregation_update`

Check warning on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / test unit (18) / build

unused variable: `aggregation_update`

Check warning on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / rustdoc check / build

unused variable: `aggregation_update`

Check warning on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / test unit (20) / build

unused variable: `aggregation_update`

Check warning on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

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

unused variable: `aggregation_update`

Check warning on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / types and precompiled / build

unused variable: `aggregation_update`

Check warning on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

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

unused variable: `aggregation_update`

Check warning on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / lint / build

unused variable: `aggregation_update`

Check warning on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / rust check / build

unused variable: `aggregation_update`

Check failure on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / rust check / build

unused variable: `aggregation_update`

Check warning on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / test cargo unit / build

unused variable: `aggregation_update`

Check warning on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / stable - x86_64-pc-windows-msvc - node@16

unused variable: `aggregation_update`

Check warning on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / stable - aarch64-apple-darwin - node@16

unused variable: `aggregation_update`

Check warning on line 68 in turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs

View workflow job for this annotation

GitHub Actions / stable - x86_64-apple-darwin - node@16

unused variable: `aggregation_update`
} => {
if aggregation_update.process(ctx) {
// TODO check for active
self = ConnectChildOperation::ScheduleTask { task_id }
}
// if aggregation_update.process(ctx) {
// TODO check for active
self = ConnectChildOperation::ScheduleTask { task_id }
// }
}
ConnectChildOperation::ScheduleTask { task_id } => {
let mut should_schedule;
Expand Down

0 comments on commit 5379a31

Please sign in to comment.