reframe-hpc / reframe

Compare 0d2f26c ... +10 ... c595d65

Showing 2 of 4 files from the diff.

@@ -371,7 +371,8 @@
Loading
371 371
        return None
372 372
373 373
    extras = site_config.get(f'{config_prefix}/extras')
374 -
    return HTTPJSONHandler(url, extras)
374 +
    ignore_keys = site_config.get(f'{config_prefix}/ignore_keys')
375 +
    return HTTPJSONHandler(url, extras, ignore_keys)
375 376
376 377
377 378
class HTTPJSONHandler(logging.Handler):
@@ -386,20 +387,25 @@
Loading
386 387
        'stack_info', 'thread', 'threadName', 'exc_text'
387 388
    }
388 389
389 -
    def __init__(self, url, extras=None):
390 +
    def __init__(self, url, extras=None, ignore_keys=None):
390 391
        super().__init__()
391 392
        self._url = url
392 393
        self._extras = extras
394 +
        self._ignore_keys = ignore_keys
393 395
394 396
    def _record_to_json(self, record):
397 +
        def _can_send(key):
398 +
            return not (
399 +
                key.startswith('_') or key in HTTPJSONHandler.LOG_ATTRS
400 +
                or (self._ignore_keys and key in self._ignore_keys)
401 +
            )
402 +
395 403
        json_record = {
396 -
            k: v for k, v in record.__dict__.items()
397 -
            if not (k.startswith('_') or k in HTTPJSONHandler.LOG_ATTRS)
404 +
            k: v for k, v in record.__dict__.items() if _can_send(k)
398 405
        }
399 406
        if self._extras:
400 407
            json_record.update({
401 -
                k: v for k, v in self._extras.items()
402 -
                if not (k.startswith('_') or k in HTTPJSONHandler.LOG_ATTRS)
408 +
                k: v for k, v in self._extras.items() if _can_send(k)
403 409
            })
404 410
405 411
        return _xfmt(json_record).encode('utf-8')

@@ -600,7 +600,7 @@
Loading
600 600
        envvar='RFM_IGNORE_REQNODENOTAVAIL',
601 601
        configvar='schedulers/ignore_reqnodenotavail',
602 602
        action='store_true',
603 -
        help='Graylog server address'
603 +
        help='Ignore ReqNodeNotAvail Slurm error'
604 604
    )
605 605
    argparser.add_argument(
606 606
        dest='dump_pipeline_progress',

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
reframe -0.03% 86.24%
Project Totals (60 files) 86.24%
Loading