@@ -38,13 +38,7 @@ const nextBuildWorkflow =
38
38
NODE : process . env . NODE ,
39
39
HOSTNAME : process . env . HOSTNAME ,
40
40
PWD : process . env . PWD ,
41
- // Disable otel initialization to prevent pending / hanging request to otel collector
42
- OTEL_SDK_DISABLED : 'true' ,
43
- NEXT_PUBLIC_OTEL_SENTRY : 'true' ,
44
- NEXT_PUBLIC_OTEL_DEV_DISABLED : 'true' ,
45
41
NEXT_TRACE_UPLOAD_DISABLED : 'true' ,
46
- // Enable next.js test mode to get HMR events
47
- __NEXT_TEST_MODE : '1' ,
48
42
}
49
43
50
44
const serverEnv = {
@@ -156,34 +150,14 @@ const nextBuildWorkflow =
156
150
'lines'
157
151
)
158
152
159
- if ( turbopack ) {
160
- // close dev server and browser
161
- await killShell ( )
162
- await closeSession ( )
163
- } else {
164
- // wait for persistent cache to be written
165
- const waitPromise = new Promise ( ( resolve ) => {
166
- setTimeout ( resolve , 5000 )
167
- } )
168
- const cacheLocation = join (
169
- benchmarkDir ,
170
- '.next' ,
171
- 'cache' ,
172
- 'webpack' ,
173
- 'client-production'
174
- )
175
- await Promise . race ( [
176
- waitForFile ( join ( cacheLocation , 'index.pack' ) ) ,
177
- waitForFile ( join ( cacheLocation , 'index.pack.gz' ) ) ,
178
- ] )
179
- await measureTime ( 'cache created' )
180
- await waitPromise
181
- await measureTime ( 'waiting' )
153
+ // close browser
154
+ await killShell ( )
155
+ await closeSession ( )
182
156
183
- // close dev server and browser
184
- await killShell ( )
185
- await closeSession ( )
186
- }
157
+ await measureTime ( 'before build with cache' , {
158
+ scenario : benchmarkName ,
159
+ props : { turbopack , page } ,
160
+ } )
187
161
188
162
buildShell = command ( 'pnpm' , buildArgs , {
189
163
cwd : benchmarkDir ,
0 commit comments