diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3e3e7c9ec62..4078af36951 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -116,7 +116,7 @@ jobs: - bash: ./scripts/ci/test_source.sh displayName: 'Run integration test and build test' env: - ADO_PULL_REQUEST_LATEST_COMMIT: $(System.PullRequest.SourceCommitId) + ADO_PULL_REQUEST_LATEST_COMMIT: HEAD ADO_PULL_REQUEST_TARGET_BRANCH: $(System.PullRequest.TargetBranch) - job: LintModifiedExtensions @@ -153,7 +153,7 @@ jobs: AZURE_EXTENSION_DIR=~/.azure/cliextensions python scripts/ci/verify_linter.py displayName: "CLI Linter on Modified Extension" env: - ADO_PULL_REQUEST_LATEST_COMMIT: $(System.PullRequest.SourceCommitId) + ADO_PULL_REQUEST_LATEST_COMMIT: HEAD ADO_PULL_REQUEST_TARGET_BRANCH: $(System.PullRequest.TargetBranch) - job: IndexRefDocVerify diff --git a/scripts/ci/test_source.py b/scripts/ci/test_source.py index 2de55fcf9d1..feaa3fbc745 100755 --- a/scripts/ci/test_source.py +++ b/scripts/ci/test_source.py @@ -7,6 +7,7 @@ from __future__ import print_function +import logging import os import sys import tempfile @@ -21,6 +22,7 @@ from util import SRC_PATH +logger = logging.getLogger(__name__) ALL_TESTS = [] @@ -55,6 +57,10 @@ if pkg_name and os.path.isdir(os.path.join(src_d_full, pkg_name, 'tests')): ALL_TESTS.append((pkg_name, src_d_full)) +logger.warning(f'ado_branch_last_commit: {ado_branch_last_commit}, ' + f'ado_target_branch: {ado_target_branch}, ' + f'ALL_TESTS: {ALL_TESTS}.') + class TestExtensionSourceMeta(type): def __new__(mcs, name, bases, _dict):