-
Notifications
You must be signed in to change notification settings - Fork 4
Enable cloning at a specific release tag #676
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
Enable cloning at a specific release tag #676
Conversation
|
This should be assigned to YOU and reviewed by ME so I've just fixed that, taking a look now! |
|
@nibalizer added you to this PR for review, mainly for awareness. Related to our convo earlier about cloning repos, as we need to start including only version-accurate files from the (The same is true for the |
validbeck
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.
|
@validbeck as discussed, I re-enabled cloning from a specific branch as an optional parameter since we both have a use case for this during testing. The new feature where you clone at a specific release tag works just as before: ❯ make clone
Enter release tag (example: v2.8.10): v2.8.10
Cloning source repo at tag v2.8.10 ...
Cloning into '_source/validmind-library'...
remote: Enumerating objects: 934, done.
remote: Counting objects: 100% (934/934), done.
remote: Compressing objects: 100% (799/799), done.
remote: Total 934 (delta 307), reused 368 (delta 120), pack-reused 0 (from 0)
Receiving objects: 100% (934/934), 50.73 MiB | 21.82 MiB/s, done.
Resolving deltas: 100% (307/307), done.
Note: switching to 'dbf18e618d347904da199982243e69ebba43f332'.The old optional cloning of a specific branch has been re-enabled, now with a warning: ❯ make clone BRANCH=beck/sc-9082/edit-validation-credit-risk-notebook
WARNING: Cloning non-release files from beck/sc-9082/edit-validation-credit-risk-notebook — DO NOT COMMIT
Cloning into '_source/validmind-library'...
remote: Enumerating objects: 952, done.
remote: Counting objects: 100% (952/952), done.
remote: Compressing objects: 100% (805/805), done.
remote: Total 952 (delta 318), reused 441 (delta 132), pack-reused 0 (from 0)
Receiving objects: 100% (952/952), 51.98 MiB | 25.13 MiB/s, done.
Resolving deltas: 100% (318/318), done. |
PR SummaryThis pull request enhances the Test Suggestions
|
|
A PR preview is available: Preview URL |
|
I checked this new edit and it works fine for branches, but what about the usecase where we want to clone from |
My take was to be as restrictive as possible while still allowing cloning of some branches, e.g. one you are working on. (which would never be ❯ make clone BRANCH=main
WARNING: Cloning non-release files from main — DO NOT COMMIT
Cloning into '_source/validmind-library'...
remote: Enumerating objects: 1158, done.
remote: Counting objects: 100% (1158/1158), done.
remote: Compressing objects: 100% (1025/1025), done.
remote: Total 1158 (delta 346), reused 443 (delta 118), pack-reused 0 (from 0)
Receiving objects: 100% (1158/1158), 51.43 MiB | 24.46 MiB/s, done.
Resolving deltas: 100% (346/346), done. |
|
A PR preview is available: Preview URL |
1 similar comment
|
A PR preview is available: Preview URL |
5abad61 to
eadc353
Compare
eadc353 to
015fa80
Compare
|
@validbeck as mentioned on our call, my last change broke the script logic for requiring a release tag, with an apology. Clone at HEAD: ❯ make clone
Enter release tag (example: v2.8.10, or HEAD for latest): HEAD
WARNING: Cloning latest non-release files — DO NOT COMMIT
Cloning into '_source/validmind-library'...
remote: Enumerating objects: 1158, done.
remote: Counting objects: 100% (1158/1158), done.
remote: Compressing objects: 100% (1025/1025), done.
remote: Total 1158 (delta 346), reused 444 (delta 118), pack-reused 0 (from 0)
Receiving objects: 100% (1158/1158), 51.43 MiB | 24.50 MiB/s, done.
Resolving deltas: 100% (346/346), done.The old syntax still works: ❯ make clone BRANCH=main
Enter release tag (example: v2.8.10, or HEAD for latest): HEAD
WARNING: Cloning latest non-release files — DO NOT COMMIT
Cloning into '_source/validmind-library'...
remote: Enumerating objects: 1158, done.
remote: Counting objects: 100% (1158/1158), done.
remote: Compressing objects: 100% (1025/1025), done.
remote: Total 1158 (delta 346), reused 444 (delta 118), pack-reused 0 (from 0)
Receiving objects: 100% (1158/1158), 51.43 MiB | 25.15 MiB/s, done.
Resolving deltas: 100% (346/346), done.Cloning PR branches: ❯ make clone BRANCH=beck/sc-9082/edit-validation-credit-risk-notebook
WARNING: Cloning non-release files from beck/sc-9082/edit-validation-credit-risk-notebook — DO NOT COMMIT
Cloning into '_source/validmind-library'...
remote: Enumerating objects: 952, done.
remote: Counting objects: 100% (952/952), done.
remote: Compressing objects: 100% (805/805), done.
remote: Total 952 (delta 318), reused 445 (delta 132), pack-reused 0 (from 0)
Receiving objects: 100% (952/952), 51.98 MiB | 22.14 MiB/s, done.
Resolving deltas: 100% (318/318), done.Cloning at release tags: ❯ make clone
Enter release tag (example: v2.8.10, or HEAD for latest): v2.8.10
Cloning source repo at tag v2.8.10 ...
Cloning into '_source/validmind-library'...
remote: Enumerating objects: 934, done.
remote: Counting objects: 100% (934/934), done.
remote: Compressing objects: 100% (799/799), done.
remote: Total 934 (delta 307), reused 362 (delta 120), pack-reused 0 (from 0)
Receiving objects: 100% (934/934), 50.73 MiB | 24.61 MiB/s, done.
Resolving deltas: 100% (307/307), done.
Note: switching to 'dbf18e618d347904da199982243e69ebba43f332'. |
|
OK, next round ready for review! This PR now integrates Spencer's #677, adding the installation repo cloning piece. How I tested1. Clone latest (HEAD)make clone
# When prompted, enter: HEAD
# Expected and observed:
✓ Prompted for tag
✓ Cloned validmind-library from main when HEAD specified
✓ Showed warning about non-release files
✓ Installation repo cloned from main2. Clone release tagmake clone
# When prompted, enter: v2.8.10
# Expected and observed:
✓ Prompted for tag
✓ Cloned validmind-library from tag v2.8.10
✓ No warning (since it is a release)
✓ Installation repo cloned from main3. Clone PR branchmake clone BRANCH=beck/sc-9082/edit-validation-credit-risk-notebook
# Expected and observed:
✓ No prompt (used branch directly)
✓ Cloned validmind-library from specified branch
✓ Showed warning about non-release files
✓ Installation repo cloned from main4. Clone latest (main + HEAD)make clone BRANCH=main
# When prompted, enter: HEAD
# Expected and observed:
✓ Prompted for tag
✓ Cloned validmind-library from main when HEAD specified
✓ Showed warning about non-release files
✓ Installation repo cloned from mainAll test cases passed successfully, demonstrating that:
|
|
A PR preview is available: Preview URL |
validbeck
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.
Tested all the new options, and they work as expected! 🎉 Thank you for making the changes.
Internal Notes for Reviewers
Do not commit the output until the next release tag is available
This PR enables cloning the validmind-library at a specific release tag to ensure version-accurate documentation for:
The detached HEAD state is expected — we are checking out a specific SHA rather than tracking the latest commit (which is HEAD)
Important: It’s safe to run
make get-sourceto test the changes, but do not commit the output yet.Our docs site now relies on the generated Quarto Markdown for the Python API reference. To avoid breaking the documentation, we must wait for a new release tag in the
validmind-libraryrepository that includes this Quarto Markdown before committing the cloned source.External Release Notes