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

chore: add lore help and experimental disclaimer #8563

Merged
merged 3 commits into from
Dec 11, 2023
Merged

Conversation

hamidzr
Copy link
Member

@hamidzr hamidzr commented Dec 7, 2023

Description

  • truncate full hashes given to lore-version to the standard 7chars long
  • add help docs and disclaimers to the cli

Test Plan

deployed successfully while giving a full valid lore hash

Commentary (optional)

https://hpe-aiatscale.atlassian.net/browse/MLG-1453
https://hpe-aiatscale.atlassian.net/browse/MLG-1416

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

Ticket

@cla-bot cla-bot bot added the cla-signed label Dec 7, 2023
Copy link

netlify bot commented Dec 7, 2023

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit e5e8451
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/65775582bcfbc8000802d5f8

@hamidzr hamidzr marked this pull request as ready for review December 8, 2023 17:04
@hamidzr hamidzr requested a review from a team as a code owner December 8, 2023 17:04
@@ -30,6 +30,10 @@ def validate(s: str) -> str:
return validate


def is_full_git_commit_hash(s: str) -> bool:
return bool(re.fullmatch(r"[0-9a-f]{40}", s))
Copy link
Member Author

Choose a reason for hiding this comment

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

hashes can have capital letters too but let's go with the smaller subset?

Copy link
Contributor

Choose a reason for hiding this comment

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

To be safe, should we s.lower() before testing against the RE?

Copy link
Member Author

Choose a reason for hiding this comment

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

If I'm understanding what you're saying correctly I don't think that'd make it safer. my point here was to avoid assuming 40 letter strings that have capital letters as hashes lowering the input defeats that. if we want to make this additional assumption I'd just update the regex to include capital A-F

Copy link
Contributor

Choose a reason for hiding this comment

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

That is a good point.

I am not aware that git hash can be upper case as it is in hexadecimal scheme. I am a little confused when would "hashes can have capital letters too" happen?

Copy link
Member Author

Choose a reason for hiding this comment

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

I remember reading somewhere that's still valid for git since it's valid hex 🤷🏼

@szewaiyuen6
Copy link
Contributor

Also wonder if it is possible to rename these options to genai in this PR? If not, that is totally ok and I can put out another one to do so. Thank you

@szewaiyuen6 szewaiyuen6 assigned hamidzr and unassigned szewaiyuen6 Dec 8, 2023
@hamidzr
Copy link
Member Author

hamidzr commented Dec 8, 2023

thanks for the review.

Also wonder if it is possible to rename these options to genai in this PR? If not, that is totally ok and I can put out another one to do so. Thank you

I'd prefer to leave these separate to avoid adding to the scope.

@hamidzr hamidzr assigned szewaiyuen6 and unassigned hamidzr Dec 8, 2023
Copy link
Contributor

@szewaiyuen6 szewaiyuen6 left a comment

Choose a reason for hiding this comment

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

Discussed offline with @hamidzr wrt the comments, approving the change.

@hamidzr hamidzr enabled auto-merge (squash) December 11, 2023 18:32
@hamidzr hamidzr assigned hamidzr and unassigned ioga and szewaiyuen6 Dec 11, 2023
@hamidzr hamidzr merged commit c9ba474 into main Dec 11, 2023
65 of 79 checks passed
@hamidzr hamidzr deleted the hz-add-lore-help branch December 11, 2023 18:46
hamidzr added a commit that referenced this pull request Dec 11, 2023
fixes an issue that was introduced in #8563 wrt argument parsing
when deploying clusters of specific types
@dannysauer dannysauer added this to the 0.26.7 milestone Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants