← Back to Pull requests

Enable twice-weekly host-ASan builds and testing on gfx942 #8849

Open
sa-faizal opened this pull request with 68 lines diff across 4 files
View on GitHub
sa-faizal sa-faizal commented on Oct 08, 2026 04:07 UTC
Author

ISSUE ID : https://github.com/ROCm/TheRock/issues/9029

This is a stopgap measure until the full ASan setup is ready for nightly testing.

Adds a host-ASan build and test workflow for gfx942, running every Tuesday and Thursday at 08:17 UTC. It uses the existing host-asan-debug preset and multi-arch CI pipeline, and can also be started manually.

GPU tests use the existing OSSCI labels:

  • Single GPU: linux-gfx942-1gpu-ccs-csp-ossci-rocm

  • Multi GPU: linux-gfx942-8gpu-ossci-rocm
  • gfx94x opts into these runners through the host-asan-use-ci-runners family-matrix flag. Both runner-selection paths read this flag, allowing other families to opt in through configuration. The bypass is temporary until therock-ci-config migrates the ASan runners.

    Pre-commit and 18 runner-selection checks passed. Test files are unchanged; three existing assertions fail because they still expect sandbox routing.

    Demo run: all build stages and sanity passed. Multiple component tests failed, which is expected at this stage. This run predates the matrix-flag follow-up and uses the existing ASan workflow entry point on a separate branch.

    Diff: 68 lines (+63 / -5) across 4 files Reviewer: geomin12 Review duration: 13242m
    All Vouch review confidence checks passed
    Residual risk 0.04 = Change Risk (0.33) × (1 − Review Confidence (0.87)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 68 lines diff across 4 files
    0.33
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 5 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    86%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.253
    Real PR Conversation Timeline
    14 items
    therock-pr-bot[bot] therock-pr-bot[bot] commented on Oct 08, 2026 04:09 UTC
    Bot

    <!-- therock-pr-bot-policy-check -->

    ✅ All Policy Checks Passed

    | Check | Status | Details |
    |---|:---:|---|
    | 📝 PR Description | ✅ Pass | — |
    | ⛔ Forbidden Files | ✅ Pass | — |
    | 🧪 Unit Test | ⚠️ Warning | Error: Source/code files changed without an accompanying unit test.<br>Expected: add at least one test file named like test_<name>.py / test_<name>.cpp (or <name>_test.*).<br>Current: code file(s) changed: build_tools/github_actions/amdgpu_family_matrix.py, build_tools/github_actions/configure_multi_arch_ci.py, build_tools/github_actions/fetch_test_configurations.py; no test file found |
    | 🚫 Draft PR | 🔜 To Be Enabled | — |
    | 🚩 Feature Flag | 🔜 To Be Enabled | — |
    | 📊 Code Coverage | 🔜 To Be Enabled | — |

    🎉 All policy checks passed!

    📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

    🙋 Wish to Override Policy?

    therock-pr-bot[bot] therock-pr-bot[bot] commented on Oct 08, 2026 04:09 UTC
    Bot

    <!-- therock-pr-bot-fix-policies -->
    🚫 Please fix the failed policies before requesting reviews.

    The following policy checks failed:

  • ❌ PR Description
  • The Not ready to Review label has been added to this PR.
    Once all policies pass, the label will be removed automatically.

    geomin12 geomin12 commented on code on Oct 08, 2026 22:30 UTC
    Code Review
    build_tools/github_actions/configure_multi_arch_ci.py:1
    @@ -1527,6 +1527,8 @@ def _expand_build_config_for_platform(
                         f"  {family_name}: host-asan tests only run on nightly, "
                         f"disabling tests"
                     )
    +            elif family_name == "gfx94x":
    +                print(f"  {family_name}: using host-asan CI runner: {test_runs_on}")

    instead of hard-coding for specific families, can we add this to amdgpu_family_matrix.py for particular families? so if host-asan is running and the family is gfx94X, it will be included

    this way, we can dynamically add other targets

    having to track with if statements is no bueno, so it should be adjustable and visible!

    geomin12 geomin12 commented on code on Oct 08, 2026 22:32 UTC
    Code Review
    build_tools/github_actions/fetch_test_configurations.py:1
    @@ -1285,6 +1286,12 @@ def run():
                         "test-runs-on-multi-gpu", ""
                     )
                 test_runs_on_sandbox = platform_info.get("test-runs-on-sandbox", "")
    +            if build_variant.startswith("host-asan") and shortened_family == "gfx94x":
    +                # Host-ASan uses the default gfx942 CI labels without load distribution.
    +                host_asan_ci_runners = True
    +                test_runs_on_labels = None
    +                test_runs_on_multi_gpu_labels = None
    +                test_runs_on_sandbox = ""

    same here... not a fan of hard-coded if statements.

    i need to adjust therock-ci-config to expand from "sandbox" as we are past the experimental stage. this is fine for now, but keep in mind to clean up after therock-ci-config is adjusted

    sa-faizal sa-faizal commented on code on Oct 14, 2026 03:12 UTC
    Code Review
    build_tools/github_actions/configure_multi_arch_ci.py:1
    @@ -1527,6 +1527,8 @@ def _expand_build_config_for_platform(
                         f"  {family_name}: host-asan tests only run on nightly, "
                         f"disabling tests"
                     )
    +            elif family_name == "gfx94x":
    +                print(f"  {family_name}: using host-asan CI runner: {test_runs_on}")

    Addressed in d859220. Added host-asan-use-ci-runners to the gfx94x/Linux family configuration. Both runner-selection paths now read this flag instead of checking the family name, so other targets can opt in through the matrix.

    sa-faizal sa-faizal commented on code on Oct 14, 2026 03:12 UTC
    Code Review
    build_tools/github_actions/fetch_test_configurations.py:1
    @@ -1285,6 +1286,12 @@ def run():
                         "test-runs-on-multi-gpu", ""
                     )
                 test_runs_on_sandbox = platform_info.get("test-runs-on-sandbox", "")
    +            if build_variant.startswith("host-asan") and shortened_family == "gfx94x":
    +                # Host-ASan uses the default gfx942 CI labels without load distribution.
    +                host_asan_ci_runners = True
    +                test_runs_on_labels = None
    +                test_runs_on_multi_gpu_labels = None
    +                test_runs_on_sandbox = ""

    Updated this path to use the same matrix flag. Added a cleanup note under #3433 to remove the temporary bypass once therock-ci-config migrates the ASan runners. Pre-commit and 18 runner-selection checks passed.

    ScottTodd ScottTodd requested changes on Oct 14, 2026 21:01 UTC
    Changes Requested Reviewer

    Please link to an associated issue per the PR review bot. I will not review PRs like this that are not connected to an issue with design decisions already resolved there.

    https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md#linking-pull-requests-to-github-issues

    sa-faizal sa-faizal commented on Oct 15, 2026 05:34 UTC
    Author

    Noted, linked the issue. Thank you!

    geomin12 geomin12 commented on code on Oct 15, 2026 19:46 UTC
    Code Review
    .github/workflows/host_asan_nightly.yml:1

    can we prefix with multi_arch for file name?

    geomin12 geomin12 commented on code on Oct 15, 2026 19:49 UTC
    Code Review
    .github/workflows/host_asan_nightly.yml:1
    @@ -0,0 +1,46 @@
    +# Copyright Advanced Micro Devices, Inc.
    +# SPDX-License-Identifier: MIT
    +
    +name: Host-ASan Nightly
    +
    +on:
    +  schedule:
    +    # Tuesday and Thursday at 08:17 UTC.
    +    - cron: "17 8 * * 2,4"
    +  workflow_dispatch:

    can we add options for inputs? for linux and windows families?

    geomin12 geomin12 commented on code on Oct 15, 2026 19:58 UTC
    Code Review
    build_tools/github_actions/amdgpu_family_matrix.py:1
    @@ -258,6 +259,8 @@ def select_build_runner(platform: str, build_variant: str, size: str = "large")
                 # TODO: Remove multi-label config once we get dedicated set of machines
                 # As we are bringing up mi325, we are using a multi-label configuration to distribute load
                 "test-runs-on": "linux-gfx942-1gpu-ccs-csp-ossci-rocm",
    +            # TODO(#3433): Remove this bypass after therock-ci-config migrates ASan runners.
    +            "host-asan-use-ci-runners": True,

    not a big fan of this, feels a bit hacky and would prefer to have it systematic!

    perhaps we can add:

    "test-runs-on-variants": {
         "host-asan": linux-gfx942-1gpu-ccs-csp-ossci-rocm
    }
    

    ?

    this way, it can be clearer and self-documenting. all you do is pass in host-asan variant and use those runners?

    geomin12 geomin12 commented on code on Oct 15, 2026 19:58 UTC
    Code Review
    build_tools/github_actions/amdgpu_family_matrix.py:1
    @@ -258,6 +259,8 @@ def select_build_runner(platform: str, build_variant: str, size: str = "large")
                 # TODO: Remove multi-label config once we get dedicated set of machines
                 # As we are bringing up mi325, we are using a multi-label configuration to distribute load
                 "test-runs-on": "linux-gfx942-1gpu-ccs-csp-ossci-rocm",
    +            # TODO(#3433): Remove this bypass after therock-ci-config migrates ASan runners.
    +            "host-asan-use-ci-runners": True,

    this means you'll need to update fetch_test_configurations.py

    ScottTodd ScottTodd requested changes on Oct 15, 2026 20:05 UTC
    Changes Requested Reviewer

    with design decisions already resolved there

    Emphasizing. This is not ready for review. Need to discuss on the issue first.

    Reviewers
    Assignees
    sa-faizal sa-faizal
    Labels
    risk: low confidence: 86.9% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 32.7% (LOW) · Higher = larger blast radius
    32.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 86.9% · Lower = rushed or shallow review
    86.9%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 4.3% · Safe to merge
    4.3%
    Repository