Skip to content

Commit 046d0d4

Browse files
authored
Merge pull request #20396 from michaelnebel/csharp/improveintegrationteststability
C#: Increase attempts to reach nuget.org in integration tests to reduce flakiness.
2 parents e5ba1c7 + fbc4f0b commit 046d0d4

File tree

3 files changed

+16
-0
lines changed
  • csharp/ql/integration-tests
    • all-platforms
    • posix/standalone_dependencies_nuget_config_error

3 files changed

+16
-0
lines changed

csharp/ql/integration-tests/all-platforms/standalone_resx/test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22

33

44
def test(codeql, csharp):
5+
# Making sure the reachability test of `nuget.org` succeeds:
6+
os.environ["CODEQL_EXTRACTOR_CSHARP_BUILDLESS_NUGET_FEEDS_CHECK_FALLBACK_TIMEOUT"] = "1000"
7+
os.environ["CODEQL_EXTRACTOR_CSHARP_BUILDLESS_NUGET_FEEDS_CHECK_FALLBACK_LIMIT"] = "5"
8+
59
os.environ["CODEQL_EXTRACTOR_CSHARP_BUILDLESS_EXTRACT_RESOURCES"] = "true"
610
codeql.database.create(build_mode="none")
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1+
import os
2+
3+
14
def test(codeql, csharp):
5+
# Making sure the reachability test of `nuget.org` succeeds:
6+
os.environ["CODEQL_EXTRACTOR_CSHARP_BUILDLESS_NUGET_FEEDS_CHECK_FALLBACK_TIMEOUT"] = "1000"
7+
os.environ["CODEQL_EXTRACTOR_CSHARP_BUILDLESS_NUGET_FEEDS_CHECK_FALLBACK_LIMIT"] = "5"
8+
29
codeql.database.create(build_mode="none")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
import os
12
import runs_on
23

34

45
@runs_on.posix
56
def test(codeql, csharp):
7+
# Making sure the reachability test of `nuget.org` succeeds:
8+
os.environ["CODEQL_EXTRACTOR_CSHARP_BUILDLESS_NUGET_FEEDS_CHECK_FALLBACK_TIMEOUT"] = "1000"
9+
os.environ["CODEQL_EXTRACTOR_CSHARP_BUILDLESS_NUGET_FEEDS_CHECK_FALLBACK_LIMIT"] = "5"
10+
611
codeql.database.create(build_mode="none")

0 commit comments

Comments
 (0)