question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

performance report does not accept str

See original GitHub issue

Running this check src works:

PERFORMANCE REPORT
------------------------------------------------------------------------------
ExampleRunOnlyTest
- dom:login
   - PrgEnv-cray
      * num_tasks: 1
      * elapsed_time: 8 s
      * filename: 9.c <---------- yes

but fails with:

FAILURE INFO for ExampleRunOnlyTest
  * System partition: dom:login
  * Environment: PrgEnv-cray
  * Stage directory: /apps/common/UES/sandbox/jgp/hpctools.git/reframechecks/common/sphexa/DEBUGJG/JIRA1/stage/dom/login/PrgEnv-cray/ExampleRunOnlyTest
  * Node list: dom101
  * Job type: local (id=4458)
  * Maintainers: ['x']
  * Failing phase: performance
  * Reason: unexpected error: '>=' not supported between instances of 'str' and 'float'
Traceback (most recent call last):
  File "/apps/common/UES/sandbox/jgp/reframe.git.jgphpc/reframe/frontend/executors/__init__.py", line 163, in _safe_call
    return fn(*args, **kwargs)
  File "/apps/common/UES/sandbox/jgp/reframe.git.jgphpc/reframe/core/pipeline.py", line 96, in _fn
    func(obj, *args, **kwargs)
  File "/apps/common/UES/sandbox/jgp/reframe.git.jgphpc/reframe/core/pipeline.py", line 1235, in performance
    self.check_performance()
  File "/apps/common/UES/sandbox/jgp/reframe.git.jgphpc/reframe/core/pipeline.py", line 1319, in check_performance
    'expected {1} (l={2}, u={3})' % tag))
  File "/apps/common/UES/sandbox/jgp/reframe.git.jgphpc/reframe/utility/sanity.py", line 727, in evaluate
    return expr.evaluate()
  File "/apps/common/UES/sandbox/jgp/reframe.git.jgphpc/reframe/core/deferrable.py", line 53, in evaluate
    ret = self._fn(*fn_args, **fn_kwargs)
  File "/apps/common/UES/sandbox/jgp/reframe.git.jgphpc/reframe/utility/sanity.py", line 546, in assert_reference
    evaluate(assert_bounded(val, lower, upper))
  File "/apps/common/UES/sandbox/jgp/reframe.git.jgphpc/reframe/utility/sanity.py", line 727, in evaluate
    return expr.evaluate()
  File "/apps/common/UES/sandbox/jgp/reframe.git.jgphpc/reframe/core/deferrable.py", line 53, in evaluate
    ret = self._fn(*fn_args, **fn_kwargs)
  File "/apps/common/UES/sandbox/jgp/reframe.git.jgphpc/reframe/utility/sanity.py", line 492, in assert_bounded
    if val >= lower and val <= upper:
TypeError: '>=' not supported between instances of 'str' and 'float'

Would be nice to have reframe support this. Would be super nice to have this (being able to use a string for the unit) supported:

      * elapsed_time: 8 (9.c)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vkarakcommented, Jan 31, 2020

@jgphpc Do not close it, the fact that you got this “crash” is a bug, even if you used it wrongly. It should have given a more user friendly error!

0reactions
jgphpccommented, Jan 31, 2020

You’re right, actually this works without error:

        self.perf_patterns = {
            'elapsed_time': self.elapsed,
            'filename': self.file_line,
        }
        self.reference = {
            '*': {
                'elapsed_time': (0, None, None, 's'),
                'filename': (0, None, None, self.file_name),
            }
Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQ | Hotel & Hospitality - STR
Yes, there are two ways to participate. Our free Hotel Survey provides a market performance report to those hotels that submit data. For...
Read more >
How to Read a STR Report (Hotelier Step-by-Step)
In order to receive your STR report, hoteliers must submit performance data (like daily occupancy and ADR) to Smith Travel Research, who then ......
Read more >
STR Data Reporting FAQs
I. How to report no-show revenue and cancellation fees for my property? ... *Please note that STR does not accept revenues where zero...
Read more >
Report Type Values - Amazon-Services-API
Report Type values are how to specify the type of report you want to request via the Reports API.
Read more >
How to Get Your Hotel's STR Report [+ Costs & Benefits] | HE
With a paid monthly subscription, hotels can receive weekly in-depth analysis of their property performance vs. their competitors. While you can ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found