Skip to content

Add a test target to run exec tests with latest warp from nuget #7101

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

Merged
merged 12 commits into from
Jan 31, 2025

Conversation

alsepkow
Copy link
Contributor

@alsepkow alsepkow commented Jan 30, 2025

Overview:
This PR resolves #6505. It adds a cmake file with logic to install nuget packages. It was specifically added so the exec tests could install the latest d3d warp nuget, ensuring the latest shader model support we have. Additionally, the nuget install logic has the ability to install the latest prerelese d3d warp nuget. Selection of the prerelease vs release is toggled using an environment variable. This new logic is accessible by using a new test target 'check-clang-taef-exec-warp'. Alternatively, you can use the the hctbuild script and 'hcttest exec-warp' or 'hcttest exec-warp-preview'

How Tested:

  1. Validated locally with a fresh clean clone, build, and test run. Used 'hctbuild' and 'hcttest exec-warp'. I was unable to directly validate the prerelease path as there is no true prerelease d3d warp nuget available at this time. But I did manually confirm the nuget query on another nuget package which does have a prerelease right now and the query works as expected.

  2. Validating end-to-end in the ADO pipeline through this PR.

@alsepkow alsepkow requested a review from a team as a code owner January 30, 2025 02:42
Copy link
Contributor

github-actions bot commented Jan 30, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@alsepkow alsepkow changed the title [DO NOT MERGE] Add a test target to run exec tests with latest warp from nuget Add a test target to run exec tests with latest warp from nuget Jan 30, 2025
@damyanp damyanp requested a review from hekota January 31, 2025 00:30
Copy link
Member

@damyanp damyanp left a comment

Choose a reason for hiding this comment

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

LGTM - called out a couple of typos.

Looking for people with more experience in hctbuild/test than me to actually approve the PR though.

Copy link
Member

@hekota hekota left a comment

Choose a reason for hiding this comment

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

LGTM! Few minor comments.

@alsepkow alsepkow merged commit b65a931 into microsoft:main Jan 31, 2025
12 checks passed
alsepkow added a commit to alsepkow/DirectXShaderCompiler that referenced this pull request Feb 1, 2025
…osoft#7101)

**Overview:**
This PR resolves microsoft#6505. It adds a cmake file with logic to install nuget
packages. It was specifically added so the exec tests could install the
latest d3d warp nuget, ensuring the latest shader model support we have.
Additionally, the nuget install logic has the ability to install the
latest prerelese d3d warp nuget. Selection of the prerelease vs release
is toggled using an environment variable. This new logic is accessible
by using a new test target 'check-clang-taef-exec-warp'. Alternatively,
you can use the the hctbuild script and 'hcttest exec-warp' or 'hcttest
exec-warp-preview'

**How Tested:**
1. Validated locally with a fresh clean clone, build, and test run. Used
'hctbuild' and 'hcttest exec-warp'. I was unable to directly validate
the prerelease path as there is no true prerelease d3d warp nuget
available at this time. But I did manually confirm the nuget query on
another nuget package which does have a prerelease right now and the
query works as expected.

2. Validating end-to-end in the ADO pipeline through this PR.
alsepkow added a commit that referenced this pull request Feb 1, 2025
…o 1.8.2502) (#7110)

Cherry-pick of
#7101 to
release-1.8.2502

Add a test target to run exec tests with latest warp from nuget

**Overview:**
This PR resolves
#6505. It adds
a cmake file with logic to install nuget
packages. It was specifically added so the exec tests could install the
latest d3d warp nuget, ensuring the latest shader model support we have.
Additionally, the nuget install logic has the ability to install the
latest prerelese d3d warp nuget. Selection of the prerelease vs release
is toggled using an environment variable. This new logic is accessible
by using a new test target 'check-clang-taef-exec-warp'. Alternatively,
you can use the the hctbuild script and 'hcttest exec-warp' or 'hcttest
exec-warp-preview'

**How Tested:**
1. Validated locally with a fresh clean clone, build, and test run. Used
'hctbuild' and 'hcttest exec-warp'. I was unable to directly validate
the prerelease path as there is no true prerelease d3d warp nuget
available at this time. But I did manually confirm the nuget query on
another nuget package which does have a prerelease right now and the
query works as expected.

2. Validating end-to-end in the ADO pipeline through this PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Investigate how to run execution tests on latest D3D runtime in PR and nightly builds
4 participants