-
Notifications
You must be signed in to change notification settings - Fork 10
github-actions: Fix the kselftest comparison logic #762
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: main
Are you sure you want to change the base?
Conversation
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.
Pull request overview
This PR fixes the kselftest comparison logic in the GitHub Actions workflow by replacing the artifact download mechanism. Previously, the workflow attempted to download baseline logs from the base branch directly, but since the CI runs on user branches (not the base branch), this approach was incorrect. The new implementation uses GitHub CLI to search through the last 50 successful workflow runs, identifies runs targeting the same base branch by parsing branch names, and downloads artifacts from the most recent matching run.
Key Changes
- Replaced
dawidd6/action-download-artifact@v11action with custom bash script using GitHub CLI - Added logic to parse branch names and match runs targeting the same base branch using the
{name}_baseor{name}-basepattern - Enhanced error handling and informational messages about baseline availability
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d283915 to
3c0757a
Compare
bmastbergen
left a comment
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.
🥌
Previous kselftest comparison was looking for logs in the base branch like ciqlts9_2 but this CI Workflow actually runs on the user branch and not on the base branch so remove the comparison logic and replace it with a new one which uses GH to fetch the successful workflow runs. Signed-off-by: Shreeya Patel <spatel@ciq.com>
3c0757a to
154af9f
Compare
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.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PlaidCat
left a comment
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.
Thank you for answering my questions
![]()
Previous kselftest comparison was looking for logs in the base branch like ciqlts9_2 but this CI Workflow actually runs on the user branch and not on the base branch so remove the comparison logic and replace it with a new one which uses GH to fetch the successful workflow runs.