Skip to content

Conversation

migueldiascosta
Copy link
Member

@migueldiascosta migueldiascosta commented Sep 16, 2020

closes #3289

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
Copy link
Contributor

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.

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:
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here ...

@boegel boegel added this to the next release (4.3.1) milestone Sep 27, 2020
Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm

@boegel
Copy link
Member

boegel commented Oct 12, 2020

Thanks a lot @migueldiascosta, this is going to be really useful...

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.

--upload-test-report should post comment with test report in easyblocks PR if --include-easyblock-from-pr was used
3 participants