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

How to disable writting annoying buildstats into easyconfigs in my repo #4353

Open
mayeths opened this issue Oct 14, 2023 · 2 comments
Open

Comments

@mayeths
Copy link

mayeths commented Oct 14, 2023

I notice that when building packages from the official repo easybuild-easyconfigs, easybuild won't write buildstats into the package config file. However, when I use my own repo, easybuild always generates annoying buildstats to my package config file. I checked the official website, GitHub issues, and source code, but I can't find any clear instructions to disable it. How can I do it? Thanks

@mayeths
Copy link
Author

mayeths commented Oct 14, 2023

When I mean "no clear instructions", that is I checked the following code that writes buildstats into repo:

try:
# upload easyconfig (and patch files) to central repository
currentbuildstats = app.cfg['buildstats']
repo = init_repository(get_repository(), get_repositorypath())
if 'original_spec' in ecdict:
block = det_full_ec_version(app.cfg) + ".block"
repo.add_easyconfig(ecdict['original_spec'], app.name, block, buildstats, currentbuildstats)
repo.add_easyconfig(spec, app.name, det_full_ec_version(app.cfg), buildstats, currentbuildstats)
for patch in app.patches:
repo.add_patch(patch['path'], app.name)
repo.commit("Built %s" % app.full_mod_name)
del repo
except EasyBuildError as err:
_log.warning("Unable to commit easyconfig to repository: %s", err)

I can't find any possible condition checks like if app.cfg['no_buildstats']:. How can I disable such writing?

@casparvl
Copy link
Contributor

Hm, I have to admit, I have little experience with this part of EasyBuild. The documentation on this particular features says

If access to the easyconfigs repository fails for some reason (e.g., no network or a missing required Python module), EasyBuild will issue a warning.

So I guess if you are really annoyed by it, you could specify an EASYBUILD_REPOSITORYPATH that doesn't exist. Or is the only thing you want to get rid of the # Build statistics section in the EasyConfigs that EasyBuild copies to the EASYBUILD_REPOSITORYPATH?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants