-
Notifications
You must be signed in to change notification settings - Fork 4
ci: move fio steps into separate job #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -49,12 +49,6 @@ jobs: | |||||||||||||||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2 | ||||||||||||||||
| with: | ||||||||||||||||
| path: hipFile | ||||||||||||||||
| - name: Fetching fio repository... | ||||||||||||||||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2 | ||||||||||||||||
| with: | ||||||||||||||||
| repository: ROCm/fio | ||||||||||||||||
| ref: hipFile | ||||||||||||||||
| path: fio | ||||||||||||||||
| - name: Download hipFile runtime package | ||||||||||||||||
| uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 #v7.0.0 | ||||||||||||||||
| with: | ||||||||||||||||
|
|
@@ -101,7 +95,6 @@ jobs: | |||||||||||||||
| /bin/bash -c ' | ||||||||||||||||
| cp -R /mnt/ais /ais | ||||||||||||||||
| mkdir /ais/hipFile/build | ||||||||||||||||
| mkdir /ais/fio/build | ||||||||||||||||
| ' | ||||||||||||||||
| - name: Copy the hipFile packages into the container | ||||||||||||||||
| run: | | ||||||||||||||||
|
|
@@ -182,6 +175,108 @@ jobs: | |||||||||||||||
| /ais/hipFile/util/ci-aiscp-test.sh \ | ||||||||||||||||
| /ais/hipFile/build/examples/aiscp/aiscp | ||||||||||||||||
| ' | ||||||||||||||||
| - name: Destroy hipfile IO test directory | ||||||||||||||||
| if: ${{ always() }} | ||||||||||||||||
| run: | | ||||||||||||||||
| docker exec -t "${AIS_CONTAINER_NAME}" /bin/bash -c "rm -fr /mnt/ais-fs/${AIS_CONTAINER_NAME}" | ||||||||||||||||
| - name: Cleanup & Stop the Docker container | ||||||||||||||||
| if: ${{ always() }} | ||||||||||||||||
| run: | | ||||||||||||||||
| docker stop "${AIS_CONTAINER_NAME}" | ||||||||||||||||
| - name: Cleanup self-hosted runner workspace | ||||||||||||||||
| if: ${{ always() }} | ||||||||||||||||
| run: rm -rf ${GITHUB_WORKSPACE}/* ${GITHUB_WORKSPACE}/.* | ||||||||||||||||
| build_FIO: | ||||||||||||||||
| uses: ROCm/fio/.github/workflows/build-fio.yml@rildixon/ci-hook-for-hipfile | ||||||||||||||||
| with: | ||||||||||||||||
| ais_hipfile_pkg_filename: ${{ inputs.ais_hipfile_pkg_filename }} | ||||||||||||||||
| ais_hipfile_pkg_dev_filename: ${{ inputs.ais_hipfile_pkg_dev_filename }} | ||||||||||||||||
| platform: ${{ inputs.platform }} | ||||||||||||||||
| run_FIO_tests: | ||||||||||||||||
| runs-on: [linux, AIS] | ||||||||||||||||
|
||||||||||||||||
| runs-on: [linux, AIS] | |
| runs-on: [linux, AIS] | |
| needs: run_system_tests |
Copilot
AI
Feb 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new run_FIO_tests job is missing the checkout of the hipFile repository. The FIO configure step (line 280-281) references HIPFILE=/ais/hipFile and HIPFILELIB paths, and the FIO test steps (lines 305, 316) reference /ais/hipFile/util/fio/write-read-verify.fio. Without checking out the hipFile repository, these paths won't exist and the job will fail. Add a checkout step for the hipFile repository similar to line 48-51 in the run_system_tests job.
| path: fio | |
| path: fio | |
| - name: Fetching hipFile repository... | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2 | |
| with: | |
| repository: ROCm/hipFile | |
| path: hipFile |
Copilot
AI
Feb 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new run_FIO_tests job is missing the download of the hipFile build directory artifact. The FIO configure step at line 281 references HIPFILELIB=${HIPFILE}/build/src/amd_detail/ which expects the hipFile build artifacts to be present. Without downloading the hipfile-build-dir artifact (as done in line 60-64 of run_system_tests), the FIO configuration and build will fail. Add a step to download the hipfile-build-dir artifact and copy it into the container similar to lines 60-64 and 133-137 in the run_system_tests job.
Copilot
AI
Feb 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The run_FIO_tests job depends on build_FIO but never downloads the artifacts produced by that job. Instead, it checks out the FIO repository again (line 212-217) and builds FIO from source (lines 283-306). This defeats the purpose of having a separate build_FIO job. Either the job should download and use the FIO artifacts from build_FIO, or the build_FIO job and its dependency are unnecessary.
Copilot
AI
Feb 19, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The run_FIO_tests job duplicates significant infrastructure setup code from the run_system_tests job (approximately 80 lines of identical code including Docker setup, authentication, container startup, package installation, etc.). This duplication makes the workflow harder to maintain - any changes to the infrastructure setup would need to be made in both places.
Consider extracting the common setup steps into a reusable workflow or composite action that both jobs can use. At minimum, ensure that any future changes to Docker setup, package installation, or cleanup steps are synchronized between both jobs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
build_FIOjob references a reusable workflow from an external repository branch (rildixon/ci-hook-for-hipfile). This introduces several concerns:run_FIO_testsbuild_FIOjob doesn't specifyneedsdependencies, but it requires artifacts (hipFile packages) that should be produced by a prior build jobConsider either:
needsdependencies if the build_FIO job requires artifacts from other jobs