Skip to content

[rocjitsu][ci] Add cpu thread budget in CI - #12652

Closed
RattataKing wants to merge 5 commits into
developfrom
users/RattataKing/rocjitsu-asan-ubsan-timeout
Closed

RattataKing wants to merge 5 commits into
developfrom
users/RattataKing/rocjitsu-asan-ubsan-timeout

Conversation

@RattataKing

Copy link
Copy Markdown
Contributor

Restore commits missed in #12236
Issue ID: #12234

@RattataKing
RattataKing requested review from a team and atgutier as code owners October 1, 2026 18:16
@github-actions github-actions Bot added github actions Pull requests that update GitHub Actions code project: rocjitsu labels Oct 1, 2026
@therock-pr-bot

therock-pr-bot Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ⚠️ Warning Error: Source/code files changed without an accompanying unit test.
Expected: add at least one test file named like test_<name>.py / test_<name>.cpp (or <name>_test.*).
Current: code file(s) changed: emulation/rocjitsu/tests/corpus/test-run-corpus-tests.py; no test file found
🔎 pre-commit ✅ Pass —
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —
🤖 therock-pr-bot ✅ Pass —

🎉 All checks passed! This PR is ready for review.

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

🙋 Wish to Override Policy?

@therock-pr-bot

therock-pr-bot Bot commented Oct 1, 2026

Copy link
Copy Markdown

🎉 All checks passed! This PR is ready for review.

@RattataKing
RattataKing requested review from a team and kuhar October 1, 2026 18:39
@RattataKing
RattataKing requested a review from kuhar October 1, 2026 18:47

@kuhar kuhar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment, plus an inline reply

@RattataKing
RattataKing force-pushed the users/RattataKing/rocjitsu-asan-ubsan-timeout branch from bb8e0ea to 24f9ecc Compare October 1, 2026 18:53
@RattataKing
RattataKing requested a review from kuhar October 1, 2026 19:03

@kuhar kuhar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one note to consider

-R '^LaunchPreloadTest\.' \
--output-on-failure

- name: Test corpus harness options

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should run this check after Install corpus test dependencies, alongside Run amdisa tests, so a harness-test failure still leaves the corpus results available. Currently, a failure here skips dependency installation through GitHub Actions' implicit success() condition. Run corpus tests then skips too because it requires steps.install_corpus_dependencies.outcome == 'success', despite its explicit intent to preserve the corpus signal after independent test failures. Moving this stub-based unit test below dependency installation would retain that behavior while still failing the job when the test fails.

Comment on lines +1 to +19
#!/usr/bin/env python3
# Copyright (c) 2026 Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
# Test corpus budget forwarding without launching simulator workloads.
# Usage: python tests/corpus/test-run-corpus-tests.py

import os
from pathlib import Path
import shlex
import subprocess
import tempfile
import unittest

SOURCE = Path(__file__).resolve().parents[2]
SCRIPT = SOURCE / 'tests/corpus/run-corpus-tests.sh'


class ThreadBudgetTests(unittest.TestCase):
def setUp(self):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After looking at this again, I'm not convinced we need tests that test our tests... I'd drop this.

@RattataKing RattataKing closed this Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github actions Pull requests that update GitHub Actions code organization: ROCm project: rocjitsu

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants