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

avoid uploading test reports when no easyconfigs are (re)built #3957

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jfgrimm
Copy link
Member

@jfgrimm jfgrimm commented Feb 9, 2022

(created using eb --new-pr)

@jfgrimm jfgrimm added this to the 4.x milestone Feb 9, 2022
@@ -474,6 +474,8 @@ def main(args=None, logfile=None, do_build=None, testing=False, modtool=None):
ordered_ecs = easyconfigs
elif pr_options:
ordered_ecs = None
elif options.upload_test_report:
raise EasyBuildError("No easyconfigs left to be built (use --rebuild?)")
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, I wonder if we should somehow allow uploading the test report anyway (but --force won't work for this...).

Even if all easyconfigs are already installed, there are exceptional use cases where it may be useful to upload a test report (to communicate system info and EasyBuild configuration, for example)

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, I hadn't considered using it to share system info/configuration, so an override would definitely be useful. Maybe something like --upload-test-report=force?

Copy link
Member

Choose a reason for hiding this comment

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

That could work, yes...
That would involve making --upload-test-report a store_or_None option, so you can allow using it both with and without passing a value; see also --inject-checksums or --force-download for example.

Are you up for looking into this yourself?

Copy link
Member Author

Choose a reason for hiding this comment

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

when I actually have time again, sure :)

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.

2 participants