-
Notifications
You must be signed in to change notification settings - Fork 1
Topic/final changeset #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
139 commits
Select commit
Hold shift + click to select a range
4a52055
RDK-58172: integrate dcm-agent uploadstblogs and cleanup logging; upd…
Vismalskumar0 0d1a04f
RDK-58172: add uploadRRDLogs target and headers to src/Makefile.am
Vismalskumar0 fcafed3
RDK-58172: add rrd_upload_cleanup prototype to rrd_upload.h
Vismalskumar0 6087137
RDK-58172: fix rrd_sysinfo.h header guard duplicate/stray endif
Vismalskumar0 1220481
RDK-58172: use LOG_REMDEBUG instead of LOG_UPLOADRRDLOGS
Vismalskumar0 4a3b122
RDK-58172: switch includes from rdk_logger.h to rdk_debug.h
Vismalskumar0 6c2a306
RDK-58172: move rrdCommon.h include into headers (rrd_sysinfo.h, rrd_…
Vismalskumar0 cba1c38
Add unit tests for RRD upload orchestration
Vismalskumar0 ef089ca
Update Makefile.am
Vismalskumar0 3b1484a
Remove uploadRRDLogs program from Makefile
Vismalskumar0 5d6b33f
Refactor uploadDebugoutput to use upload API
Vismalskumar0 dd6a551
Refactor upload orchestration into rrd_upload_orchestrate
Vismalskumar0 1507adf
Update rrd_config.h
Vismalskumar0 bf5d438
Include common_device_api.h in rrd_sysinfo.h
Vismalskumar0 94ab12f
Update rrd_upload.c
Vismalskumar0 61c0e9b
Add uploadstblogs.h include to rrd_upload.h
Vismalskumar0 928bbe0
Update cov_build.sh
Vismalskumar0 523e181
Update rrd_upload.h
Vismalskumar0 3186178
Update cov_build.sh
Vismalskumar0 769329c
Update cov_build.sh
Vismalskumar0 9c72440
Update cov_build.sh
Vismalskumar0 36231e3
Update rrd_archive.c
Vismalskumar0 47e5ea6
Update Makefile.am
Vismalskumar0 7d64f60
Update rrd_upload.h
Vismalskumar0 6d48a2b
Update rrd_upload.h
Vismalskumar0 23e4dce
Update rrd_upload.h
Vismalskumar0 543a9ff
Update rrdExecuteScript.h
Vismalskumar0 3b710da
Update rrdExecuteScript.c
Vismalskumar0 7229a3d
Update rrdUnitTestRunner.cpp
Vismalskumar0 7ea68ad
Update rrd_upload.h
Vismalskumar0 fca0fa4
Update rrd_sysinfo.h
Vismalskumar0 d58b13b
Update Client_Mock.cpp
Vismalskumar0 6ac092c
Update Client_Mock.h
Vismalskumar0 80f20d7
Update test_rrd_upload_orchestrate.cpp
Vismalskumar0 6bd44fc
Update uploadRRDLogs.c
Vismalskumar0 5d2b9b4
Update test_rrd_upload_orchestrate.cpp
Vismalskumar0 322c65d
Update test_rrd_upload_orchestrate.cpp
Vismalskumar0 93c3da4
Update rrd_sysinfo.c
Vismalskumar0 8669506
Update Client_Mock.cpp
Vismalskumar0 4c56ecd
Update Client_Mock.h
Vismalskumar0 c79fc4c
Update Client_Mock.cpp
Vismalskumar0 550b390
Update test_rrd_upload_orchestrate.cpp
Vismalskumar0 0e12518
Update test_rrd_upload_orchestrate.cpp
Vismalskumar0 e2cb79e
Update test_rrd_upload_orchestrate.cpp
Vismalskumar0 ad3db4b
Update rrd_archive.c
Vismalskumar0 4c4bae1
Update Makefile.am
Vismalskumar0 1015ee0
Update test_rrd_upload_orchestrate.cpp
Vismalskumar0 87b6918
Update test_rrd_upload_orchestrate.cpp
Vismalskumar0 f24eea6
Update rrdUnitTestRunner.cpp
Vismalskumar0 5938e81
Update Makefile.am
Vismalskumar0 ef2cf89
Update rrdUnitTestRunner.cpp
Vismalskumar0 9ff47ed
Update rrd_logproc.c
Vismalskumar0 c1b73c3
Delete src/unittest/test_rrd_upload_orchestrate.cpp
Vismalskumar0 65dbd9f
Delete src/unittest/test_rrd_logproc.cpp
Vismalskumar0 805e4da
Delete src/unittest/test_uploadRRDLogs.cpp
Vismalskumar0 9277846
Delete src/unittest/test_rrd_sysinfo.cpp
Vismalskumar0 3c0ce72
Delete src/unittest/test_rrd_sysinfo.c
Vismalskumar0 f3d0a2b
Update rrd_config.c
Vismalskumar0 894ee7c
Update rrdUnitTestRunner.cpp
Vismalskumar0 4c1c1cc
Update rrdUnitTestRunner.cpp
Vismalskumar0 938baf0
Update test_rrd_debug_report_upload.py
Vismalskumar0 4b8e3ef
Update test_rrd_static_profile_report.py
Vismalskumar0 48eb657
Update test_rrd_background_cmd_static_profile_report.py
Vismalskumar0 013a1c4
Update test_rrd_deepsleep_static_report.py
Vismalskumar0 21b1bd9
Update test_rrd_static_profile_category_report.py
Vismalskumar0 e5a8f83
Update test_rrd_dynamic_profile_report.py
Vismalskumar0 09449b1
Update rrdUnitTestRunner.cpp
Vismalskumar0 89b01e3
Update rrd_upload.c
Vismalskumar0 80e5fab
Update rrd_upload.c
Vismalskumar0 be6c5b1
Update rrd_logproc.c
Vismalskumar0 3b042a9
Update rrd_logproc.c
Vismalskumar0 48fd2db
Update rrd_archive.c
Vismalskumar0 4666292
Update rrd_sysinfo.c
Vismalskumar0 a571684
Update rrd_archive.c
Vismalskumar0 d16cb93
Update rrd_config.c
Vismalskumar0 8507289
Add comprehensive functional tests for C API upload orchestration
Vismalskumar0 6e7b9d1
ivv
Vismalskumar0 fa7752c
hanhe
Vismalskumar0 ee42441
Update rrdUnitTestRunner.cpp
Vismalskumar0 bac5a73
Delete src/unittest/test_rrd_upload_orchestrate.cpp
Vismalskumar0 8926905
Update rrdUnitTestRunner.cpp
Vismalskumar0 cf0990f
Delete src/rrd_log.c
Vismalskumar0 ff3f214
Fix buffer overflows and update filename format
Vismalskumar0 820dc18
Update lock file path and timeout duration
Vismalskumar0 1581061
Refactor source validation and handle live logs
Vismalskumar0 dfa6b67
Refactor log upload handling and cleanup process
Vismalskumar0 e461a40
Update rrd_upload.h
Vismalskumar0 4dd0085
Update rrd_upload.c
Vismalskumar0 bf97341
Update rrd_logproc.c
Vismalskumar0 f5715ec
Update rrd_logproc.c
Vismalskumar0 7cfb508
Update uploadRRDLogs.c
Vismalskumar0 9d5883c
Update rrd_archive.c
Vismalskumar0 59053e2
Update rrdUnitTestRunner.cpp
Vismalskumar0 0716d28
Update rrdUnitTestRunner.cpp
Vismalskumar0 6def1fe
Update rrdUnitTestRunner.cpp
Vismalskumar0 75501fd
Refactor test configuration file creation
Vismalskumar0 b874977
Update rrdUnitTestRunner.cpp
Vismalskumar0 b6c19bd
Update rrdUnitTestRunner.cpp
Vismalskumar0 e160279
Update rrd_upload.c
Vismalskumar0 d61fbc9
Refactor live logs moving logic with error handling
Vismalskumar0 2ec15c3
Null-terminate log_server and http_upload_link
Vismalskumar0 d6d5083
Update rrdUnitTestRunner.cpp
Vismalskumar0 f14ccd2
Refactor rrd_logproc_handle_live_logs function
Vismalskumar0 d4f0fbd
Refactor live logs handling in rrd_logproc
Vismalskumar0 c75fe7e
Update rrd_logproc.c
Vismalskumar0 c4d3f1d
Update rrd_logproc.c
Vismalskumar0 3dc0bad
Update rrdUnitTestRunner.cpp
Vismalskumar0 9a87317
Update rrd_upload.c
Vismalskumar0 7cfe3a4
Update helper_functions.py
Vismalskumar0 fa6fb3e
Update test_rrd_dynamic_profile_report.py
Vismalskumar0 6cfa0ae
Update test_rrd_c_api_upload.py
Vismalskumar0 a3e2a74
Update rrdUnitTestRunner.cpp
Vismalskumar0 451522d
Update test_rrd_c_api_upload.py
Vismalskumar0 62466f4
Update test_rrd_debug_report_upload.py
Vismalskumar0 0267b2e
Update test_rrd_dynamic_subcategory_report.py
Vismalskumar0 f75f718
Update rrd_upload.c
Vismalskumar0 0ef1602
Update rrd_upload.c
Vismalskumar0 e180d93
Update rrd_sysinfo.c
Vismalskumar0 4474230
Update rrdUnitTestRunner.cpp
Vismalskumar0 bc5d7f0
Update rrdUnitTestRunner.cpp
Vismalskumar0 ee4e03d
Update uploadRRDLogs.c
Vismalskumar0 81bc2f5
Update test_rrd_debug_report_upload.py
Vismalskumar0 79fc8b8
Update rrdUnitTestRunner.cpp
Vismalskumar0 de794d9
Update test_rrd_debug_report_upload.py
Vismalskumar0 26f596c
Update test_rrd_debug_report_upload.py
Vismalskumar0 aa76e52
Update test_rrd_dynamic_subcategory_report.py
Vismalskumar0 c6fbc04
Update rrd_upload.h
Vismalskumar0 c4b9b96
Update rrd_upload.c
Vismalskumar0 d3e2d7f
Update rrd_sysinfo.h
Vismalskumar0 e09424a
Update rrd_sysinfo.c
Vismalskumar0 cf7668e
Update rrd_logproc.h
Vismalskumar0 c23d782
Update test_rrd_c_api_upload.py
Vismalskumar0 4effc1c
Update rrd_logproc.c
Vismalskumar0 0554070
Update rrd_archive.c
Vismalskumar0 b09340c
Update rrd_archive.h
Vismalskumar0 c078dd2
Update rrd_config.c
Vismalskumar0 41757fa
Update rrd_config.h
Vismalskumar0 e4371fd
Update rrd_log.h
Vismalskumar0 ebdfd1f
Update test_rrd_debug_report_upload.py
Vismalskumar0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| ## Implementation Guidelines | ||
|
|
||
| - **Project Goal:** Migrate existing scripts to C code. | ||
| - **Target Platforms:** Multiple embedded platforms with low memory and low CPU resources. | ||
| - **Constraints:** Code must be efficient, lightweight, and platform-neutral to ensure portability across different embedded systems. | ||
|
|
||
| ## Implementation Strategy | ||
| 1. **Setup Development Environment** | ||
| - Use docker containers for consistent build environments. | ||
| - Container image that can be used for functional testing - https://github.com/rdkcentral/docker-device-mgt-service-test/pkgs/container/docker-device-mgt-service-test%2Fnative-platform | ||
|
|
||
| 2. **Code Development** | ||
| - Translate HLD components into modular C code. | ||
| - Adhere to coding standards and best practices for embedded systems. | ||
| - Implement error handling and logging mechanisms. | ||
| - Optimize for memory usage and performance. | ||
| - Do not use system calls to best possible extent. | ||
|
|
||
| 3. **Code Review and Integration** | ||
| - Conduct peer reviews to ensure code quality and adherence to design. | ||
| - Integrate modules incrementally and perform integration testing. | ||
|
|
||
| 4. **Documentation** | ||
| - Update code comments and API documentation. | ||
| - Document build and deployment procedures. | ||
| - Provide examples and usage guidelines. | ||
| - Maintain a changelog for implementation updates. | ||
|
|
||
| 5. **Testing** | ||
| - Develop unit tests for individual modules. | ||
| - Perform system testing on target hardware or simulators. | ||
| - Validate against original script functionality and performance criteria. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| ## HLD Generation Guidelines | ||
|
|
||
| - **Project Goal:** Migrate existing scripts to C code. | ||
| - **Target Platforms:** Multiple embedded platforms with low memory and low CPU resources. | ||
| - **Constraints:** Code must be efficient, lightweight, and platform-neutral to ensure portability across different embedded systems. | ||
|
|
||
| ## Migration Strategy | ||
| 1. **Requirements Gathering** | ||
| - For scripts selected in context, create a Markdown (`.md`) file documenting: | ||
| - Functional requirements | ||
| - Inputs/outputs | ||
| - Dependencies | ||
| - Constraints (timing, memory, etc.) | ||
| - Edge cases and error handling | ||
|
|
||
| 2. **High Level Design (HLD)** | ||
| - For each script, create a separate HLD `.md` file including: | ||
| - Architecture overview | ||
| - Module/component breakdown | ||
| - Data flow diagrams or descriptions | ||
| - Key algorithms and data structures | ||
| - Interfaces and integration points | ||
|
|
||
| 3. **Flowchart Creation** | ||
| - Develop flowcharts to visually represent the script's logic and workflow. | ||
| - Use `mermaid` syntax for creating flowcharts. | ||
| - For environments that may have issues with complex Mermaid diagrams, include a simplified text-based flowchart alternative. | ||
| - For scripts having related functionality, create combined or linked flowcharts to show interactions. | ||
| - Use standard flowchart symbols for processes, decisions, inputs/outputs, and connectors. | ||
| - Ensure flowcharts are clear, concise, and accurately reflect the script's functionality. | ||
| - Include annotations or notes for complex logic or important details. | ||
| - Store flowcharts in a dedicated directory within the project for easy reference. | ||
|
|
||
| 4. **Sequence Diagrams** | ||
| - Create sequence diagrams to illustrate interactions between components or modules. | ||
| - Use `mermaid` syntax for creating sequence diagrams. | ||
| - For environments that may have issues with complex Mermaid diagrams, include a simplified text-based sequence diagram alternative. | ||
| - Ensure diagrams clearly show the order of operations and interactions. | ||
| - Include annotations for clarity where necessary. | ||
|
|
||
| 5. **LLD Preparation** | ||
| - Prepare a Low-Level Design (LLD) document outlining: | ||
| - Detailed design specifications | ||
| - Data structures and algorithms | ||
| - Pseudocode or code snippets | ||
| - Interface definitions | ||
| - Error handling and edge cases | ||
|
|
||
| 5. **Fine tuning** | ||
| - Do not create implementation roadmap markdown files. | ||
| - Do not suggest timelines or planning details for execution. | ||
|
|
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging now. Please change it to develop branch once dcm-agent release version with logupload lib support is released.