Skip to content

Conversation

@Rommelse
Copy link
Contributor

@Rommelse Rommelse commented Oct 4, 2025

Added command line parameter --fetch-all. It implies --fetch. But when a fetch fails, EasyBuild will still try to fetch all dependencies. This is handy in situations where the success of fetching is non-deterministic and the engineer wants to get all failures at once without having to restart after each failure. Non-deterministic success of fetching can for example happen if some downloads are intercepted by the CyberDefence team to scan for vulnerabilities and later retries are handled by earlier scans that have been cached.

@boegel boegel changed the title Added command line parameter --fetch-continue Added command line parameter --fetch-continue Oct 8, 2025
@boegel boegel added this to the next release (5.2.0?) milestone Oct 8, 2025
False),
'fetch': ("Allow downloading sources ignoring OS and modules tool dependencies, "
"implies --stop=fetch, --ignore-osdeps and ignore modules tool", None, 'store_true', False),
'fetch-continue': ("Continue after failed fetch", None, 'store_true', False),
Copy link
Member

Choose a reason for hiding this comment

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

Help text should make it clear that this implies --fetch, and I would rename this to --fetch-all maybe?

Suggested change
'fetch-continue': ("Continue after failed fetch", None, 'store_true', False),
'fetch-all': ("Download sources (like --fetch), don't stop when downloading failed for one easyconfig",
None, 'store_true', False),

raise

@_obtain_file_update_progress_bar_on_return
def obtain_file_and_fail(self, filename, extension=False, urls=None, download_filename=None, force_download=False,
Copy link
Member

Choose a reason for hiding this comment

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

method is a bit confusing maybe, how about:

Suggested change
def obtain_file_and_fail(self, filename, extension=False, urls=None, download_filename=None, force_download=False,
def obtain_file_raise_on_failure(self, filename, extension=False, urls=None, download_filename=None, force_download=False,

@Rommelse Rommelse changed the title Added command line parameter --fetch-continue Added command line parameter --fetch-all Dec 7, 2025
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.

3 participants