@@ -139,7 +139,7 @@ function mockListLanguages(languages: string[]) {
139139 sinon . stub ( api , "getApiClient" ) . value ( ( ) => client ) ;
140140}
141141
142- test ( "load empty config" , async ( t ) => {
142+ test . serial ( "load empty config" , async ( t ) => {
143143 return await withTmpDir ( async ( tempDir ) => {
144144 const logger = getRunnerLogger ( true ) ;
145145 const languages = "javascript,python" ;
@@ -180,7 +180,7 @@ test("load empty config", async (t) => {
180180 } ) ;
181181} ) ;
182182
183- test ( "load code quality config" , async ( t ) => {
183+ test . serial ( "load code quality config" , async ( t ) => {
184184 return await withTmpDir ( async ( tempDir ) => {
185185 const logger = getRunnerLogger ( true ) ;
186186 const languages = "actions" ;
@@ -230,7 +230,7 @@ test("load code quality config", async (t) => {
230230 } ) ;
231231} ) ;
232232
233- test ( "initActionState doesn't throw if there are queries configured in the repository properties" , async ( t ) => {
233+ test . serial ( "initActionState doesn't throw if there are queries configured in the repository properties" , async ( t ) => {
234234 return await withTmpDir ( async ( tempDir ) => {
235235 const logger = getRunnerLogger ( true ) ;
236236 const languages = "javascript" ;
@@ -288,7 +288,7 @@ test("initActionState doesn't throw if there are queries configured in the repos
288288 } ) ;
289289} ) ;
290290
291- test ( "loading a saved config produces the same config" , async ( t ) => {
291+ test . serial ( "loading a saved config produces the same config" , async ( t ) => {
292292 return await withTmpDir ( async ( tempDir ) => {
293293 const logger = getRunnerLogger ( true ) ;
294294
@@ -335,7 +335,7 @@ test("loading a saved config produces the same config", async (t) => {
335335 } ) ;
336336} ) ;
337337
338- test ( "loading config with version mismatch throws" , async ( t ) => {
338+ test . serial ( "loading config with version mismatch throws" , async ( t ) => {
339339 return await withTmpDir ( async ( tempDir ) => {
340340 const logger = getRunnerLogger ( true ) ;
341341
@@ -387,7 +387,7 @@ test("loading config with version mismatch throws", async (t) => {
387387 } ) ;
388388} ) ;
389389
390- test ( "load input outside of workspace" , async ( t ) => {
390+ test . serial ( "load input outside of workspace" , async ( t ) => {
391391 return await withTmpDir ( async ( tempDir ) => {
392392 try {
393393 await configUtils . initConfig (
@@ -412,7 +412,7 @@ test("load input outside of workspace", async (t) => {
412412 } ) ;
413413} ) ;
414414
415- test ( "load non-local input with invalid repo syntax" , async ( t ) => {
415+ test . serial ( "load non-local input with invalid repo syntax" , async ( t ) => {
416416 return await withTmpDir ( async ( tempDir ) => {
417417 // no filename given, just a repo
418418 const configFile = "octo-org/codeql-config@main" ;
@@ -440,7 +440,7 @@ test("load non-local input with invalid repo syntax", async (t) => {
440440 } ) ;
441441} ) ;
442442
443- test ( "load non-existent input" , async ( t ) => {
443+ test . serial ( "load non-existent input" , async ( t ) => {
444444 return await withTmpDir ( async ( tempDir ) => {
445445 const languagesInput = "javascript" ;
446446 const configFile = "input" ;
@@ -470,7 +470,7 @@ test("load non-existent input", async (t) => {
470470 } ) ;
471471} ) ;
472472
473- test ( "load non-empty input" , async ( t ) => {
473+ test . serial ( "load non-empty input" , async ( t ) => {
474474 return await withTmpDir ( async ( tempDir ) => {
475475 const codeql = createStubCodeQL ( {
476476 async betterResolveLanguages ( ) {
@@ -541,7 +541,7 @@ test("load non-empty input", async (t) => {
541541 } ) ;
542542} ) ;
543543
544- test ( "Using config input and file together, config input should be used." , async ( t ) => {
544+ test . serial ( "Using config input and file together, config input should be used." , async ( t ) => {
545545 return await withTmpDir ( async ( tempDir ) => {
546546 process . env [ "RUNNER_TEMP" ] = tempDir ;
547547 process . env [ "GITHUB_WORKSPACE" ] = tempDir ;
@@ -595,7 +595,7 @@ test("Using config input and file together, config input should be used.", async
595595 } ) ;
596596} ) ;
597597
598- test ( "API client used when reading remote config" , async ( t ) => {
598+ test . serial ( "API client used when reading remote config" , async ( t ) => {
599599 return await withTmpDir ( async ( tempDir ) => {
600600 const codeql = createStubCodeQL ( {
601601 async betterResolveLanguages ( ) {
@@ -644,7 +644,7 @@ test("API client used when reading remote config", async (t) => {
644644 } ) ;
645645} ) ;
646646
647- test ( "Remote config handles the case where a directory is provided" , async ( t ) => {
647+ test . serial ( "Remote config handles the case where a directory is provided" , async ( t ) => {
648648 return await withTmpDir ( async ( tempDir ) => {
649649 const dummyResponse = [ ] ; // directories are returned as arrays
650650 mockGetContents ( dummyResponse ) ;
@@ -671,7 +671,7 @@ test("Remote config handles the case where a directory is provided", async (t) =
671671 } ) ;
672672} ) ;
673673
674- test ( "Invalid format of remote config handled correctly" , async ( t ) => {
674+ test . serial ( "Invalid format of remote config handled correctly" , async ( t ) => {
675675 return await withTmpDir ( async ( tempDir ) => {
676676 const dummyResponse = {
677677 // note no "content" property here
@@ -700,7 +700,7 @@ test("Invalid format of remote config handled correctly", async (t) => {
700700 } ) ;
701701} ) ;
702702
703- test ( "No detected languages" , async ( t ) => {
703+ test . serial ( "No detected languages" , async ( t ) => {
704704 return await withTmpDir ( async ( tempDir ) => {
705705 mockListLanguages ( [ ] ) ;
706706 const codeql = createStubCodeQL ( {
@@ -728,7 +728,7 @@ test("No detected languages", async (t) => {
728728 } ) ;
729729} ) ;
730730
731- test ( "Unknown languages" , async ( t ) => {
731+ test . serial ( "Unknown languages" , async ( t ) => {
732732 return await withTmpDir ( async ( tempDir ) => {
733733 const languagesInput = "rubbish,english" ;
734734
@@ -862,7 +862,7 @@ const mockRepositoryNwo = parseRepositoryNwo("owner/repo");
862862 expectedLanguages : [ "javascript" ] ,
863863 } ,
864864] . forEach ( ( args ) => {
865- test ( `getLanguages: ${ args . name } ` , async ( t ) => {
865+ test . serial ( `getLanguages: ${ args . name } ` , async ( t ) => {
866866 const mockRequest = mockLanguagesInRepo ( args . languagesInRepository ) ;
867867 const stubExtractorEntry = {
868868 extractor_root : "" ,
0 commit comments