-
Notifications
You must be signed in to change notification settings - Fork 212
take into account --include-easyblocks-from-pr when uploading test reports #3446
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
take into account --include-easyblocks-from-pr when uploading test reports #3446
Conversation
easybuild/tools/testing.py
Outdated
if repo == 'easyconfigs': | ||
pr_target_repo = build_option('pr_target_repo') or GITHUB_EASYCONFIGS_REPO | ||
else: | ||
pr_target_repo = build_option('pr_target_repo') or GITHUB_EASYBLOCKS_REPO |
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.
If we manage to enhance this to framework in the future (test reports that is) then we should protect against that by making this a case-stmt instead (of elif) and error out if repo isn't easyconfigs/easyblocks. That way we'll easily catch this one.
easybuild/tools/testing.py
Outdated
if repo == 'easyconfigs': | ||
comment_lines.append("Using easyblocks from https://github.com/%s/%s/pull/%s" % ( | ||
pr_target_account, GITHUB_EASYBLOCKS_REPO, easyblocks_pr_nr)) | ||
else: |
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.
Same here ...
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.
lgtm
Thanks a lot @migueldiascosta, this is going to be really useful... |
closes #3289