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!: path handling to use std::filesystem #3308

Merged
merged 20 commits into from
Sep 9, 2024

Conversation

AJPfleger
Copy link
Contributor

Switch to using std::filesystem for path operations to modernize code and improve readability.

@AJPfleger AJPfleger added this to the next milestone Jun 18, 2024
@github-actions github-actions bot added the Component - Core Affects the Core module label Jun 18, 2024
Copy link

github-actions bot commented Jun 18, 2024

📊: Physics performance monitoring for bb70544

Full contents

physmon summary

Copy link

codecov bot commented Jun 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 47.31%. Comparing base (eb8848f) to head (bd50b02).
Report is 4 commits behind head on main.

Files Patch % Lines
Core/src/Visualization/GeometryView3D.cpp 0.00% 1 Missing and 5 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3308   +/-   ##
=======================================
  Coverage   47.31%   47.31%           
=======================================
  Files         512      512           
  Lines       30440    30440           
  Branches    14795    14796    +1     
=======================================
  Hits        14403    14403           
+ Misses       5404     5403    -1     
- Partials    10633    10634    +1     

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

stephenswat
stephenswat previously approved these changes Jun 19, 2024
Copy link
Member

@stephenswat stephenswat left a comment

Choose a reason for hiding this comment

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

This looks much more robust. Nice!

@acts-policybot acts-policybot bot dismissed stephenswat’s stale review June 19, 2024 11:28

Invalidated by push of 995e540

This reverts commit 995e540.
@benjaminhuth
Copy link
Member

benjaminhuth commented Jun 19, 2024

Hmm I wonder: Do we need joinPaths at all? Or can't we just switch wo working completely with std::filesystem::path objects here? and only use the / operator?

Same with getWorkingDirectory, I could imagine to just use the native function instead of implementing it through std::filesystem.

@AJPfleger AJPfleger marked this pull request as ready for review July 5, 2024 15:24
Core/src/Visualization/GeometryView3D.cpp Outdated Show resolved Hide resolved
Core/src/Visualization/GeometryView3D.cpp Outdated Show resolved Hide resolved
Core/src/Visualization/GeometryView3D.cpp Outdated Show resolved Hide resolved
@AJPfleger AJPfleger marked this pull request as draft August 30, 2024 15:06
@github-actions github-actions bot added the Component - Examples Affects the Examples module label Aug 31, 2024
@AJPfleger AJPfleger changed the title refactor: path handling to use std::filesystem refactor!: path handling to use std::filesystem Sep 3, 2024
@AJPfleger AJPfleger removed this from the next milestone Sep 3, 2024
@AJPfleger AJPfleger added this to the v37.0.0 milestone Sep 3, 2024
@AJPfleger AJPfleger mentioned this pull request Sep 3, 2024
@AJPfleger
Copy link
Contributor Author

sonarcloud: "Use std::format instead of concatenating pieces manually."

compiler: ༼;´༎ຶ ۝ ༎ຶ༽

@AJPfleger AJPfleger marked this pull request as ready for review September 5, 2024 13:53
Copy link
Member

@stephenswat stephenswat left a comment

Choose a reason for hiding this comment

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

Looks super nice. 😄

Copy link

sonarcloud bot commented Sep 9, 2024

@kodiakhq kodiakhq bot merged commit 74d9aa2 into acts-project:main Sep 9, 2024
42 checks passed
@github-actions github-actions bot removed the automerge label Sep 9, 2024
@AJPfleger AJPfleger deleted the path-max branch September 9, 2024 18:19
@acts-project-service acts-project-service added the Breaks Athena build This PR breaks the Athena build label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaks Athena build This PR breaks the Athena build Component - Core Affects the Core module Component - Examples Affects the Examples module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants