Skip to content

register test_component.yml, but disregarded its data for now - #67

Merged
cgoea merged 4 commits into
developfrom
users/cgoea/fix_test_artifacts
Aug 13, 2026
Merged

register test_component.yml, but disregarded its data for now#67
cgoea merged 4 commits into
developfrom
users/cgoea/fix_test_artifacts

Conversation

@cgoea

@cgoea cgoea commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Motivation

test_artifacts.yml now fans out one test_component.yml call per ROCm test component. Since test_component.yml was never registered in WORKFLOW_SPECS, every one of its completions crashed classification.

closes #69

Technical Details

  • therock_types.py: register test_component.yml in WORKFLOW_SPECS (pipeline_type="rocm", pipeline_phase="test", platform_from_test_runs_on=True) so derive_platform_and_pipeline no longer raises.
  • therock_update_status_json.py: add an explicit skip for test_component.yml completions in update_status_json, alongside the existing native_packages test skip. These per-component completions are disregarded entirely for now -- nothing is written to status.json for them.
  • therock_status_document.py: renamed _merge_matrix_build_leaf -> _merge_variant_leaf (now used only by the pytorch/jax build-phase matrix-cell merge) and tightened its guard so a later variant-less build completion can't discard matrix cells already accumulated from an earlier one.
  • revert 58ee721 in case we decide we need this data

Test Plan

  • Ran the full scripts/receive_therock/tests/ suite locally (pytest).
  • Added/updated tests in therock_update_status_json_test.py:
  • Added a build-phase regression test in therock_status_document_test.py (test_upsert_build_variant_less_completion_preserves_variants) covering the tightened variant-preservation guard.

Test Result

pytest scripts/receive_therock/tests/ -> 403 passed, 4 failed (all four pre-existing and unrelated to this change)

Submission Checklist

@cgoea
cgoea requested review from a team and HereThereBeDragons August 12, 2026 11:10
@cgoea
cgoea changed the base branch from main to develop August 12, 2026 11:12
# `update_status_json`'s skip below) until we decide whether component-level
# granularity is worth tracking; `test_artifacts.yml`'s own report is still
# the artifact-level source of truth for the `[platform][arch]` leaf.
_TEST_COMPONENT_WORKFLOW = "test_component.yml"

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.

why not have a list
SKIP_WORKFLOW_LIST
or something like this. might be not limited to test component.
then we could also add there the release-asan for the moment.

could evne put it in the workflow specs as extra param? but might be overkill for the moment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

will keep in mind for the future

"""Matrix-cell variants for fan-out pipelines (pytorch/jax py x ref)."""
"""Matrix-cell variants for fan-out pipelines (pytorch/jax py x ref).

ROCm's `test_component.yml` shard groups never reach here: they're

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.

this comment might go stale quickly

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

renamed

assert leaf.variants[0].status is Status.success


def _test_component_run(

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.

the other comment: i think a more generic skip mechanism might be better (also for testing)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added

@HereThereBeDragons HereThereBeDragons 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.

please update pr description to talk about the more generic _SKIP_WORKFLOW_NAMES



def test_skip_workflow_names_are_all_disregarded(tmp_path: Path) -> None:
# Guards the generic `_SKIP_WORKFLOW_NAMES` mechanism itself, not just the

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.

update comment. we dont need the history. just what the function does

@cgoea
cgoea merged commit 5f5f658 into develop Aug 13, 2026
1 check passed
@cgoea
cgoea deleted the users/cgoea/fix_test_artifacts branch August 13, 2026 16:28
quartz-sync-github-app Bot pushed a commit that referenced this pull request Aug 13, 2026
5f5f658, register test_component.yml, but disregarded its data for now (#67), Ciprian Goea (ciprian.goea@amd.com), Thu Aug 13 19:28:52 2026 +0300
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.

2 participants