Skip to content
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

refactor(test_utils): return parser as optional #9391

Merged
merged 6 commits into from
Dec 3, 2024

Conversation

zulfaqar-azmi-t4
Copy link
Contributor

Description

It is possible the the parser function is being used incorrectly, which will return in correct results.

This PR refactor the function to return optional instead.

Related links

Parent Issue:

  • Link

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added component:planning Route planning, decision-making, and navigation. (auto-assigned) component:common Common packages from the autoware-common repository. (auto-assigned) labels Nov 20, 2024
Copy link

github-actions bot commented Nov 20, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Nov 20, 2024
Copy link

codecov bot commented Nov 20, 2024

Codecov Report

Attention: Patch coverage is 60.71429% with 11 lines in your changes missing coverage. Please review.

Project coverage is 29.50%. Comparing base (89c1800) to head (e3c74c5).
Report is 47 commits behind head on main.

Files with missing lines Patch % Lines
...ommon/autoware_test_utils/src/mock_data_parser.cpp 69.23% 2 Missing and 2 partials ⚠️
...est_manager/src/autoware_planning_test_manager.cpp 63.63% 4 Missing ⚠️
...on/autoware_test_utils/src/autoware_test_utils.cpp 25.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9391   +/-   ##
=======================================
  Coverage   29.49%   29.50%           
=======================================
  Files        1439     1443    +4     
  Lines      108495   108540   +45     
  Branches    41479    41483    +4     
=======================================
+ Hits        32005    32026   +21     
- Misses      73380    73401   +21     
- Partials     3110     3113    +3     
Flag Coverage Δ *Carryforward flag
differential 31.44% <60.71%> (?)
total 29.49% <ø> (-0.01%) ⬇️ Carriedforward from d3f3f65

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the refactor-test-utils-optional branch from 64e5ef4 to 57f015b Compare November 22, 2024 00:58
@soblin soblin enabled auto-merge (squash) November 25, 2024 03:56
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the refactor-test-utils-optional branch from a8b2547 to ab98044 Compare November 26, 2024 00:24
@soblin
Copy link
Contributor

soblin commented Nov 26, 2024

@mkquda Can you approve this PR ?

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the refactor-test-utils-optional branch from 2285342 to c421b07 Compare November 28, 2024 02:35
@github-actions github-actions bot added the type:ci Continuous Integration (CI) processes and testing. (auto-assigned) label Nov 28, 2024
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the refactor-test-utils-optional branch from f73aede to e3c74c5 Compare November 28, 2024 04:49
@github-actions github-actions bot removed the type:ci Continuous Integration (CI) processes and testing. (auto-assigned) label Nov 28, 2024
@soblin soblin merged commit 78ceed7 into autowarefoundation:main Dec 3, 2024
30 of 32 checks passed
@soblin soblin deleted the refactor-test-utils-optional branch December 3, 2024 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:common Common packages from the autoware-common repository. (auto-assigned) component:planning Route planning, decision-making, and navigation. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants