Skip to content

Wncxione 662 : Timer loop stuck - #18

Open
DouglasAdler wants to merge 6 commits into
mainfrom
WNCXIONE-662
Open

DouglasAdler wants to merge 6 commits into
mainfrom
WNCXIONE-662

Conversation

@DouglasAdler

Copy link
Copy Markdown
Contributor

Reason for change: Fix a race condition where the process terminates
before the timer thread is started.
Test Procedure: Test using gst-inspect
Risks: None

Reason for change: Fix race condition where process terminate happens
before the timer thread is started.
Test Procedure: Test using gst-inspect
Risks: None

Signed-off-by: Douglas Adler <douglas.adler@yahoo.com>
Reason for change: Simplifed the timer loop and
added some additional tests.
Test Procedure: Test using make quick-exit-test
Risks: None

Signed-off-by: Douglas Adler <douglas.adler@yahoo.com>
Reason for change: Follow directions from
https://etwiki.sys.comcast.net/spaces/RDKDocumentation/pages/1589622522/Setting+up+Coverity+for+RDK-E+in+the+GitHub+Actions+workflow
Test Procedure: None
Risks: None

Signed-off-by: Douglas Adler <douglas.adler@yahoo.com>
Copilot AI lite review requested due to automatic review settings September 27, 2026 21:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Both Coverity workflows reference a nonexistent build.sh, and manual incremental runs lack a branch fallback.

Review effort: Lite
Findings: 2 High severity

Open (2)
What changed in this PR

This PR fixes timer shutdown synchronization, adds a quick-exit regression test, and introduces Coverity scanning workflows.

Changes:

  • Reworks timer stop signaling and cleanup ordering.
  • Adds repeated LD_PRELOAD quick-exit testing and Make targets.
  • Adds incremental and full Coverity workflows.
File Description
test/​timer_quick_exit_test.sh Adds repeated quick-exit regression testing.
test/​Makefile Adds the quick-exit test target.
rdkperf/​rdk_perf.cpp Updates timer lifecycle and shutdown ordering.
Makefile Exposes the top-level test target.
.github/​workflows/​coverity_incremental_scan.yml Adds incremental Coverity scanning.
.github/​workflows/​coverity_full_scan.yml Adds full Coverity scanning.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/coverity_full_scan.yml Outdated
Comment thread .github/workflows/coverity_incremental_scan.yml Outdated
…nexistent build.sh'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 27, 2026 21:30
…okes nonexistent build.sh'

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Pin reusable workflows, correct manual scan inputs, and propagate build failures before approval.

Review effort: Lite
Findings: 2 High severity

Open (2)
Resolved since last review (2)
Previously missed (1)

In code that hasn't changed since last review

Medium severity Provide branch fallback for manually triggered scans

.github/​workflows/​coverity_incremental_scan.yml:20

On workflow_dispatch, github.event.pull_request is absent, so this expression passes an empty branchName to the reusable incremental-scan workflow even though pullRequestNumber is required for manual runs. Fall back to the selected workflow ref or add a branch input so manually triggered scans can resolve their base branch.

Comment thread .github/workflows/coverity_full_scan.yml Outdated
Comment thread .github/workflows/coverity_incremental_scan.yml Outdated
Signed-off-by: Douglas Adler <douglas.adler@yahoo.com>
Copilot AI review requested due to automatic review settings September 28, 2026 17:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Four unresolved moderate findings affect branch selection and build-failure propagation.

Review effort: Lite
Findings: None

Resolved since last review (2)
Previously missed (3)

In code that hasn't changed since last review

Medium severity Aggregate make target masks component build failures

.github/​workflows/​coverity_full_scan.yml:14

The Coverity job relies on make all, but the root target runs sub-makes in a shell loop whose exit status is only the final service make (Makefile:27-30); a failure in an earlier component can therefore be masked and the scan can proceed with an incomplete or stale build. Make the aggregate target fail fast (or invoke a fail-fast build wrapper) before using it here.

Medium severity Manual workflow runs pass an empty base branch

.github/​workflows/​coverity_incremental_scan.yml:20

When this workflow is started via the declared workflow_dispatch trigger, github.event.pull_request does not exist, so this expression supplies an empty branchName to the reusable scan workflow. The manual-run path will therefore not know which base branch to scan; fall back to the ref used for the manual run (or add a branch input).

Medium severity Aggregate make target masks component build failures

.github/​workflows/​coverity_incremental_scan.yml:22

The Coverity job relies on make all, but the root target runs sub-makes in a shell loop whose exit status is only the final service make (Makefile:27-30); a failure in an earlier component can therefore be masked and the scan can proceed with an incomplete or stale build. Make the aggregate target fail fast (or invoke a fail-fast build wrapper) before using it here.

@DouglasAdler
DouglasAdler marked this pull request as draft September 28, 2026 17:47
@DouglasAdler
DouglasAdler marked this pull request as ready for review September 28, 2026 17:50
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