diff --git a/.azuredevops/aqlprofile.yml b/.azuredevops/aqlprofile.yml deleted file mode 100644 index dc7d50aaadc..00000000000 --- a/.azuredevops/aqlprofile.yml +++ /dev/null @@ -1,42 +0,0 @@ -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -parameters: -- name: pipelinesRepoRef - type: string - default: refs/heads/develop -- name: triggerDownstreamJobs - type: boolean - default: true - -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - ref: ${{ parameters.pipelinesRepoRef }} - -trigger: - batch: true - branches: - include: - - develop - paths: - include: - - projects/aqlprofile - exclude: - - projects/aqlprofile/.github - - projects/aqlprofile/*.md - -pr: none - -stages: -- stage: aqlprofile - jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/aqlprofile.yml@pipelines_repo - parameters: - sparseCheckoutDir: projects/aqlprofile - triggerDownstreamJobs: ${{ parameters.triggerDownstreamJobs }} -- template: templates/report-summary-check-wrapper.yml diff --git a/.azuredevops/hip-clr.yml b/.azuredevops/hip-clr.yml deleted file mode 100644 index 8b76b0d2a18..00000000000 --- a/.azuredevops/hip-clr.yml +++ /dev/null @@ -1,57 +0,0 @@ -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -parameters: -- name: pipelinesRepoRef - type: string - default: refs/heads/develop -- name: triggerDownstreamJobs - type: boolean - default: true - -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - ref: ${{ parameters.pipelinesRepoRef }} - -trigger: - batch: true - branches: - include: - - develop - paths: - include: - - projects/clr - - projects/hip - - projects/hipother - exclude: - - projects/clr/CODEOWNERS - - projects/clr/LICENCE - - projects/clr/**/*.md - - projects/hip/docs - - projects/hip/.github - - projects/hip/.jenkins - - projects/hip/.*.yaml - - projects/hip/CODEOWNERS - - projects/hip/Jenkinsfile - - projects/hip/LICENSE.txt - - projects/hip/**/*.md - - projects/hip/VERSION - - projects/hipother/.github - - projects/hipother/CODEOWNERS - - projects/hipother/LICENSE.txt - - projects/hipother/**/*.md - -pr: none - -stages: -- stage: hip_clr - jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/HIP.yml@pipelines_repo - parameters: - triggerDownstreamJobs: ${{ parameters.triggerDownstreamJobs }} -- template: templates/report-summary-check-wrapper.yml diff --git a/.azuredevops/hip-tests.yml b/.azuredevops/hip-tests.yml deleted file mode 100644 index 170a629ee52..00000000000 --- a/.azuredevops/hip-tests.yml +++ /dev/null @@ -1,44 +0,0 @@ -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -parameters: -- name: pipelinesRepoRef - type: string - default: refs/heads/develop -- name: triggerDownstreamJobs - type: boolean - default: true - -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - ref: ${{ parameters.pipelinesRepoRef }} - -trigger: - batch: true - branches: - include: - - develop - paths: - include: - - projects/hip-tests - exclude: - - projects/hip-tests/.jenkins - - projects/hip-tests/CODEOWNERS - - projects/hip-tests/LICENSE.txt - - projects/hip-tests/**/*.md - -pr: none - -stages: -- stage: hip_tests - jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/hip-tests.yml@pipelines_repo - parameters: - sparseCheckoutDir: projects/hip-tests - triggerDownstreamJobs: ${{ parameters.triggerDownstreamJobs }} -- template: templates/report-summary-check-wrapper.yml diff --git a/.azuredevops/rdc.yml b/.azuredevops/rdc.yml deleted file mode 100644 index d864a7f9ae4..00000000000 --- a/.azuredevops/rdc.yml +++ /dev/null @@ -1,45 +0,0 @@ -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -parameters: -- name: pipelinesRepoRef - type: string - default: refs/heads/develop -- name: triggerDownstreamJobs - type: boolean - default: true - -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - ref: ${{ parameters.pipelinesRepoRef }} - -trigger: - batch: true - branches: - include: - - develop - paths: - include: - - projects/rdc - exclude: - - projects/rdc/.github - - projects/rdc/docs - - projects/rdc/.*.y*ml - - projects/rdc/*.md - - projects/rdc/LICENSE - -pr: none - -stages: -- stage: rdc - jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rdc.yml@pipelines_repo - parameters: - sparseCheckoutDir: projects/rdc - triggerDownstreamJobs: ${{ parameters.triggerDownstreamJobs }} -- template: templates/report-summary-check-wrapper.yml diff --git a/.azuredevops/rocm-core.yml b/.azuredevops/rocm-core.yml deleted file mode 100644 index 0ab8ca95584..00000000000 --- a/.azuredevops/rocm-core.yml +++ /dev/null @@ -1,44 +0,0 @@ -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -parameters: -- name: pipelinesRepoRef - type: string - default: refs/heads/develop -- name: triggerDownstreamJobs - type: boolean - default: true - -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - ref: ${{ parameters.pipelinesRepoRef }} - -trigger: - batch: true - branches: - include: - - develop - paths: - include: - - projects/rocm-core - exclude: - - projects/rocm-core/CHANGELOG.md - - projects/rocm-core/CODEOWNERS - - projects/rocm-core/copyright - - projects/rocm-core/README.txt - -pr: none - -stages: -- stage: rocm_core - jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocm-core.yml@pipelines_repo - parameters: - sparseCheckoutDir: projects/rocm-core - triggerDownstreamJobs: ${{ parameters.triggerDownstreamJobs }} -- template: templates/report-summary-check-wrapper.yml diff --git a/.azuredevops/rocm-smi-lib.yml b/.azuredevops/rocm-smi-lib.yml deleted file mode 100644 index 95edbcd5705..00000000000 --- a/.azuredevops/rocm-smi-lib.yml +++ /dev/null @@ -1,45 +0,0 @@ -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -parameters: -- name: pipelinesRepoRef - type: string - default: refs/heads/develop -- name: triggerDownstreamJobs - type: boolean - default: true - -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - ref: ${{ parameters.pipelinesRepoRef }} - -trigger: - batch: true - branches: - include: - - develop - paths: - include: - - projects/rocm-smi-lib - exclude: - - projects/rocm-smi-lib/.github - - projects/rocm-smi-lib/docs - - projects/rocm-smi-lib/.*.y*ml - - projects/rocm-smi-lib/*.md - - projects/rocm-smi-lib/License.txt - -pr: none - -stages: -- stage: rocm_smi_lib - jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocm_smi_lib.yml@pipelines_repo - parameters: - sparseCheckoutDir: projects/rocm-smi-lib - triggerDownstreamJobs: ${{ parameters.triggerDownstreamJobs }} -- template: templates/report-summary-check-wrapper.yml diff --git a/.azuredevops/rocminfo.yml b/.azuredevops/rocminfo.yml deleted file mode 100644 index 3b5f9e22ebc..00000000000 --- a/.azuredevops/rocminfo.yml +++ /dev/null @@ -1,43 +0,0 @@ -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -parameters: -- name: pipelinesRepoRef - type: string - default: refs/heads/develop -- name: triggerDownstreamJobs - type: boolean - default: true - -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - ref: ${{ parameters.pipelinesRepoRef }} - -trigger: - batch: true - branches: - include: - - develop - paths: - include: - - projects/rocminfo - exclude: - - projects/rocminfo/.github - - projects/rocminfo/License.txt - - projects/rocminfo/README.md - -pr: none - -stages: -- stage: rocminfo - jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocminfo.yml@pipelines_repo - parameters: - sparseCheckoutDir: projects/rocminfo - triggerDownstreamJobs: ${{ parameters.triggerDownstreamJobs }} -- template: templates/report-summary-check-wrapper.yml diff --git a/.azuredevops/rocprofiler-compute.yml b/.azuredevops/rocprofiler-compute.yml deleted file mode 100644 index 25f845672be..00000000000 --- a/.azuredevops/rocprofiler-compute.yml +++ /dev/null @@ -1,47 +0,0 @@ -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -parameters: -- name: pipelinesRepoRef - type: string - default: refs/heads/develop -- name: triggerDownstreamJobs - type: boolean - default: true - -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - ref: ${{ parameters.pipelinesRepoRef }} - -trigger: - batch: true - branches: - include: - - develop - paths: - include: - - projects/rocprofiler-compute - exclude: - - projects/rocprofiler-compute/.github - - projects/rocprofiler-compute/docs - - projects/rocprofiler-compute/.*.y*ml - - projects/rocprofiler-compute/*.md - - projects/rocprofiler-compute/AUTHORS - - projects/rocprofiler-compute/LICENSE - - projects/rocprofiler-compute/VERSION - -pr: none - -stages: -- stage: rocprofiler_compute - jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocprofiler-compute.yml@pipelines_repo - parameters: - sparseCheckoutDir: projects/rocprofiler-compute - triggerDownstreamJobs: ${{ parameters.triggerDownstreamJobs }} -- template: templates/report-summary-check-wrapper.yml diff --git a/.azuredevops/rocprofiler-register.yml b/.azuredevops/rocprofiler-register.yml deleted file mode 100644 index 9aceb0ded46..00000000000 --- a/.azuredevops/rocprofiler-register.yml +++ /dev/null @@ -1,44 +0,0 @@ -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -parameters: -- name: pipelinesRepoRef - type: string - default: refs/heads/develop -- name: triggerDownstreamJobs - type: boolean - default: true - -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - ref: ${{ parameters.pipelinesRepoRef }} - -trigger: - batch: true - branches: - include: - - develop - paths: - include: - - projects/rocprofiler-register - exclude: - - projects/rocprofiler-register/.github - - projects/rocprofiler-register/LICENSE - - projects/rocprofiler-register/README.md - - projects/rocprofiler-register/VERSION - -pr: none - -stages: -- stage: rocprofiler_register - jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocprofiler-register.yml@pipelines_repo - parameters: - sparseCheckoutDir: projects/rocprofiler-register - triggerDownstreamJobs: ${{ parameters.triggerDownstreamJobs }} -- template: templates/report-summary-check-wrapper.yml diff --git a/.azuredevops/rocprofiler-sdk.yml b/.azuredevops/rocprofiler-sdk.yml deleted file mode 100644 index d7fa66ffb24..00000000000 --- a/.azuredevops/rocprofiler-sdk.yml +++ /dev/null @@ -1,46 +0,0 @@ -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -parameters: -- name: pipelinesRepoRef - type: string - default: refs/heads/develop -- name: triggerDownstreamJobs - type: boolean - default: true - -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - ref: ${{ parameters.pipelinesRepoRef }} - -trigger: - batch: true - branches: - include: - - develop - paths: - include: - - projects/rocprofiler-sdk - exclude: - - projects/rocprofiler-sdk/.github - - projects/rocprofiler-sdk/ISSUE_TEMPLATE - - projects/rocprofiler-sdk/*.md - - projects/rocprofiler-sdk/CODEOWNERS - - projects/rocprofiler-sdk/LICENSE - - projects/rocprofiler-sdk/source/docs - -pr: none - -stages: -- stage: rocprofiler_sdk - jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocprofiler-sdk.yml@pipelines_repo - parameters: - sparseCheckoutDir: projects/rocprofiler-sdk - triggerDownstreamJobs: ${{ parameters.triggerDownstreamJobs }} -- template: templates/report-summary-check-wrapper.yml diff --git a/.azuredevops/rocprofiler-systems.yml b/.azuredevops/rocprofiler-systems.yml deleted file mode 100644 index 77f6dcdf8d5..00000000000 --- a/.azuredevops/rocprofiler-systems.yml +++ /dev/null @@ -1,47 +0,0 @@ -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -parameters: -- name: pipelinesRepoRef - type: string - default: refs/heads/develop -- name: triggerDownstreamJobs - type: boolean - default: true - -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - ref: ${{ parameters.pipelinesRepoRef }} - -trigger: - batch: true - branches: - include: - - develop - paths: - include: - - projects/rocprofiler-systems - exclude: - - projects/rocprofiler-systems/.github - - projects/rocprofiler-systems/docs - - projects/rocprofiler-systems/.*.y*ml - - projects/rocprofiler-systems/*.md - - projects/rocprofiler-systems/LICENSE - - projects/rocprofiler-systems/VERSION - - projects/rocprofiler-systems/.wordlist.txt - -pr: none - -stages: -- stage: rocprofiler_systems - jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocprofiler-systems.yml@pipelines_repo - parameters: - sparseCheckoutDir: projects/rocprofiler-systems - triggerDownstreamJobs: ${{ parameters.triggerDownstreamJobs }} -- template: templates/report-summary-check-wrapper.yml diff --git a/.azuredevops/rocprofiler.yml b/.azuredevops/rocprofiler.yml deleted file mode 100644 index 2244c1d6196..00000000000 --- a/.azuredevops/rocprofiler.yml +++ /dev/null @@ -1,44 +0,0 @@ -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -parameters: -- name: pipelinesRepoRef - type: string - default: refs/heads/develop -- name: triggerDownstreamJobs - type: boolean - default: true - -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - ref: ${{ parameters.pipelinesRepoRef }} - -trigger: - batch: true - branches: - include: - - develop - paths: - include: - - projects/rocprofiler - exclude: - - projects/rocprofiler/.github - - projects/rocprofiler/doc - - projects/rocprofiler/LICENSE - - projects/rocprofiler/*.md - -pr: none - -stages: -- stage: rocprofiler - jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocprofiler.yml@pipelines_repo - parameters: - sparseCheckoutDir: projects/rocprofiler - triggerDownstreamJobs: ${{ parameters.triggerDownstreamJobs }} -- template: templates/report-summary-check-wrapper.yml diff --git a/.azuredevops/rocr-runtime.yml b/.azuredevops/rocr-runtime.yml deleted file mode 100644 index 28f6d85fb36..00000000000 --- a/.azuredevops/rocr-runtime.yml +++ /dev/null @@ -1,43 +0,0 @@ -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -parameters: -- name: pipelinesRepoRef - type: string - default: refs/heads/develop -- name: triggerDownstreamJobs - type: boolean - default: true - -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - ref: ${{ parameters.pipelinesRepoRef }} - -trigger: - batch: true - branches: - include: - - develop - paths: - include: - - projects/rocr-runtime - exclude: - - projects/rocr-runtime/.github - - projects/rocr-runtime/LICENSE.txt - - projects/rocr-runtime/*.md - -pr: none - -stages: -- stage: rocr_runtime - jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/ROCR-Runtime.yml@pipelines_repo - parameters: - sparseCheckoutDir: projects/rocr-runtime - triggerDownstreamJobs: ${{ parameters.triggerDownstreamJobs }} -- template: templates/report-summary-check-wrapper.yml diff --git a/.azuredevops/roctracer.yml b/.azuredevops/roctracer.yml deleted file mode 100644 index 4c598da6282..00000000000 --- a/.azuredevops/roctracer.yml +++ /dev/null @@ -1,44 +0,0 @@ -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -parameters: -- name: pipelinesRepoRef - type: string - default: refs/heads/develop -- name: triggerDownstreamJobs - type: boolean - default: true - -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - ref: ${{ parameters.pipelinesRepoRef }} - -trigger: - batch: true - branches: - include: - - develop - paths: - include: - - projects/roctracer - exclude: - - projects/roctracer/.github - - projects/roctracer/doc - - projects/roctracer/LICENSE - - projects/roctracer/README.md - -pr: none - -stages: -- stage: roctracer - jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/roctracer.yml@pipelines_repo - parameters: - sparseCheckoutDir: projects/roctracer - triggerDownstreamJobs: ${{ parameters.triggerDownstreamJobs }} -- template: templates/report-summary-check-wrapper.yml diff --git a/.azuredevops/templates/report-summary-check-wrapper.yml b/.azuredevops/templates/report-summary-check-wrapper.yml deleted file mode 100644 index f89dbaf6f12..00000000000 --- a/.azuredevops/templates/report-summary-check-wrapper.yml +++ /dev/null @@ -1,19 +0,0 @@ -stages: -- stage: report_successful - condition: succeeded() - jobs: - - template: report-summary-check.yml - parameters: - checkConclusion: success -- stage: report_failed - condition: failed() - jobs: - - template: report-summary-check.yml - parameters: - checkConclusion: failure -- stage: report_cancelled - condition: canceled() # note: only 1 L in canceled() - jobs: - - template: report-summary-check.yml - parameters: - checkConclusion: cancelled diff --git a/.azuredevops/templates/report-summary-check.yml b/.azuredevops/templates/report-summary-check.yml deleted file mode 100644 index e4f8dcfdfb5..00000000000 --- a/.azuredevops/templates/report-summary-check.yml +++ /dev/null @@ -1,112 +0,0 @@ -parameters: -- name: checkConclusion - type: string - default: success - values: - - success - - failure - - cancelled - -jobs: -- job: report_summary_check - displayName: 'Report check status: ${{ parameters.checkConclusion }}' - variables: - - group: systems-assistant - pool: - vmImage: ubuntu-latest - steps: - - checkout: none - - task: Bash@3 - displayName: Install GitHub CLI - condition: always() - inputs: - targetType: 'inline' - script: | - (type -p wget >/dev/null || (sudo apt update && sudo apt install wget -y)) \ - && sudo mkdir -p -m 755 /etc/apt/keyrings \ - && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \ - && cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \ - && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ - && sudo mkdir -p -m 755 /etc/apt/sources.list.d \ - && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ - && sudo apt update \ - && sudo apt install gh jq -y - - task: Bash@3 - displayName: Report CI status to GitHub PR Summary Check - condition: always() - env: - APP_ID: $(APP_ID) - APP_INSTALLATION_ID: $(APP_INSTALLATION_ID) - APP_PRIVATE_KEY: $(APP_PRIVATE_KEY) - inputs: - targetType: 'inline' - script: | - if [[ ! "$(Build.SourceBranch)" =~ ^refs/pull/ ]]; then - echo "This is not a PR build. Exiting." - exit 0 - fi - - # APP_PRIVATE_KEY is generated with `base64 app_private_key.pem | tr -d '\n'` - echo "$APP_PRIVATE_KEY" | base64 -d > app_private_key.pem - chmod 600 app_private_key.pem - create_jwt() { - local header=$(echo -n '{"alg":"RS256","typ":"JWT"}' | openssl base64 -e | tr -d '=' | tr '/+' '_-' | tr -d '\n') - local payload=$(echo -n "{\"iat\":$(date +%s),\"exp\":$(($(date +%s) + 600)),\"iss\":\"$APP_ID\"}" | openssl base64 -e | tr -d '=' | tr '/+' '_-' | tr -d '\n') - local unsigned_token="${header}.${payload}" - local signature=$(echo -n "$unsigned_token" | openssl dgst -sha256 -sign "app_private_key.pem" | openssl base64 -e | tr -d '=' | tr '/+' '_-' | tr -d '\n') - echo "${unsigned_token}.${signature}" - } - JWT=$(create_jwt) - export GH_TOKEN=$(curl -sSX POST \ - -H "Authorization: Bearer $JWT" \ - -H "Accept: application/vnd.github+json" \ - "https://api.github.com/app/installations/$APP_INSTALLATION_ID/access_tokens" | jq -r .token) - - PR_NUMBER=$(echo "$(Build.SourceBranch)" | sed 's|refs/pull/\([0-9]*\)/.*|\1|') - PR_HEAD_SHA=$(curl -s "https://api.github.com/repos/ROCm/rocm-systems/pulls/$PR_NUMBER" | jq -r '.head.sha') - CHECK=$(curl -s "https://api.github.com/repos/ROCm/rocm-systems/commits/$PR_HEAD_SHA/check-runs" | jq -r '.check_runs[] | select(.name == "Azure CI Summary")') - CHECK_ID=$(echo "$CHECK" | jq -r '.id') - CHECK_SUMMARY=$(echo "$CHECK" | jq -r '.output.summary') - CHECK_TEXT=$(echo "$CHECK" | jq -r '.output.text') - - if [[ -z "$CHECK_ID" ]]; then - echo "No Azure CI Summary check found for commit $PR_HEAD_SHA" - exit 0 - fi - if [[ "$CHECK_SUMMARY" == *"$(Build.BuildId)"* ]]; then - CHECK_SUMMARY=$(echo "$CHECK_SUMMARY" | sed "s/buildId=$(Build.BuildId)[^|]*|[^|]*|/buildId=$(Build.BuildId)) | ${{ parameters.checkConclusion }} |/") - fi - if [[ "$CHECK_TEXT" == *"$(Build.BuildId)="* ]]; then - CHECK_TEXT=$(echo "$CHECK_TEXT" | sed "s/$(Build.BuildId)=[^;]*;/$(Build.BuildId)=${{ parameters.checkConclusion }};/") - fi - - CHECK_STATUS=$(echo "$CHECK_TEXT" | grep -q "pending" && echo "in_progress" || echo "completed") - CHECK_CONCLUSION=$(echo "$CHECK_TEXT" | grep -q -e "cancelled" -e "failure" && echo "failure" || echo "success") - - if [[ "$CHECK_STATUS" == "completed" ]]; then - gh_output=$(gh api repos/ROCm/rocm-systems/check-runs/$CHECK_ID \ - -X PATCH \ - -f "name=Azure CI Summary" \ - -f "head_sha=$PR_HEAD_SHA" \ - -f "status=$CHECK_STATUS" \ - -f "conclusion=$CHECK_CONCLUSION" \ - -f "output[title]=Azure CI Summary" \ - -f "output[summary]=$CHECK_SUMMARY" \ - -f "output[text]=$CHECK_TEXT") - else - gh_output=$(gh api repos/ROCm/rocm-systems/check-runs/$CHECK_ID \ - -X PATCH \ - -f "name=Azure CI Summary" \ - -f "head_sha=$PR_HEAD_SHA" \ - -f "output[title]=Azure CI Summary" \ - -f "output[summary]=$CHECK_SUMMARY" \ - -f "output[text]=$CHECK_TEXT") - fi - - echo "Reported status '${{ parameters.checkConclusion }}' to summary check: $(echo "$gh_output" | jq -r '.id')" - if [[ "$CHECK_STATUS" == "completed" ]]; then - echo "All checks completed with overall conclusion: $CHECK_CONCLUSION" - else - echo "Some checks are still in progress: $CHECK_STATUS" - fi - echo "Summary check URL: $(echo "$gh_output" | jq -r '.html_url')" diff --git a/.github/scripts/azure_resolve_subtree_deps.py b/.github/scripts/azure_resolve_subtree_deps.py deleted file mode 100644 index 68b0df068d1..00000000000 --- a/.github/scripts/azure_resolve_subtree_deps.py +++ /dev/null @@ -1,109 +0,0 @@ -#!/usr/bin/env python3 - -""" -Azure Pipeline Resolver Script ------------------------------- -This script determines which Azure pipelines to run based on changed subtrees. -Using a predefined dependency map, the script resolves which projects need to be processed, -skipping those that will be covered by their dependencies. - -Steps: - 1. Load a list of changed projects from a file. - 2. Consult a dependency map to determine transitive and direct dependencies. - 3. Identify projects that should be processed, excluding those handled by dependencies. - 4. Output the list of projects to be run, along with their Azure pipeline IDs. - -Arguments: - --subtree-file : Path to the file containing a newline-separated list of changed subtrees. - -Outputs: - Prints a newline-separated list of "project_name=definition_id" for the projects that need - to be processed, where `definition_id` is the Azure pipeline ID associated with the project. - -Example Usage: - To determine which pipelines to run given the changed subtrees listed in a file: - python azure_pipeline_resolver.py --subtree-file changed_subtrees.txt -""" - -import argparse -from typing import List, Optional - - -def parse_arguments(argv: Optional[List[str]] = None) -> argparse.Namespace: - """Parse command-line arguments.""" - parser = argparse.ArgumentParser( - description="Given a list of changed subtrees, determine which Azure pipelines to run." - ) - parser.add_argument( - "--subtree-file", - required=True, - help="Path to the file containing changed subtrees", - ) - return parser.parse_args(argv) - - -def read_file_into_set(file_path): - """Reads the project names from the file into a set.""" - with open(file_path, "r") as file: - return {line.strip() for line in file} - - -def resolve_dependencies(projects, dependencies): - """Resolves projects to be run by checking all levels of dependencies.""" - - def has_dependency(project, projects_set): - """Recursively checks if a project has any dependencies in the projects_set.""" - if project not in dependencies: - return False - for dependency in dependencies[project]: - if dependency in projects_set or has_dependency(dependency, projects_set): - return True - return False - - projects_to_run = set(projects) - - for project in projects: - if has_dependency(project, projects_to_run): - projects_to_run.discard(project) - - return projects_to_run - - -def main(argv=None) -> None: - """Main function to process the projects and output those to be run.""" - # Systems build+test dependency tree as defined in Azure CI and TheRock - systems_dependencies = { - "projects/clr": {"projects/hip"}, - "projects/hip": {"projects/hipother"}, - } - # Azure pipeline IDs for each project, to be populated as projects are enabled - definition_ids = { - "projects/aqlprofile": 365, - "projects/clr": 335, - "projects/hip-tests": 362, - "projects/hip": 335, - "projects/hipother": 335, - "projects/rdc": 360, - "projects/rocm-core": 349, - "projects/rocm-smi-lib": 358, - "projects/rocminfo": 356, - "projects/rocprofiler-compute": 344, - "projects/rocprofiler-register": 327, - "projects/rocprofiler-sdk": 347, - "projects/rocprofiler-systems": 345, - "projects/rocprofiler": 329, - "projects/rocr-runtime": 354, - "projects/roctracer": 331, - } - - args = parse_arguments(argv) - projects = read_file_into_set(args.subtree_file) - projects_to_run = resolve_dependencies(projects, systems_dependencies) - - for project in projects_to_run: - if project in definition_ids: - print(f"{project}={definition_ids[project]}") - - -if __name__ == "__main__": - main() diff --git a/.github/workflows/azure-ci-dispatcher.yml b/.github/workflows/azure-ci-dispatcher.yml deleted file mode 100644 index a8300519fe5..00000000000 --- a/.github/workflows/azure-ci-dispatcher.yml +++ /dev/null @@ -1,345 +0,0 @@ -# Azure CI Dispatcher -# ------------------ -# This workflow allows Azure CI to be centralized in a single PR check. -# It detects which subtrees (from a super-repo structure) were changed in a -# pull request, and automatically requests Azure CI runs for the corresponding -# subtrees. -# -# For any given subtree, if an upstream subtree is also included in the PR, -# it will not run CI for the downstream subtree. -# Eg. A PR that touches rocprim and rocthrust will only trigger rocprim CI. -# -# Requires an Azure Personal Access Token with permissions to manage builds. -# The token should be stored in the repository secrets as `AZ_PAT`. - -name: Trigger Azure CI - -on: - pull_request_target: - types: - - opened - - synchronize - - reopened - - ready_for_review - branches: - - develop - - staging - - main - - release-staging/rocm-rel-7.* - -concurrency: - group: azure-ci-dispatcher-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -jobs: - dispatch-azure-ci: - name: Trigger Azure CI - if: github.repository == 'ROCm/rocm-systems' && github.event.pull_request.draft == false - runs-on: ubuntu-latest - steps: - - name: Generate a token - id: generate-token - uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 - with: - app-id: ${{ secrets.APP_ID }} - private-key: ${{ secrets.APP_PRIVATE_KEY }} - owner: ${{ github.repository_owner }} - repositories: | - rocm-systems - - - name: Wait until refs/pull/${{ github.event.pull_request.number }}/merge exists - run: | - merge_ref="refs/pull/${{ github.event.pull_request.number }}/merge" - check_merge_ref() { - git ls-remote "https://github.com/ROCm/rocm-systems" "$merge_ref" | grep -q "$merge_ref" - } - - max_attempts=10 - attempt=0 - - while [ $attempt -lt $max_attempts ]; do - if check_merge_ref; then - echo "$merge_ref found." - break - else - retry_delay=60 - echo "$merge_ref not found. Retrying in $retry_delay seconds..." - sleep $retry_delay - fi - attempt=$((attempt + 1)) - done - - if [ $attempt -ge $max_attempts ]; then - echo "$merge_ref not found. Maximum attempts reached." - exit 1 - fi - - - name: Checkout code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - ref: refs/pull/${{ github.event.pull_request.number }}/merge - sparse-checkout: .github - sparse-checkout-cone-mode: true - token: ${{ steps.generate-token.outputs.token }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r .github/requirements.txt - - - name: Detect changed subtrees - id: detect - env: - GH_TOKEN: ${{ steps.generate-token.outputs.token }} - run: | - python .github/scripts/pr_detect_changed_subtrees.py \ - --repo "${{ github.repository }}" \ - --pr "${{ github.event.pull_request.number }}" \ - --config ".github/repos-config.json" \ - --require-monorepo-source - - - name: Cancel in-progress/not-started runs for current PR - id: cancel-in-progress - if: steps.detect.outputs.subtrees - run: | - pr_number=${{ github.event.pull_request.number }} - pr_filter_query="branchName=refs/pull/$pr_number/merge&repositoryType=GitHub&repositoryId=ROCm/rocm-systems&api-version=7.1" - - res=$(curl -sSX GET "https://dev.azure.com/ROCm-CI/ROCm-CI/_apis/build/builds?$pr_filter_query" \ - -H "Content-Type: application/json") - - runs=$(echo "$res" | jq -r ".value[] | select((.status == \"inProgress\" or .status == \"notStarted\") and .definition.name != \"rocm-ci-caller\") | .id") - - if [ -z "$runs" ]; then - echo "No in-progress/not-started runs found for ROCm/rocm-systems PR #$pr_number" - echo "status=false" >> $GITHUB_OUTPUT - exit 0 - fi - - echo "Found in-progress/not-started runs for ROCm/rocm-systems PR #$pr_number: $runs" - echo "status=true" >> $GITHUB_OUTPUT - - for run_id in $runs; do - echo "Cancelling run ID: $run_id" - echo "Run URL: https://dev.azure.com/ROCm-CI/ROCm-CI/_build/results?buildId=$run_id" - response=$(curl -sSX PATCH "https://dev.azure.com/ROCm-CI/ROCm-CI/_apis/build/builds/$run_id?api-version=7.1" \ - -u ":${{ secrets.AZ_PAT }}" \ - -H "Content-Type: application/json" \ - -d '{"status": "cancelling"}') - - if [ $? -ne 0 ]; then - echo "Failed to cancel run ID: $run_id" - else - echo "Cancelled run ID: $run_id" - fi - done - - - name: Rerun previous failed/cancelled runs for current PR merge commit - id: rerun-failed - if: steps.detect.outputs.subtrees && steps.cancel-in-progress.outputs.status == 'false' - run: | - pr_number=${{ github.event.pull_request.number }} - pr_merge_sha=$(curl -sSX GET "https://api.github.com/repos/ROCm/rocm-systems/git/ref/pull/${pr_number}/merge" | jq -r '.object.sha') - pr_filter_query="branchName=refs/pull/$pr_number/merge&repositoryType=GitHub&repositoryId=ROCm/rocm-systems&api-version=7.1" - - res=$(curl -sSX GET "https://dev.azure.com/ROCm-CI/ROCm-CI/_apis/build/builds?$pr_filter_query" \ - -H "Content-Type: application/json") - - failed_runs_info=$(echo "$res" | jq -r ".value[] | - select((.result == \"failed\" or .result == \"canceled\") - and (.sourceVersion | contains(\"$pr_merge_sha\"))) - | {id: .id, name: .definition.name}") - success_runs_info=$(echo "$res" | jq -r ".value[] | - select((.result == \"succeeded\") - and (.sourceVersion | contains(\"$pr_merge_sha\"))) - | {id: .id, name: .definition.name}") - - failed_run_ids=$(echo "$failed_runs_info" | jq -r '.id') - failed_project_names=$(echo "$failed_runs_info" | jq -r '.name') - success_run_ids=$(echo "$success_runs_info" | jq -r '.id') - success_project_names=$(echo "$success_runs_info" | jq -r '.name') - - if [ -z "$failed_run_ids" ]; then - echo "No failed/cancelled runs found for ROCm/rocm-systems PR #$pr_number at merge commit $pr_merge_sha" - echo "status=false" >> $GITHUB_OUTPUT - exit 0 - fi - - echo "Found failed/cancelled runs for ROCm/rocm-systems PR #$pr_number at merge commit $pr_merge_sha: ${failed_run_ids[*]}" - echo "Found successful runs for ROCm/rocm-systems PR #$pr_number at merge commit $pr_merge_sha: ${success_run_ids[*]}" - echo "status=true" >> $GITHUB_OUTPUT - - new_run_ids=() - - for run_id in $failed_run_ids; do - echo "Rerunning failed run ID: $run_id" - echo "Run URL: https://dev.azure.com/ROCm-CI/ROCm-CI/_build/results?buildId=$run_id" - response=$(curl -sSX PATCH "https://dev.azure.com/ROCm-CI/ROCm-CI/_apis/build/builds/$run_id?retry=true&api-version=7.1" \ - -u ":${{ secrets.AZ_PAT }}" \ - -H "Content-Type: application/json") - - if [ $? -ne 0 ]; then - echo "Failed to rerun run ID: $run_id" - else - echo "Rerun requested for run ID: $run_id" - new_run_ids+=("$run_id") - fi - done - - echo "run_ids=${new_run_ids[*]}" >> $GITHUB_OUTPUT - echo "project_names=${failed_project_names[*]}" >> $GITHUB_OUTPUT - echo "success_run_ids=${success_run_ids[*]}" >> $GITHUB_OUTPUT - echo "success_project_names=${success_project_names[*]}" >> $GITHUB_OUTPUT - - - name: Start new Azure CI runs - id: dispatch - if: steps.detect.outputs.subtrees && (steps.cancel-in-progress.outputs.status == 'true' || steps.rerun-failed.outputs.status == 'false') - env: - GH_TOKEN: ${{ steps.generate-token.outputs.token }} - run: | - echo "${{ steps.detect.outputs.subtrees }}" > changed_subtrees.txt - - python .github/scripts/azure_resolve_subtree_deps.py \ - --subtree-file changed_subtrees.txt \ - > resolved_subtrees.txt - - run_ids=() - project_names=() - - while IFS= read -r line; do - IFS='=' read -r project_name definition_id <<< "$line" - echo "Requesting run for $project_name with definition ID $definition_id" - - max_attempts=3 - retry_delay=5 - attempt=1 - success=false - - while [ $attempt -le $max_attempts ]; do - response=$(curl -sSX POST https://dev.azure.com/ROCm-CI/ROCm-CI/_apis/pipelines/$definition_id/runs?api-version=7.1 \ - -u ":${{ secrets.AZ_PAT }}" \ - -H "Content-Type: application/json" \ - -d '{ - "resources": { - "repositories": { - "self": { - "refName": "refs/pull/${{ github.event.pull_request.number }}/merge" - } - } - } - }') - - if [ $? -eq 0 ]; then - success=true - break - fi - - echo "Attempt $attempt failed. Retrying in $retry_delay seconds..." - sleep $retry_delay - attempt=$((attempt + 1)) - done - - if [ "$success" = true ]; then - run_id=$(echo "$response" | jq -r '.id' || echo "null") - if [ "$run_id" != "null" ]; then - echo "Run ID for $project_name: $run_id" - echo "Run URL: https://dev.azure.com/ROCm-CI/ROCm-CI/_build/results?buildId=$run_id" - run_ids+=("$run_id") - project_names+=("$project_name") - else - echo "Failed to request run for $project_name" - fi - else - echo "Failed to request run for $project_name after $max_attempts attempts" - fi - - echo "" - done < resolved_subtrees.txt - - echo "run_ids=${run_ids[*]}" >> $GITHUB_OUTPUT - echo "project_names=${project_names[*]}" >> $GITHUB_OUTPUT - - - name: Create summary check - env: - GH_TOKEN: ${{ steps.generate-token.outputs.token }} - PR_TITLE: ${{ toJSON(github.event.pull_request.title) }} - run: | - if [[ -n "${{ steps.dispatch.outputs.run_ids }}" && -n "${{ steps.dispatch.outputs.project_names }}" ]]; then # If new runs were started - run_ids=(${{ steps.dispatch.outputs.run_ids }}) - project_names=(${{ steps.dispatch.outputs.project_names }}) - elif [[ -n "${{ steps.rerun-failed.outputs.run_ids }}" && -n "${{ steps.rerun-failed.outputs.project_names }}" ]]; then # If reruns were requested - run_ids=(${{ steps.rerun-failed.outputs.run_ids }}) - project_names=(${{ steps.rerun-failed.outputs.project_names }}) - success_run_ids=(${{ steps.rerun-failed.outputs.success_run_ids }}) - success_project_names=(${{ steps.rerun-failed.outputs.success_project_names }}) - else - echo "No run IDs or project names found, creating empty summary check." - fi - - pr_number=${{ github.event.pull_request.number }} - pr_head_sha=${{ github.event.pull_request.head.sha }} - pr_merge_sha=$(curl -sSX GET "https://api.github.com/repos/ROCm/rocm-systems/git/ref/pull/${pr_number}/merge" | jq -r '.object.sha') - - newline=$'\n' - - summary="PR: [$PR_TITLE #$pr_number](${{ github.event.pull_request.html_url }})${newline}${newline}" - summary+="HEAD: [$pr_head_sha](https://github.com/ROCm/rocm-systems/commit/$pr_head_sha)${newline}${newline}" - summary+="MERGE: [$pr_merge_sha](https://github.com/ROCm/rocm-systems/commit/$pr_merge_sha)${newline}${newline}" - - if [[ -z "${run_ids[*]}" && -z "${success_run_ids[*]}" ]]; then - summary+="### No Azure CI runs were started for this PR.${newline}${newline}" - gh_output=$(gh api repos/ROCm/rocm-systems/check-runs \ - -f "name=Azure CI Summary" \ - -f "head_sha=$pr_head_sha" \ - -f "status=completed" \ - -f "conclusion=neutral" \ - -f "output[title]=Azure CI Summary" \ - -f "output[summary]=$summary") - echo "Created empty summary check with ID: $(echo "$gh_output" | jq -r '.id')" - echo "Summary check URL: https://github.com/ROCm/rocm-systems/pull/$pr_number/checks?check_run_id=$(echo "$gh_output" | jq -r '.id')" - exit 0 - fi - - summary+="### Pipelines triggered for this PR${newline}${newline}" - summary+="| Project | Run ID | Status |${newline}" - summary+="|--------------|--------|--------|${newline}" - - if [[ -n "${success_run_ids[*]}" ]]; then - for i in "${!success_project_names[@]}"; do - summary+="| ${success_project_names[i]} | [${success_run_ids[i]}](https://dev.azure.com/ROCm-CI/ROCm-CI/_build/results?buildId=${success_run_ids[i]}) | success |${newline}" - done - fi - - for i in "${!project_names[@]}"; do - summary+="| ${project_names[i]} | [${run_ids[i]}](https://dev.azure.com/ROCm-CI/ROCm-CI/_build/results?buildId=${run_ids[i]}) | pending |${newline}" - done - - summary+="${newline}${newline}" - summary+="### Rerun instructions${newline}${newline}" - summary+="To request Azure to rerun jobs, click the \`Re-run all jobs\` button on the [corresponding \`Trigger Azure CI\` run](https://github.com/ROCm/rocm-systems/actions/runs/${{ github.run_id }}).${newline}${newline}" - summary+="If there are any pending runs for this PR, they will be cancelled, and new runs will be started.${newline}${newline}" - summary+="If there are no pending runs, but there are existing failed or cancelled runs for this PR and merge SHA, the existing runs will be rerun.${newline}${newline}" - summary+="Otherwise, new runs will be started.${newline}${newline}" - - text="" - - if [[ -n "${success_run_ids[*]}" ]]; then - for i in "${!success_run_ids[@]}"; do - text+="${success_run_ids[i]}=success;" - done - fi - - for i in "${!project_names[@]}"; do - text+="${run_ids[i]}=pending;" - done - - gh_output=$(gh api repos/ROCm/rocm-systems/check-runs \ - -f "name=Azure CI Summary" \ - -f "head_sha=$pr_head_sha" \ - -f "status=in_progress" \ - -f "output[title]=Azure CI Summary" \ - -f "output[summary]=$summary" \ - -f "output[text]=$text") - - echo "Created summary check with ID: $(echo "$gh_output" | jq -r '.id')" - echo "Summary check URL: https://github.com/ROCm/rocm-systems/pull/$pr_number/checks?check_run_id=$(echo "$gh_output" | jq -r '.id')" diff --git a/projects/amdsmi/.azuredevops/rocm-ci.yml b/projects/amdsmi/.azuredevops/rocm-ci.yml deleted file mode 100644 index 7b4d6732c92..00000000000 --- a/projects/amdsmi/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,42 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - .github - - docs - - '.*.y*ml' - - '*.md' - - LICENSE - -pr: - autoCancel: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - .github - - docs - - '.*.y*ml' - - '*.md' - - LICENSE - drafts: false - -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/amdsmi.yml@pipelines_repo diff --git a/projects/clr/.azuredevops/rocm-ci.yml b/projects/clr/.azuredevops/rocm-ci.yml deleted file mode 100644 index f87dcac5fb1..00000000000 --- a/projects/clr/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,71 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - - repository: matching_repo - type: github - endpoint: ROCm - name: ROCm/HIP - ref: $(Build.SourceBranch) - - repository: hipother_repo - type: github - endpoint: ROCm - name: ROCm/hipother - ref: $(Build.SourceBranch) - pipelines: - - pipeline: hip_pipeline - source: \HIP - trigger: - branches: - include: - - amd-staging - - amd-mainline - - pipeline: hipother_pipeline - source: \hipother - trigger: - branches: - include: - - amd-staging - - amd-mainline - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - CODEOWNERS - - LICENCE - - '**/*.md' - -pr: - autoCancel: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - CODEOWNERS - - LICENCE - - '**/*.md' - drafts: false - -jobs: -# if the build reason is a resource trigger, it means trigger is HIP or hipother repo build -# HIP/hipother repo build would have just built runtime, just copy their build products -# this is to ensure clr has latest good package for combined-packaging jobs -# combined-packaging jobs only have to look at clr pipeline for latest runtime -# to remove logic of comparing build products from both clr, hip, hipother triggers - - ${{ if eq(variables['Build.Reason'], 'ResourceTrigger') }}: - - template: ${{ variables.CI_COMPONENT_PATH }}/copyHIP.yml@pipelines_repo - - ${{ if ne(variables['Build.Reason'], 'ResourceTrigger') }}: - - template: ${{ variables.CI_COMPONENT_PATH }}/HIP.yml@pipelines_repo diff --git a/projects/hip-tests/.azuredevops/rocm-ci.yml b/projects/hip-tests/.azuredevops/rocm-ci.yml deleted file mode 100644 index cae1cdaf802..00000000000 --- a/projects/hip-tests/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,48 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - pipelines: - - pipeline: hip_pipeline - source: \HIP - trigger: - branches: - include: - - amd-staging - - amd-mainline - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - '.jenkins' - - CODEOWNERS - - LICENSE.txt - - '**/.md' - -pr: - autoCancel: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - '.jenkins' - - CODEOWNERS - - LICENSE.txt - - '**/.md' - drafts: false - -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/hip-tests.yml@pipelines_repo diff --git a/projects/hip/.azuredevops/rocm-ci.yml b/projects/hip/.azuredevops/rocm-ci.yml deleted file mode 100644 index c7cc075ff0c..00000000000 --- a/projects/hip/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,75 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - - repository: matching_repo - type: github - endpoint: ROCm - name: ROCm/clr - ref: $(Build.SourceBranch) - - repository: hipother_repo - type: github - endpoint: ROCm - name: ROCm/hipother - ref: $(Build.SourceBranch) - pipelines: - - pipeline: rocr-runtime_pipeline - source: \ROCR-Runtime - trigger: - branches: - include: - - amd-staging - - amd-mainline - - pipeline: rocprofiler-register_pipeline - source: \rocprofiler-register - trigger: - branches: - include: - - amd-staging - - amd-mainline - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - docs - - '.github' - - '.jenkins' - - '.*.yaml' - - CODEOWNERS - - Jenkinsfile - - LICENSE.txt - - '**/*.md' - - VERSION - -pr: - autoCancel: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - docs - - '.github' - - '.jenkins' - - '.*.yaml' - - CODEOWNERS - - Jenkinsfile - - LICENSE.txt - - '**/.md' - - VERSION - drafts: false - -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/HIP.yml@pipelines_repo diff --git a/projects/hipother/.azuredevops/rocm-ci.yml b/projects/hipother/.azuredevops/rocm-ci.yml deleted file mode 100644 index 0c2d620d7b9..00000000000 --- a/projects/hipother/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,50 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - - repository: matching_repo - type: github - endpoint: ROCm - name: ROCm/clr - ref: $(Build.SourceBranch) - - repository: hipother_repo - type: github - endpoint: ROCm - name: ROCm/HIP # leverage HIP job that builds both AMD and NV backends - ref: $(Build.SourceBranch) - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - '.github' - - CODEOWNERS - - LICENSE.txt - - '**/*.md' - -pr: - autoCancel: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - '.github' - - CODEOWNERS - - LICENSE.txt - - '**/*.md' - drafts: false - -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/HIP.yml@pipelines_repo diff --git a/projects/rdc/.azuredevops/rocm-ci.yml b/projects/rdc/.azuredevops/rocm-ci.yml deleted file mode 100644 index 53c63c687c2..00000000000 --- a/projects/rdc/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,40 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-staging - paths: - exclude: - - .github - - docs - - '.*.y*ml' - - '*.md' - - LICENSE - -pr: - autoCancel: true - branches: - include: - - amd-staging - paths: - exclude: - - .github - - docs - - '.*.y*ml' - - '*.md' - - LICENSE - drafts: false - -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rdc.yml@pipelines_repo diff --git a/projects/rocm-core/.azuredevops/rocm-ci.yml b/projects/rocm-core/.azuredevops/rocm-ci.yml deleted file mode 100644 index 8d61d8f456b..00000000000 --- a/projects/rocm-core/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,38 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - master - paths: - exclude: - - 'CHANGELOG.md' - - 'CODEOWNERS' - - 'copyright' - - 'README.txt' - -pr: - autoCancel: true - branches: - include: - - master - paths: - exclude: - - 'CHANGELOG.md' - - 'CODEOWNERS' - - 'copyright' - - 'README.txt' - drafts: false - -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocm-core.yml@pipelines_repo diff --git a/projects/rocm-smi-lib/.azuredevops/rocm-ci.yml b/projects/rocm-smi-lib/.azuredevops/rocm-ci.yml deleted file mode 100644 index 430c585b99a..00000000000 --- a/projects/rocm-smi-lib/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,42 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - .github - - docs - - '.*.y*ml' - - '*.md' - - LICENSE - -pr: - autoCancel: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - .github - - docs - - '.*.y*ml' - - '*.md' - - LICENSE - drafts: false - -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocm_smi_lib.yml@pipelines_repo diff --git a/projects/rocminfo/.azuredevops/rocm-ci.yml b/projects/rocminfo/.azuredevops/rocm-ci.yml deleted file mode 100644 index 3cf03ac7b8d..00000000000 --- a/projects/rocminfo/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,45 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - pipelines: - - pipeline: rocr-runtime_pipeline - source: \ROCR-Runtime - trigger: - branches: - include: - - master - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - .github - - License.txt - - README.md - -pr: - autoCancel: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - .github - - License.txt - - README.md - drafts: false - -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocminfo.yml@pipelines_repo diff --git a/projects/rocprofiler-compute/.azuredevops/rocm-ci-mainline.yml b/projects/rocprofiler-compute/.azuredevops/rocm-ci-mainline.yml deleted file mode 100644 index 7bb4f43a236..00000000000 --- a/projects/rocprofiler-compute/.azuredevops/rocm-ci-mainline.yml +++ /dev/null @@ -1,63 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-mainline - paths: - exclude: - - .github - - docs - - '.*.y*ml' - - '*.md' - - AUTHORS - - VERSION - -pr: - autoCancel: true - branches: - include: - - amd-mainline - paths: - exclude: - - .github - - docs - - '.*.y*ml' - - '*.md' - - AUTHORS - - VERSION - drafts: false - -# For changes to mainline, only build & test against mainline ROCm -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocprofiler-compute.yml@pipelines_repo - parameters: - jobMatrix: - buildJobs: - - gfx942-mainline: - name: gfx942_mainline - target: gfx942 - dependencySource: mainline - - gfx90a-mainline: - name: gfx90a_mainline - target: gfx90a - dependencySource: mainline - testJobs: - - gfx942-mainline: - name: gfx942_mainline - target: gfx942 - dependencySource: mainline - - gfx90a-mainline: - name: gfx90a_mainline - target: gfx90a - dependencySource: mainline diff --git a/projects/rocprofiler-compute/.azuredevops/rocm-ci.yml b/projects/rocprofiler-compute/.azuredevops/rocm-ci.yml deleted file mode 100644 index def16730219..00000000000 --- a/projects/rocprofiler-compute/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,45 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - develop - - amd-staging - paths: - exclude: - - .github - - docs - - '.*.y*ml' - - '*.md' - - AUTHORS - - VERSION - -pr: - autoCancel: true - branches: - include: - - develop - - amd-staging - paths: - exclude: - - .github - - docs - - '.*.y*ml' - - '*.md' - - AUTHORS - - VERSION - drafts: false - -# For changes to develop and staging, build & test against both staging and mainline ROCm -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocprofiler-compute.yml@pipelines_repo diff --git a/projects/rocprofiler-register/.azuredevops/rocm-ci.yml b/projects/rocprofiler-register/.azuredevops/rocm-ci.yml deleted file mode 100644 index 8f6f2242c88..00000000000 --- a/projects/rocprofiler-register/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,39 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-mainline - - amd-staging - paths: - exclude: - - .github - - LICENSE - - README.md - - VERSION - -pr: - autoCancel: true - branches: - include: - - amd-staging - paths: - exclude: - - .github - - LICENSE - - README.md - - VERSION - drafts: false - -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocprofiler-register.yml@pipelines_repo diff --git a/projects/rocprofiler-sdk/.azuredevops/rocm-ci.yml b/projects/rocprofiler-sdk/.azuredevops/rocm-ci.yml deleted file mode 100644 index 7ae631ead2f..00000000000 --- a/projects/rocprofiler-sdk/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,40 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - .github - - ISSUE_TEMPLATE - - '*.md' - - CODEOWNERS - -pr: - autoCancel: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - .github - - ISSUE_TEMPLATE - - '*.md' - - CODEOWNERS - drafts: false - -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocprofiler-sdk.yml@pipelines_repo diff --git a/projects/rocprofiler-systems/.azuredevops/rocm-ci.yml b/projects/rocprofiler-systems/.azuredevops/rocm-ci.yml deleted file mode 100644 index fadc69c4aa5..00000000000 --- a/projects/rocprofiler-systems/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,44 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - .github - - docs - - '.*.y*ml' - - '*.md' - - VERSION - - .wordlist.txt - -pr: - autoCancel: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - .github - - docs - - '.*.y*ml' - - '*.md' - - VERSION - - .wordlist.txt - drafts: false - -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocprofiler-systems.yml@pipelines_repo diff --git a/projects/rocprofiler/.azuredevops/rocm-ci.yml b/projects/rocprofiler/.azuredevops/rocm-ci.yml deleted file mode 100644 index 27fd51a9aba..00000000000 --- a/projects/rocprofiler/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,40 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-master - - amd-staging - paths: - exclude: - - .github - - doc - - LICENSE - - '*.md' - -pr: - autoCancel: true - branches: - include: - - amd-master - - amd-staging - paths: - exclude: - - .github - - doc - - LICENSE - - '*.md' - drafts: false - -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/rocprofiler.yml@pipelines_repo diff --git a/projects/rocr-runtime/.azuredevops/rocm-ci.yml b/projects/rocr-runtime/.azuredevops/rocm-ci.yml deleted file mode 100644 index 42aafb7131c..00000000000 --- a/projects/rocr-runtime/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,38 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - .github - - LICENSE.txt - - '*.md' - -pr: - autoCancel: true - branches: - include: - - amd-staging - - amd-mainline - paths: - exclude: - - .github - - LICENSE.txt - - '*.md' - drafts: false - -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/ROCR-Runtime.yml@pipelines_repo diff --git a/projects/roctracer/.azuredevops/rocm-ci.yml b/projects/roctracer/.azuredevops/rocm-ci.yml deleted file mode 100644 index 87826afa879..00000000000 --- a/projects/roctracer/.azuredevops/rocm-ci.yml +++ /dev/null @@ -1,40 +0,0 @@ -resources: - repositories: - - repository: pipelines_repo - type: github - endpoint: ROCm - name: ROCm/ROCm - -variables: -- group: common -- template: /.azuredevops/variables-global.yml@pipelines_repo - -trigger: - batch: true - branches: - include: - - amd-mainline - - amd-staging - paths: - exclude: - - .github - - doc - - LICENSE - - README.md - -pr: - autoCancel: true - branches: - include: - - amd-mainline - - amd-staging - paths: - exclude: - - .github - - doc - - LICENSE - - README.md - drafts: false - -jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/roctracer.yml@pipelines_repo