Skip to content

Commit 10c3c79

Browse files
Always run analyze weekly (#35968)
* try to make analyze weekly run unconditionally * try display name * remove debugging
1 parent adbac73 commit 10c3c79

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

tools/azure-sdk-tools/ci_tools/environment_exclusions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Licensed under the MIT License. See License.txt in the project root for license information.
66
# --------------------------------------------------------------------------------------------
77
from ci_tools.parsing import get_config_setting
8-
from ci_tools.variables import in_public
8+
from ci_tools.variables import in_public, in_analyze_weekly
99
import os
1010
from typing import Any
1111

@@ -53,7 +53,7 @@ def is_check_enabled(package_path: str, check: str, default: Any = True) -> bool
5353
package_path = os.getcwd()
5454

5555
ci_enabled = get_config_setting(package_path, "ci_enabled", True)
56-
if not in_public() and ci_enabled is False:
56+
if not in_public() and not in_analyze_weekly() and ci_enabled is False:
5757
return False
5858

5959
# now pull the new pyproject.toml configuration

tools/azure-sdk-tools/ci_tools/variables.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ def in_public() -> int:
6767

6868
return 0
6969

70+
def in_analyze_weekly() -> int:
71+
# Returns 4 if the build originates from the tests-weekly analyze job
72+
# 0 otherwise
73+
if "tests-weekly" in os.getenv("SYSTEM_DEFINITIONNAME", "") and os.getenv("SYSTEM_STAGEDISPLAYNAME", "") == "Analyze_Test":
74+
return 4
75+
return 0
76+
7077

7178
DEV_BUILD_IDENTIFIER = os.getenv("SDK_DEV_BUILD_IDENTIFIER", "a")
7279
DEFAULT_BUILD_ID = os.getenv("GITHUB_RUN_ID", os.getenv("BUILD.BUILDID", os.getenv("SDK_BUILD_ID", "20220101.1")))

0 commit comments

Comments
 (0)