Skip to content

RDK-60409: Component independent Tool Development for Noisy Log detection#432

Open
dshett549 wants to merge 9 commits intordkcentral:developfrom
dshett549:topic/newrbustooling
Open

RDK-60409: Component independent Tool Development for Noisy Log detection#432
dshett549 wants to merge 9 commits intordkcentral:developfrom
dshett549:topic/newrbustooling

Conversation

@dshett549
Copy link
Copy Markdown
Contributor

Reason for change: Component independent tool for Noisy Log detection
Test Procedure: Tested and verified
Risks: Medium

Signed-off-by: dshett549 [DEEPTHICHANDRASHEKAR_SHETTY@comcast.com]

…ction

Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com>
@dshett549 dshett549 requested a review from a team as a code owner January 27, 2026 03:37
Copilot AI review requested due to automatic review settings January 27, 2026 03:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a component-independent “noisy log detection” tool and CI integration to analyze generated logs for noisy levels, sensitive patterns, and severity misuse, producing HTML reports as build artifacts.

Changes:

  • Introduces a YAML ruleset (rules.yml) for sensitive pattern detection and severity/noise heuristics.
  • Adds a Python-based log analyzer (noisylogdetector.py) that scans logs and generates an HTML report.
  • Adds a GitHub Actions workflow to run existing tests, analyze logs, and upload the resulting HTML reports as artifacts.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
rules.yml Defines sensitive regex patterns plus “noisy levels” and severity enforcement keywords/levels used by the analyzer.
noisylogdetector.py Implements log parsing, rule-based detection, and HTML report generation.
.github/workflows/log-quality-rules.yml Runs builds/tests, executes the analyzer on produced logs, and uploads HTML reports as artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/log-quality-rules.yml Outdated
Comment thread .github/workflows/log-quality-rules.yml Outdated
Comment thread .github/workflows/log-quality-rules.yml Outdated
Comment thread noisylogdetector.py
Comment thread noisylogdetector.py
Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/log-quality-rules.yml Outdated
Comment thread .github/workflows/log-quality-rules.yml Outdated
Comment thread noisylogdetector.py
Comment thread noisylogdetector.py Outdated
Comment thread noisylogdetector.py Outdated
Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com>
Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com>
Copilot AI review requested due to automatic review settings January 27, 2026 04:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread noisylogdetector.py
Comment thread noisylogdetector.py Outdated
Comment thread .github/workflows/log-quality-rules.yml Outdated
Comment thread noisylogdetector.py
Comment thread rules.yml Outdated
dshett549 and others added 2 commits January 27, 2026 11:27
Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com>
Copilot AI review requested due to automatic review settings January 27, 2026 06:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread noisylogdetector.py
Comment thread noisylogdetector.py Outdated
Comment thread noisylogdetector.py
Comment thread noisylogdetector.py Outdated
Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com>
Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com>
Copilot AI review requested due to automatic review settings April 14, 2026 10:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 4 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +82 to +84
export RT_LOG_LEVEL=info
nohup ./bin/rbusTestTimeoutValuesProvider > /tmp/log_testTimeoutValuesProvider.txt &
./bin/rbusTestTimeoutValuesConsumer > /tmp/log_testTimeoutValuesConsumer.txt
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

Some of the nohup commands redirect only stdout to the /tmp/log_*.txt files (e.g., the provider here), but stderr will still go to the Actions log and won’t be included in the files being analyzed by noisylogdetector.py. Redirect stderr as well (2>&1) so errors are captured and analyzed consistently.

Copilot uses AI. Check for mistakes.
Comment thread src/rbus/rbus.c Outdated

// ex: if the consumer pid is 12345;
// Provider1 may open a private session on 127.0.0.1:12345
// Provider1 may open a private session on 127.0.0.1:12345
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

In this comment example, there are multiple spaces in "open a" which looks like an accidental formatting change and makes the comment harder to read. Consider normalizing it to a single space ("open a").

Suggested change
// Provider1 may open a private session on 127.0.0.1:12345
// Provider1 may open a private session on 127.0.0.1:12345

Copilot uses AI. Check for mistakes.
Comment thread noisylogdetector.py
Comment on lines +27 to +29
if not isinstance(rules, dict):
print(f"Error: rules.yml is empty or not a valid YAML mapping.", file=sys.stderr)
sys.exit(1)
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

The error message here is hard-coded to "rules.yml" even though load_rules accepts a path parameter. If the caller passes a different rules file, this message will be misleading; use the path value in the message for consistency with the other error paths.

Copilot uses AI. Check for mistakes.
with:
path: rbus
- name: Install dependencies
run: pip install pyyaml
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

This installs PyYAML via pip, but the workflow later runs the script with python3. To avoid interpreter mismatches on runners where pip may not target the same Python, install via python3 -m pip install ... (or pip3) so the yaml module is available to the exact interpreter used.

Suggested change
run: pip install pyyaml
run: python3 -m pip install pyyaml

Copilot uses AI. Check for mistakes.
Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com>
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.

2 participants