Feature/rdk 60236 structure#192
Open
Abhinavpv28 wants to merge 78 commits intodevelopfrom
Open
Conversation
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Contributor
Author
|
@copilot add gtest testcases for newly aded changes |
Code Coverage Summary |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces support for issue-type “suffixes” (tokens after the first underscore) by splitting issue type strings into a base + persisted suffix, carrying that suffix through data_buf, and using it when building the upload artifact name.
Changes:
- Added
split_issue_type()utility (exported viarrdJsonParser.h) and comprehensive unit tests for it. - Extended
data_bufwith asuffixfield; initialized/freed it in buffer lifecycle helpers and key processing paths. - Updated issue-type processing to preserve suffix while still using the base issue type for JSON lookup, and adjusted upload naming and sanitization to allow
_and-.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/unittest/rrdUnitTestRunner.cpp | Adds tests for split_issue_type() and updates some event/cache tests for new struct fields. |
| src/rrdJsonParser.h | Exposes the new split_issue_type() API. |
| src/rrdJsonParser.c | Implements split_issue_type() and appends persisted suffix into upload tar name; adds cleanup for new suffix field. |
| src/rrdInterface.c | Initializes/frees data_buf.suffix in init/dealloc helpers. |
| src/rrdEventProcess.c | Splits issue types into base/suffix and stores suffix on data_buf; expands sanitization to keep _ and -. |
| src/rrdCommon.h | Extends data_buf with suffix. |
Comment on lines
3766
to
3772
| data_buf rbuf; | ||
| rbuf.mtype = EVENT_MSG; | ||
| rbuf.mdata = strdup("Test"); | ||
| rbuf.inDynamic = true; | ||
| rbuf.jsonPath = nullptr; | ||
| rbuf.suffix = strdup("_search_b675-657-556-656"); | ||
| msgRRDHdr msgHdr; |
…ypeEvent Agent-Logs-Url: https://github.com/rdkcentral/remote_debugger/sessions/76cad72a-f67f-4c05-8fb5-bfadf0c173b3 Co-authored-by: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com>
Added gtest test cases in commit
All 322 tests pass. |
Code Coverage Summary |
Code Coverage Summary |
Comment on lines
99
to
104
| @@ -88,9 +103,19 @@ void processIssueTypeEvent(data_buf *rbuf) | |||
| } | |||
| cmdBuff->appendMode = rbuf->appendMode; | |||
Comment on lines
670
to
673
| while (str[source] != '\0') | ||
| { | ||
| if (isalnum(str[source]) || str[source] == ',' || str[source] == '.') | ||
| if (isalnum(str[source]) || str[source] == ',' || str[source] == '.' || str[source] == '_'|| str[source] == '-') | ||
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.