-
Notifications
You must be signed in to change notification settings - Fork 787
[CI][CTS] Add fixed ref for cts #17074
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
Conversation
This patch adds a new input to fix the specific version of cts. In general it's needed for sycl-rel as the cts is continuously changing.
sycl_cts_ref: | ||
description: "Commit SHA or branch to checkout" | ||
type: string | ||
default: "main" | ||
required: False |
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.
Can we have more opaque parameters like devops_ref
and tests_ref
so that all the actions would use the same name at the high-level entry point? I haven't unified them as much as I'd wish, but I'd really like converging the interfaces rather than pulling them more apart.
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.
It this what you mean? bac35ea
@@ -21,8 +25,7 @@ runs: | |||
with: | |||
path: khronos_sycl_cts | |||
repository: 'KhronosGroup/SYCL-CTS' | |||
ref: 'main' | |||
default_branch: 'main' |
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.
I forgot to mention - deleting this as it's not used at all.
@@ -314,3 +316,4 @@ jobs: | |||
sycl_cts_artifact: ${{ inputs.sycl_cts_artifact }} | |||
target_devices: ${{ inputs.target_devices }} | |||
retention-days: ${{ inputs.retention-days }} | |||
tests_ref: ${{ inputs.tests_ref }} |
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.
Needs more alignment with e2e still. Something has to be done with line 302. I think the devops/actions/run-tests/*
should accept single ref
input (as in line 302). And the job of the .yml
file is to translate tests_ref
/ref
/etc. into such an argument.
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.
Hm, right, likely we don't need a new parameter, we can just use ref for this purpose.
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.
Do I get it right? 28c7483
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.
I'd prefer
ref: #maybe rename to llvm_ref/repo_ref/toolchain_ref or something
tests_ref:
required: False # no default
type: string
jobs:
...
e2e:
ref: ${{ tests_ref || ref || "main" }}
cts:
ref: ${{ tests_ref || "main" }}
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.
83da408
Let's rename ref
to repo_ref
in a follow-up patch as it requires changes for all workflows that use sycl-linux-run-tests.yml.
I can't really imagine a good case when we need different branch for the compiler build and e2e tests, and ref
is required: True
, therefore "main" is never used. So I left this string as is. I can change it if you insist.
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.
I'm fine with delayed renaming, but e2e branch has to check for tests_ref
first, even if it isn't set anywhere currently.
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.
Updated 599deaf
@intel/llvm-gatekeepers could you please merge? |
As discussed in intel#17074 rename ref to repo_ref.
This patch adds a new input to fix the specific version of cts. In general it's needed for sycl-rel as the cts is continuously changing.