mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-14 02:02:46 +00:00
## Motivation While testing the Skip CI functionality, it revealed a minor issue where the CI skip check fails when a branch is built at the exact commit where it diverged from develop. CI is still run by default if a failure is detected. When git log <merge-base>..HEAD returns no files (because HEAD equals merge-base), the command grep -v '^$' exits with error code 1, causing the skip check to fail. ## Technical Details Added || true to the grep commands so empty output is handled gracefully instead of causing a script failure. ## Test Plan - Simulate the failures and ensure the grep failure is handled gracefully. ## Test Result - Simulated grep failures using an empty string. The script handles the error correctly. - Verified the CI skip functionality skips CI when non-relevant file changes are made. - Verified the CI skip functionality does not skip CI when relevant file changes are made. ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
90 KiB
90 KiB