Skip to content

rocAL Serialize PR 6 : Add Serialization tests#412

Merged
kiritigowda merged 214 commits intoROCm:developfrom
fiona-gladwin:fg/serialize_test
Jan 8, 2026
Merged

rocAL Serialize PR 6 : Add Serialization tests#412
kiritigowda merged 214 commits intoROCm:developfrom
fiona-gladwin:fg/serialize_test

Conversation

@fiona-gladwin
Copy link
Copy Markdown
Contributor

Motivation

This PR adds a new serialization test for the rocAL library to validate pipeline serialization functionality. The test creates a simple image processing pipeline and verifies the serialization APIs work correctly.

Technical Details

  • Introduces a new C++ test that creates a rocAL pipeline with JPEG source, label reader, and brightness augmentation
  • Tests the rocalSerialize and rocalGetSerializedString APIs
  • Includes build configuration and documentation

Test Plan

  • Run serialization tests as mentioned in the README.md
  • The tests are also added as part of the make test

Test Result

  • The serialization pipeline must run successfully without any errors.

NOTE : To be merged after PR #411

fiona-gladwin and others added 30 commits September 22, 2025 02:30
Remove the usage of API enums in internal node files
Add support to register all internal enums
Creates an argument instance for each arg passed in the Node
Handles different argument types i.e parameters, vectors, enums and predefined types
Add support to serialize the args and pipeline details
Add support to serialize the tensors.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Create single constructor with check for different data types in Argument class
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #412      +/-   ##
===========================================
+ Coverage    79.62%   80.29%   +0.66%     
===========================================
  Files          281      281              
  Lines        21563    21563              
===========================================
+ Hits         17169    17312     +143     
+ Misses        4394     4251     -143     

see 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread tests/cpp_api/serialization_test/CMakeLists.txt Outdated
@LakshmiKumar23 LakshmiKumar23 self-requested a review December 19, 2025 22:02
Copy link
Copy Markdown
Collaborator

@rrawther rrawther left a comment

Choose a reason for hiding this comment

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

please address review comments

Comment thread tests/cpp_api/serialization_test/serialization_test.cpp Outdated
Comment thread tests/cpp_api/serialization_test/serialization_test.cpp Outdated
Comment thread tests/cpp_api/serialization_test/CMakeLists.txt Outdated
Comment thread tests/cpp_api/serialization_test/README.md Outdated
Comment thread tests/cpp_api/serialization_test/serialization_test.cpp
Comment thread tests/cpp_api/serialization_test/serialization_test.cpp
@fiona-gladwin
Copy link
Copy Markdown
Contributor Author

@LakshmiKumar23 @rrawther Addressed all review comments

Copy link
Copy Markdown
Collaborator

@rrawther rrawther left a comment

Choose a reason for hiding this comment

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

Please address the comments

Comment on lines +198 to +199
compression_params.push_back(cv::IMWRITE_PNG_COMPRESSION);
compression_params.push_back(9);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is right. I think we don't need compression parameters for OpenCV 4.0

@kiritigowda kiritigowda merged commit 8ac8e2c into ROCm:develop Jan 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants