Skip to content

Conversation

@shreeya-patel98
Copy link
Collaborator

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.

Copy link

Copilot AI left a 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@v11 action with custom bash script using GitHub CLI
  • Added logic to parse branch names and match runs targeting the same base branch using the {name}_base or {name}-base pattern
  • Enhanced error handling and informational messages about baseline availability

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

bmastbergen
bmastbergen previously approved these changes Dec 11, 2025
Copy link
Collaborator

@bmastbergen bmastbergen left a comment

Choose a reason for hiding this comment

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

🥌

roxanan1996
roxanan1996 previously approved these changes Dec 11, 2025
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>
Copy link

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

Copy link
Collaborator

@PlaidCat PlaidCat left a 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

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants