Skip to content
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

Do not perform deep checkout of submodules #6410

Merged
merged 3 commits into from
Feb 24, 2025

Conversation

mkeshavaNV
Copy link
Contributor

Fixes #5465

@mkeshavaNV mkeshavaNV added the pr: non-breaking PRs without breaking changes label Feb 20, 2025
@mkeshavaNV mkeshavaNV force-pushed the bugfix/gh-5465 branch 3 times, most recently from b285149 to 2805006 Compare February 20, 2025 10:47
@csyonghe
Copy link
Collaborator

Is this PR ready for review?

@mkeshavaNV
Copy link
Contributor Author

Is this PR ready for review?

Yeah I think so. I wanted one confirmation from @expipiplus1 , but we can get that in the review. I'm not sure how else we can confirm that indeed we are doing a -depth=1 clone of submodules. Setting as "Ready for review".

@mkeshavaNV mkeshavaNV marked this pull request as ready for review February 21, 2025 08:44
@mkeshavaNV mkeshavaNV requested a review from a team as a code owner February 21, 2025 08:44
@@ -44,7 +44,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: "0"
fetch-depth: "1" # Fetch only the latest commit (shallow clone)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this won’t work for our release CI, which requires a tag to be available so it can use the tag name as the version string during build. If you just do a shallow checkout, we won’t be able to use git describe to retrieve the current release tag.

Copy link
Collaborator

Choose a reason for hiding this comment

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

To test, you can create a release from your own fork, download the binaries from the release build and run slangc —version, and check if it is reporting the version number correctly from the release tag.

Copy link
Contributor Author

@mkeshavaNV mkeshavaNV Feb 24, 2025

Choose a reason for hiding this comment

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

which requires a tag to be available so it can use the tag name as the version string during build.

I see, ok I will revert the change for the release CI.

@expipiplus1 expipiplus1 enabled auto-merge (squash) February 24, 2025 08:43
@expipiplus1 expipiplus1 merged commit 8d02444 into shader-slang:master Feb 24, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't perform a deep checkout for CI and releases
3 participants