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

Replace parallel easyconfig parameter by maxparallel #4398

Open
wants to merge 5 commits into
base: 5.0.x
Choose a base branch
from

Conversation

Flamefire
Copy link
Contributor

@Flamefire Flamefire commented Dec 7, 2023

@boegel boegel added the EasyBuild-5.0 EasyBuild 5.0 label Dec 20, 2023
@boegel boegel added this to the 5.0 milestone Dec 20, 2023
@boegel boegel changed the title Replace parallel EC parameter by maxparallel Replace parallel easyconfig parameter by maxparallel Jan 3, 2024
@boegel boegel added the EasyBuild-5.0-blocker Blocker for EasyBuild 5.0 label Jun 5, 2024
ec['parallel'] currently doubles as an EC option and as the storage for
the calculated parallelism set by the EasyBlock.
This makes it hard to reason about especially as maxparallel has pretty
much the same effect. Also changes to ec['parallel'] done by e.g.
easyblocks (or the set_parallel method) are not reflected by the
template `%(parallel)s`

Solution: Introduce a property which on write updates the template and
some magic to mirror the effect of the now deprecated ec['parallel']
Migrate from `self.cfg['parallel']` to `self.cfg.parallel`
We need to fix our own easyblocks first but that requires this change.
So allow until 5.1 or remove after updating the easyblocks.
The EC parameter is deprecated so the tests fail.
@boegel
Copy link
Member

boegel commented Oct 8, 2024

@Flamefire Not supporting the parallel easyconfig parameter at all anymore is a bridge too far imho, even for EasyBuild 5.0, especially since it's a commonly used easyconfig parameter (as shown in easybuilders/easybuild-easyconfigs#19375).

So I think we should proceed with #4580 instead, and only actually remove support for using the parallel easyconfig parameter in the next major EasyBuild release (6.0).

So this PR should probably be closed, I'll look into reviewing #4580 ASAP...

@Flamefire
Copy link
Contributor Author

Agreed, especially as this is basically #4580 with an extra commit which we can apply at any later point. The EC PR is still useful to promote the use of the new name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EasyBuild-5.0-blocker Blocker for EasyBuild 5.0 EasyBuild-5.0 EasyBuild 5.0
Projects
Status: Breaking changes
Development

Successfully merging this pull request may close these issues.

2 participants