Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
try to make analyze weekly run unconditionally
  • Loading branch information
kristapratico committed Jun 7, 2024
commit eb6f7beced9aaa617d435e1f8207d66104b57c65
4 changes: 2 additions & 2 deletions tools/azure-sdk-tools/ci_tools/environment_exclusions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from ci_tools.parsing import get_config_setting
from ci_tools.variables import in_public
from ci_tools.variables import in_public, in_analyze_weekly
import os
from typing import Any

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

ci_enabled = get_config_setting(package_path, "ci_enabled", True)
if not in_public() and ci_enabled is False:
if not in_public() and not in_analyze_weekly() and ci_enabled is False:
return False

# now pull the new pyproject.toml configuration
Expand Down
9 changes: 9 additions & 0 deletions tools/azure-sdk-tools/ci_tools/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ def in_public() -> int:

return 0

def in_analyze_weekly() -> int:
# Returns 4 if the build originates from the tests-weekly analyze job
# 0 otherwise
print(f"SYSTEM_DEFINITIONNAME={os.getenv('SYSTEM_DEFINITIONNAME', '')}")
print(f"SYSTEM_STAGENAME={os.getenv('SYSTEM_STAGENAME', '')}")
if "tests-weekly" in os.getenv("SYSTEM_DEFINITIONNAME", "") and os.getenv("SYSTEM_STAGENAME", "") == "Analyze_Test":
return 4
return 0


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