Skip to content

DmesPlugin update#244

Open
alexandraBara wants to merge 1 commit into
developmentfrom
alex_mce
Open

DmesPlugin update#244
alexandraBara wants to merge 1 commit into
developmentfrom
alex_mce

Conversation

@alexandraBara

Copy link
Copy Markdown
Collaborator

Summary

-Add ignore_match_rules to DmesgPlugin analysis args and RegexAnalyzer.check_all_regexes, so callers can skip regex matches by MCA bank (mce_banks can be single, list, or range), line_regex, match_regex, and optional message scope; ignored banks are also excluded from mce_threshold counting.

Test plan

  • pytest test/unit
  • pytest test/functional (if applicable)
  • pre-commit run --all-files

Checklist

  • Added/updated tests (or explained why not)
  • Updated docs/README if behavior changed
  • No secrets or credentials committed
    Sample run:
node-scraper --plugin-configs=plugin_config.json run-plugins DmesgPlugin --data ./dmesg_ignore_match_rules.log  --collection False

With sample plugin config:

{
  "global_args": {},
  "plugins": {
    "DmesgPlugin": {
      "analysis_args": {
        "check_unknown_dmesg_errors": false,
        "mce_threshold": 1,
        "ignore_match_rules": [
          {
            "mce_banks": [1, 2]
          },
          {
            "mce_banks": ["6-7"]
          },
          {
            "line_regex": "CUSTOM_TEST_HARNESS_FAULT: probe alpha"
          }
        ],
        "error_regex": [
          {
            "regex": "CUSTOM_TEST_HARNESS_FAULT: .*",
            "message": "Custom Test Harness Fault",
            "event_category": "SW_DRIVER",
            "event_priority": 3
          }
        ]
      }
    }
  },
  "result_collators": {},
  "name": "DmesgPlugin ignore match rules",
  "desc": "Functional test config: ignore MCA banks 1-2 and 6-7 range, alpha harness fault; custom harness regex"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant