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

ign -> gz Environment Variable Migration : gz-rendering #639

Merged
merged 2 commits into from
Jun 7, 2022

Conversation

methylDragon
Copy link
Contributor

See: gazebo-tooling/release-tools#734

Actually no environment variables need to be migrated (though how it's been implemented means there isn't really a way to emit warnings...)

They were implemented like so in the namespace migration:

  const char *env = std::getenv("GZ_RENDERING_RESOURCE_PATH");
  env = (env) ? env : std::getenv("IGN_RENDERING_RESOURCE_PATH");

@codecov
Copy link

codecov bot commented Jun 4, 2022

Codecov Report

Merging #639 (3892ad9) into main (bc2d7ba) will decrease coverage by 0.02%.
The diff coverage is 42.85%.

❗ Current head 3892ad9 differs from pull request most recent head 5192651. Consider uploading reports for the commit 5192651 to get more accurate results

@@            Coverage Diff             @@
##             main     #639      +/-   ##
==========================================
- Coverage   53.61%   53.59%   -0.03%     
==========================================
  Files         214      214              
  Lines       21369    21397      +28     
==========================================
+ Hits        11457    11467      +10     
- Misses       9912     9930      +18     
Impacted Files Coverage Δ
ogre/src/OgreDepthCamera.cc 0.00% <0.00%> (ø)
ogre/src/OgreMaterial.cc 40.30% <0.00%> (-0.50%) ⬇️
ogre/src/OgreRTShaderSystem.cc 43.84% <60.00%> (+0.09%) ⬆️
ogre/src/OgreRenderEngine.cc 73.45% <60.00%> (-0.29%) ⬇️
ogre2/src/Ogre2RenderEngine.cc 78.32% <60.00%> (-0.50%) ⬇️
src/base/BaseScene.cc 72.54% <60.00%> (-0.13%) ⬇️

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 bc2d7ba...5192651. Read the comment docs.

@chapulina chapulina added the ign to gz Renaming Ignition to Gazebo. label Jun 6, 2022
@chapulina chapulina self-requested a review June 6, 2022 16:02
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

I just noticed that we're not printing warnings when the user uses the IGN_ vars. Would you mind adding warnings as part of this PR?

@methylDragon
Copy link
Contributor Author

I just noticed that we're not printing warnings when the user uses the IGN_ vars. Would you mind adding warnings as part of this PR?

5192651 !

Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

@chapulina chapulina merged commit 7dcb892 into main Jun 7, 2022
@chapulina chapulina deleted the env_var_migration branch June 7, 2022 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden ign to gz Renaming Ignition to Gazebo.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants