Skip to content

Fix test failure due to unresolved template#22061

Merged
boegel merged 1 commit intoeasybuilders:5.0.xfrom
Flamefire:fix-template-failure-in-test
Feb 5, 2025
Merged

Fix test failure due to unresolved template#22061
boegel merged 1 commit intoeasybuilders:5.0.xfrom
Flamefire:fix-template-failure-in-test

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

Fixes e.g.

  File "test/easyconfigs/easyconfigs.py", line 1047, in test_r_libs_site_env_var
  if 'R_LIBS' in ec['ec'][key]:
  ...
easybuild.tools.build_log.EasyBuildError: 'Failed to resolve all templates in "/path/to/AlphaFold_DBs/%(versions)s" using template dictionary

Similar for other changes

Drive-by fix for r_libs_ecs.append(ec['spec']) that could append the same EC twice.

Fixes e.g.
  File "test/easyconfigs/easyconfigs.py", line 1047, in test_r_libs_site_env_var
  if 'R_LIBS' in ec['ec'][key]:
  ...
easybuild.tools.build_log.EasyBuildError: 'Failed to resolve all templates in "/path/to/AlphaFold_DBs/%(versions)s" using template dictionary

Similar for other changes

for ec in self.parsed_easyconfigs:
ec_scp = ec['ec'].get_ref('sanity_check_paths')
ec_scp = ec['ec'].get('sanity_check_paths', resolve=False)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This and below is from the resolved conflict. Kept it as IMO resolve=False makes the intent clearer

@Flamefire
Copy link
Copy Markdown
Contributor Author

Flamefire commented Jan 20, 2025

@boegel This is (now) a follow-up to #22052 and required for #19061

@boegel boegel added bug fix EasyBuild-5.0 EasyBuild 5.0 labels Jan 29, 2025
@boegel boegel added this to the 5.0 milestone Jan 29, 2025
@boegel boegel added the tests label Feb 5, 2025
@boegel boegel merged commit 55afd0e into easybuilders:5.0.x Feb 5, 2025
@Flamefire Flamefire deleted the fix-template-failure-in-test branch February 5, 2025 13:32
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