You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The investigation is pointing to running git commands in parallel that
is causing the hang with the Windows CI. Turn them off until we can
figure out how to serialize them across xctest processes.
Once they completed, fixed the BuildPlanTests which were matching with
backslashes.
Also had backslash issues when launching the integration tests.
---------
Copy file name to clipboardExpand all lines: Tests/SourceControlTests/GitRepositoryTests.swift
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,9 @@ class GitRepositoryTests: XCTestCase {
62
62
63
63
/// Test the basic provider functions.
64
64
func testProvider()throws{
65
+
// Skipping all tests that call git on Windows.
66
+
// We have a hang in CI when running in parallel.
67
+
tryXCTSkipIfWindowsCI()
65
68
trytestWithTemporaryDirectory{ path in
66
69
lettestRepoPath= path.appending("test-repo")
67
70
try!makeDirectories(testRepoPath)
@@ -127,6 +130,7 @@ class GitRepositoryTests: XCTestCase {
127
130
/// contained within it for more information.
128
131
func testRawRepository()throws{
129
132
tryskipOnWindowsAsTestCurrentlyFails(because:"https://github.com/swiftlang/swift-package-manager/issues/8385: test repository has non-portable file names")
133
+
tryXCTSkipIfWindowsCI()
130
134
131
135
trytestWithTemporaryDirectory{ path in
132
136
// Unarchive the static test repository.
@@ -186,6 +190,7 @@ class GitRepositoryTests: XCTestCase {
186
190
}
187
191
188
192
func testSubmoduleRead()throws{
193
+
tryXCTSkipIfWindowsCI()
189
194
trytestWithTemporaryDirectory{ path in
190
195
lettestRepoPath= path.appending("test-repo")
191
196
trymakeDirectories(testRepoPath)
@@ -209,6 +214,7 @@ class GitRepositoryTests: XCTestCase {
209
214
210
215
/// Test the Git file system view.
211
216
func testGitFileView()throws{
217
+
tryXCTSkipIfWindowsCI()
212
218
trytestWithTemporaryDirectory{ path in
213
219
lettestRepoPath= path.appending("test-repo")
214
220
trymakeDirectories(testRepoPath)
@@ -297,6 +303,7 @@ class GitRepositoryTests: XCTestCase {
297
303
298
304
/// Test the handling of local checkouts.
299
305
func testCheckouts()throws{
306
+
tryXCTSkipIfWindowsCI()
300
307
trytestWithTemporaryDirectory{ path in
301
308
// Create a test repository.
302
309
lettestRepoPath= path.appending("test-repo")
@@ -343,6 +350,7 @@ class GitRepositoryTests: XCTestCase {
343
350
}
344
351
345
352
func testFetch()throws{
353
+
tryXCTSkipIfWindowsCI()
346
354
trytestWithTemporaryDirectory{ path in
347
355
// Create a repo.
348
356
lettestRepoPath= path.appending("test-repo")
@@ -382,6 +390,7 @@ class GitRepositoryTests: XCTestCase {
382
390
}
383
391
384
392
func testHasUnpushedCommits()throws{
393
+
tryXCTSkipIfWindowsCI()
385
394
trytestWithTemporaryDirectory{ path in
386
395
// Create a repo.
387
396
lettestRepoPath= path.appending("test-repo")
@@ -418,6 +427,7 @@ class GitRepositoryTests: XCTestCase {
418
427
}
419
428
420
429
func testSetRemote()throws{
430
+
tryXCTSkipIfWindowsCI()
421
431
trytestWithTemporaryDirectory{ path in
422
432
// Create a repo.
423
433
lettestRepoPath= path.appending("test-repo")
@@ -448,6 +458,7 @@ class GitRepositoryTests: XCTestCase {
448
458
}
449
459
450
460
func testUncommittedChanges()throws{
461
+
tryXCTSkipIfWindowsCI()
451
462
trytestWithTemporaryDirectory{ path in
452
463
// Create a repo.
453
464
lettestRepoPath= path.appending("test-repo")
@@ -475,6 +486,7 @@ class GitRepositoryTests: XCTestCase {
475
486
}
476
487
477
488
func testBranchOperations()throws{
489
+
tryXCTSkipIfWindowsCI()
478
490
trytestWithTemporaryDirectory{ path in
479
491
// Create a repo.
480
492
lettestRepoPath= path.appending("test-repo")
@@ -505,6 +517,7 @@ class GitRepositoryTests: XCTestCase {
505
517
}
506
518
507
519
func testRevisionOperations()throws{
520
+
tryXCTSkipIfWindowsCI()
508
521
trytestWithTemporaryDirectory{ path in
509
522
// Create a repo.
510
523
letrepositoryPath= path.appending("test-repo")
@@ -530,6 +543,7 @@ class GitRepositoryTests: XCTestCase {
530
543
}
531
544
532
545
func testCheckoutRevision()throws{
546
+
tryXCTSkipIfWindowsCI()
533
547
trytestWithTemporaryDirectory{ path in
534
548
// Create a repo.
535
549
lettestRepoPath= path.appending("test-repo")
@@ -573,6 +587,7 @@ class GitRepositoryTests: XCTestCase {
573
587
}
574
588
575
589
func testSubmodules()throws{
590
+
tryXCTSkipIfWindowsCI()
576
591
trytestWithTemporaryDirectory{ path in
577
592
letprovider=GitRepositoryProvider()
578
593
@@ -662,6 +677,7 @@ class GitRepositoryTests: XCTestCase {
0 commit comments