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

add build_and_install_loop hooks to run before and after the install loop for individual easyconfigs #4304

Merged
merged 18 commits into from
Aug 8, 2023

Conversation

XavierCS-dev
Copy link
Contributor

@XavierCS-dev XavierCS-dev commented Jul 25, 2023

  • Add POISED BUILD_AND_INSTALL_LOOP hook to list of hooks
  • Set POISED BUILD_AND_INSTALL_LOOP hook to run after easyconfigs are parsed + after install loop
    • Pass POISED BUILD_AND_INSTALL_LOOP hook an ordered list of the easyconfigs, to be processed by external tools.

fixes #4303

@boegel boegel changed the title Implement poised hook to run after easyconfigs are parsed but before the build starts #4303 Implement poised hook to run after easyconfigs are parsed but before the build starts Aug 2, 2023
@boegel boegel added this to the 4.x milestone Aug 2, 2023
@boegel boegel changed the title Implement poised hook to run after easyconfigs are parsed but before the build starts Implement poised hook to run after easyconfigs are parsed but before the build starts Aug 2, 2023
easybuild/main.py Outdated Show resolved Hide resolved
easybuild/tools/hooks.py Outdated Show resolved Hide resolved
@@ -69,7 +69,7 @@
from easybuild.tools.github import add_pr_labels, install_github_token, list_prs, merge_pr, new_branch_github, new_pr
from easybuild.tools.github import new_pr_from_branch
from easybuild.tools.github import sync_branch_with_develop, sync_pr_with_develop, update_branch, update_pr
from easybuild.tools.hooks import START, END, load_hooks, run_hook
from easybuild.tools.hooks import LOOP, PRE_PREF, POST_PREF, START, END, load_hooks, run_hook
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will be used soon!

@XavierCS-dev XavierCS-dev changed the title Implement poised hook to run after easyconfigs are parsed but before the build starts Implement build_and_install_loop hooks to run before and after the install loop for individual modules Aug 8, 2023
test/framework/options.py Outdated Show resolved Hide resolved
test/framework/options.py Outdated Show resolved Hide resolved
Copy link
Member

@branfosj branfosj left a comment

Choose a reason for hiding this comment

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

Tabs instead of spaces after the ".

test/framework/options.py Outdated Show resolved Hide resolved
test/framework/options.py Outdated Show resolved Hide resolved
@easybuilders easybuilders deleted a comment from boegelbot Aug 8, 2023
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 Aug 8, 2023

@XavierCS-dev I assume this is good to go, but I'll let you mark it as "Ready for review" first...

Are you up for also updating the documentation (https://docs.easybuild.io/hooks) accordingly, via a PR to https://github.com/easybuilders/easybuild-docs ?

@XavierCS-dev XavierCS-dev marked this pull request as ready for review August 8, 2023 12:29
@boegel boegel modified the milestones: 4.x, next release (4.8.1?) Aug 8, 2023
@boegel boegel merged commit 5b1e832 into easybuilders:develop Aug 8, 2023
@boegel boegel changed the title Implement build_and_install_loop hooks to run before and after the install loop for individual modules add build_and_install_loop hooks to run before and after the install loop for individual easyconfigs Aug 15, 2023
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.

Implement hook to run after easyconfigs are parsed but before the build starts
3 participants