@@ -7,7 +7,7 @@ import path from 'path'
77import fs from 'fs'
88import { BitBakeProjectScanner } from '../../../driver/BitBakeProjectScanner'
99import { BitbakeDriver } from '../../../driver/BitbakeDriver'
10- import { BITBAKE_TIMEOUT } from '../../../utils/ProcessUtils'
10+ import { BITBAKE_BUILD_TIMEOUT , BITBAKE_TIMEOUT } from '../../../utils/ProcessUtils'
1111import { mockVscodeEvents } from '../../utils/vscodeMock'
1212import { importRecipe , removeRecipe , integrationBitbakeFolder } from '../../utils/bitbake'
1313import { logger } from '../../../lib/src/utils/OutputLogger'
@@ -54,7 +54,14 @@ describe('BitBakeProjectScanner', () => {
5454 } , ( error ) => {
5555 throw error
5656 } )
57- } , BITBAKE_TIMEOUT )
57+ // Running devtool modify needs to build uninative, quilt-native, and a few recipes
58+ // Since the age of AI, fetching anything now takes ages, so we increase the timeout
59+ // Note that such a timeout is only possible on Github self-hosted runners or local machines
60+ // Public Github runners have a max timeout of 1 hour per job
61+ // The workspace is kept for the remaining tests, so we don't need to do it again
62+ // Also, our self-hosted runner have a Yocto sstate cache, so it's only
63+ // rebuilt when changing the openembedded version
64+ } , BITBAKE_BUILD_TIMEOUT )
5865
5966 afterAll ( ( done ) => {
6067 bitBakeProjectScanner . bitbakeDriver . spawnBitbakeProcess ( 'devtool reset busybox' ) . then ( ( child ) => {
0 commit comments