Skip to content

.github/scripts: add --retry-ignored-tests switch to test_rocgdb.py#208

Merged
lumachad merged 1 commit into
amd-stagingfrom
users/amd-staging/retry-ignored-tests
Jul 15, 2026
Merged

.github/scripts: add --retry-ignored-tests switch to test_rocgdb.py#208
lumachad merged 1 commit into
amd-stagingfrom
users/amd-staging/retry-ignored-tests

Conversation

@lumachad

@lumachad lumachad commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Motivation

Tests on the ignore list are known to fail. When they fail (e.g. with a
timeout), the current retry logic re-runs them up to --max-failed-retries
times for each of the two compiler runs, adding significant wall-clock time
for no diagnostic value.

Technical Details

Add a --retry-ignored-tests switch to test_rocgdb.py (default: off).

When off (the default), any test that appears in the ignore list
(rocgdb_ignore_list.json) and fails on the first run is excluded from
subsequent retry iterations. If all remaining failures are on the ignore
list, iterations stop early. Skipped tests are logged with a note pointing
to --retry-ignored-tests.

When --retry-ignored-tests is passed (or --no-xfail is active), the
previous behaviour is preserved: every failing test is retried regardless of
ignore-list membership.

The new flag is shown in the configuration summary printed at the start of
each run.

Test Plan

  • Manual inspection of the retry-filtering logic.
  • Verified that --retry-ignored-tests and --no-xfail both bypass the
    filter correctly.

Test Result

N/A (CI-script change only; no GPU hardware required to validate the logic).

Submission Checklist

@lumachad lumachad requested a review from a team as a code owner July 14, 2026 17:14
By default, tests on the ignore list that fail on the first run are now
skipped on subsequent retry iterations.  This avoids re-running known-bad
tests (especially slow ones that time out) across multiple iterations and
two compiler runs, keeping wall-clock time reasonable.

Pass --retry-ignored-tests to restore the previous behaviour of retrying
every failing test regardless of ignore-list membership.

Co-Authored-By: Claude <[email protected]>
@lumachad lumachad force-pushed the users/amd-staging/retry-ignored-tests branch from 74b3640 to ec7b606 Compare July 14, 2026 17:15
@lumachad lumachad changed the title Users/amd staging/retry ignored tests .github/scripts: add --retry-ignored-tests switch to test_rocgdb.py Jul 14, 2026

@aktemur aktemur left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't know this CI Python script much, but the patch looked reasonable.

@lancesix lancesix left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thanks.

@lumachad lumachad merged commit a021abd into amd-staging Jul 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants