Skip to content

Conversation

Flamefire
Copy link
Contributor

The log of any software contains a lot of warnings from EasyBuild. This PR reduces those considerably. Every change is in its own commit, but all have this common goal, so they are bundled here.

  • Fix usage of exts_filter, fixes Fix usage of 'exts_filter' #3124
    • Fix docu mentioning wrong templates
    • Remove deprecated (and anounced as removed) templates
    • Unify function to fill this template
    • Access with templating disabled (as templating is done with a different dict)
  • Allow and use less verbose which when existance of command is checked and (semi-)expected to fail. This avoids duplicate log messages and warnings
  • Add vendor for our POWER9 CPUs avoiding warning about unknown vendor
  • det_iter_cnt and validate_iterate_opt_lists don't need templating and produce warnings if they use it
  • Fix checking for _opt_CC and friends producing warnings although empty values are ok

@Flamefire Flamefire force-pushed the fix_exts_filter branch 2 times, most recently from 6fb973f to 63d8bbb Compare December 16, 2019 11:46
@easybuilders easybuilders deleted a comment from boegelbot Jan 6, 2020
@easybuilders easybuilders deleted a comment from boegelbot Jan 6, 2020
@easybuilders easybuilders deleted a comment from boegelbot Jan 6, 2020
@easybuilders easybuilders deleted a comment from boegelbot Jan 6, 2020
@easybuilders easybuilders deleted a comment from boegelbot Jan 6, 2020
@easybuilders easybuilders deleted a comment from boegelbot Jan 6, 2020
@Flamefire
Copy link
Contributor Author

ping

Just get the value w/o template replacements for logging
Adresses easybuilders#3124
- Avoid duplicated code in EasyBlock and Extension
- Fix wrong attribute 'source' accessed instead of 'src'
- Enhance testcase to detect above issue
- Remove deprecated (and supposedly in v2.0 removed) template args

Fixes easybuilders#3124
Removes duplicate "Command found" message in check_cmd_avail
Removes expected warning message when checking for cmd before using COMMAND_ENVIRONMENT
  Reasoning: Usually commands 'ml'/'module' are used which internally use LMOD_CMD
             so lmod does not need to be in path (and rarely is)
…_lists

Some values are not available at this stage, e.g. installdir
As we are not interested in the resolved values, simply disable templating
We just need to number of elements, not their values
This happens for e.g. _opt_CC and friends and is allowed to be empty/unset
according to the code in the setter function.
This avoids half a dozen warnings per software part installed
@boegel boegel changed the title Fix or avoid warnings commonly raised in a standard build Fix or avoid warnings that commonly arise in build log Jan 14, 2020
@boegel boegel merged commit e7a37c5 into easybuilders:develop Jan 14, 2020
@Flamefire Flamefire deleted the fix_exts_filter branch January 15, 2020 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix usage of 'exts_filter'

3 participants