-
Notifications
You must be signed in to change notification settings - Fork 13
CFE-4560: Implement Step 3 of cfbs convert
#280
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
larsewi
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.
Great work 🚀 Some smaller comments
| return download_urls, reported_checksums | ||
|
|
||
|
|
||
| def get_all_download_urls(min_version=None): |
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.
Maybe s/decoupled/refactored/ in commit message?
| else: | ||
| print("There are no files from other versions of masterfiles.") | ||
| print( | ||
| "The next conversion step is to handle files which have custom modifications." |
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.
This functions has grown to over 260 lines of code. Maybe we should start thinking about refactoring? The different steps could be separated into to different functions
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.
For a code implementation of a long interactive process like this, I don't mind the function being long.
Perhaps the implementation could be moved to convert.py?
| try: | ||
| cfbs_convert_git_commit(commit_message) | ||
| except: | ||
| log.warning("Git commit failed, continuing without committing...") |
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.
Maybe it would be nice to have the option to abort here?
…sn't exist Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
| download_urls[version] = HARDCODED_URLS[version] | ||
| reported_checksums[version] = HARDCODED_CHECKSUMS[version] |
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.
Maybe you could even have the URLs and SHAs as a tuple within the object
| download_urls[version] = HARDCODED_URLS[version] | |
| reported_checksums[version] = HARDCODED_CHECKSUMS[version] | |
| download_urls[version], reported_checksums[version] = WHAT_EVER_YOU_WANT_TO CALL_IT[version] |
olehermanse
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.
Cool, I might have more feedback after testing it again :)
No description provided.