Skip to content

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Feb 24, 2021

This also introduces a new function in the ScopedDict that returns all the keys in a specific scope. This is used by the logging mechanism to retrieve and log the correct references for the current system partition.

Now somebody could use %(check_perf_patterns)s and %(check_reference)s to log all performance variables and their references in a single line.

Addresses #1543.

This also introduces a new function in the `ScopedDict` that returns all the
keys in a specific scope. This is used by the logging mechanism to retrieve and
log the correct references for the current system partition.
for k, v in scope_dict.items():
self.data[scope][k] = v

def scope(self, scope):
Copy link
Contributor

Choose a reason for hiding this comment

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

You can mention this on line 673 where you comment on trying to retrieve whole scopes.

@codecov-io
Copy link

Codecov Report

Merging #1816 (677d5c4) into master (0c929f4) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1816      +/-   ##
==========================================
+ Coverage   87.60%   87.62%   +0.02%     
==========================================
  Files          49       49              
  Lines        7937     7954      +17     
==========================================
+ Hits         6953     6970      +17     
  Misses        984      984              
Impacted Files Coverage Δ
reframe/core/logging.py 84.61% <100.00%> (+0.08%) ⬆️
reframe/utility/__init__.py 92.12% <100.00%> (+0.17%) ⬆️
reframe/core/warnings.py 100.00% <0.00%> (ø)
reframe/core/fields.py 98.73% <0.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c929f4...677d5c4. Read the comment docs.

@vkarak vkarak requested a review from teojgo February 25, 2021 14:11
@vkarak vkarak merged commit 96ce404 into reframe-hpc:master Feb 25, 2021
@vkarak vkarak deleted the feat/log-references branch February 25, 2021 22:34
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.

3 participants