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

Fixed parentPath() return when input has no parent #307

Merged
merged 3 commits into from
Feb 9, 2022

Conversation

jennuine
Copy link
Contributor

@jennuine jennuine commented Feb 9, 2022

🦟 Bug fix

Summary

With the parentPath updates from #238 , parentPath returns an empty string when there is no parent. This caused INTEGRATION_camera_video_record_system test to fail. I added a fix to match the behavior from ign-common5. Feel free to close if ign-gazebo's CameraVideoRecorder should be fixed instead.

Also, fixed some codecheck errors. I wonder why it's not being picked up by our linters?

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@jennuine jennuine requested a review from mjcarroll as a code owner February 9, 2022 02:31
@github-actions github-actions bot added the 🌱 garden Ignition Garden label Feb 9, 2022
@jennuine jennuine changed the title Jennuine/parent path Fixed parentPath() return when input has no parent Feb 9, 2022
@codecov
Copy link

codecov bot commented Feb 9, 2022

Codecov Report

Merging #307 (ea1e723) into main (e79b31f) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #307   +/-   ##
=======================================
  Coverage   76.75%   76.75%           
=======================================
  Files          75       75           
  Lines       10325    10327    +2     
=======================================
+ Hits         7925     7927    +2     
  Misses       2400     2400           
Impacted Files Coverage Δ
src/Timer.cc 100.00% <ø> (ø)
src/Util.cc 84.23% <ø> (ø)
src/Filesystem.cc 96.15% <100.00%> (+0.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e79b31f...ea1e723. Read the comment docs.

@mjcarroll
Copy link
Contributor

I added a fix to match the behavior from ign-common5. Feel free to close if ign-gazebo's CameraVideoRecorder should be fixed instead.

Nope, this is correct. I would like to keep this as compatible as possible with ign-common5. Ideally, going forward, developers also have access to std::filesystem to use for other implementations if they would like.

@mjcarroll
Copy link
Contributor

I wonder why it's not being picked up by our linters?

That I don't know. I know that I generally can't run cppcheck without a bunch of false positives on focal, but the bionic CI usually keeps me honest?

@mjcarroll mjcarroll merged commit ef9e3a0 into main Feb 9, 2022
@mjcarroll mjcarroll deleted the jennuine/parentPath branch February 9, 2022 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants