Skip to content

Add environment version reporting to CI workflows#538

Merged
mawad-amd merged 6 commits into
mainfrom
ci-report-versions
Jun 19, 2026
Merged

Add environment version reporting to CI workflows#538
mawad-amd merged 6 commits into
mainfrom
ci-report-versions

Conversation

@mawad-amd

@mawad-amd mawad-amd commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a report_versions.sh script that logs driver (amd-smi/rocm-smi), ROCm, Python, PyTorch (including HIP version, GPU count, gcnArchName), Triton, iris, and kernel versions
  • Inserts a "Report environment versions" step after GPU acquisition in all four GPU workflows: iris-tests, iris-performance-regression-test, iris-nightly-triton-test, iris-external-validation-test

Motivation

CI logs currently don't capture environment versions. When debugging failures or comparing results across runs, we need to know exactly what driver/ROCm/Triton versions were active. This adds that documentation with zero impact on test execution.

Test plan

  • Verify report_versions.sh runs inside Apptainer container on MI325X runner
  • Confirm output appears in CI log under "Report environment versions" step
  • No impact on test pass/fail status

🤖 Generated with Claude Code

Reports driver, ROCm, Python, PyTorch, Triton, iris, and system
versions after GPU acquisition for documentation and debugging.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
@github-actions github-actions Bot added in-progress We are working on it iris Iris project issue labels Jun 18, 2026
mawad-amd and others added 5 commits June 17, 2026 22:23
Versions are now rendered as a markdown table on the workflow run
summary page via $GITHUB_STEP_SUMMARY, in addition to stdout logging.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
Try /sys/module/amdgpu/version and modinfo before amd-smi/rocm-smi
for driver version. Remove iris row since it's always the latest
commit being tested.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
Replaces regex/grep chains with structured JSON from amd-smi version
--json and Python introspection. Single Python script inside the
container emits JSON, parsed outside for stdout + job summary.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
collect_versions.py runs inside the container and emits JSON.
report_versions.sh is now a thin wrapper: calls container_exec,
captures JSON, formats stdout + job summary on the host side.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
@mawad-amd
mawad-amd marked this pull request as ready for review June 18, 2026 22:40
@mawad-amd
mawad-amd requested review from BKP and neoblizz as code owners June 18, 2026 22:40
Copilot AI review requested due to automatic review settings June 18, 2026 22:40

Copilot AI 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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds environment/version reporting to GPU CI workflows to improve debuggability and run-to-run comparisons by logging driver/ROCm/Python/PyTorch/Triton/GPU/kernel details.

Changes:

  • Added .github/scripts/collect_versions.py to collect environment versions inside the container and emit JSON.
  • Added .github/scripts/report_versions.sh to execute collection in-container and write a GitHub Actions job summary table + stdout report.
  • Inserted a “Report environment versions” step into four GPU workflows after GPU acquisition.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
.github/workflows/iris-tests.yml Adds a CI step to report environment versions after GPU acquisition.
.github/workflows/iris-performance-regression-test.yml Adds the environment-report step to benchmark workflow for better traceability.
.github/workflows/iris-nightly-triton-test.yml Adds the environment-report step to nightly Triton workflow logs/summaries.
.github/workflows/iris-external-validation-test.yml Adds the environment-report step to both external validation jobs.
.github/scripts/report_versions.sh New host-side script to run collection in-container and format output + step summary.
.github/scripts/collect_versions.py New in-container collector for driver/ROCm/Python/PyTorch/Triton/GPU/kernel info.

Comment thread .github/scripts/report_versions.sh
Comment thread .github/scripts/report_versions.sh
Comment thread .github/scripts/collect_versions.py
@mawad-amd
mawad-amd merged commit 1a8356d into main Jun 19, 2026
72 of 74 checks passed
@mawad-amd
mawad-amd deleted the ci-report-versions branch June 19, 2026 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in-progress We are working on it iris Iris project issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants