[tests] Fix test_submit when launched through a rez env#3078
Merged
[tests] Fix test_submit when launched through a rez env#3078
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3078 +/- ##
========================================
Coverage 83.47% 83.47%
========================================
Files 81 81
Lines 10300 10301 +1
========================================
+ Hits 8598 8599 +1
Misses 1702 1702 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
60c9ae6 to
6150c66
Compare
2222hhh
approved these changes
Apr 15, 2026
6150c66 to
05e78d8
Compare
|
05e78d8 to
8750415
Compare
8750415 to
2b8435f
Compare
cbentejac
approved these changes
Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
When we launched the
test_submittest from a rez env we have a Compatibility issue error :Then when the task launches :
MESHROOM_PLUGINS_PATHrez envcommandenv.MESHROOM_PLUGINS_PATH.append(...)then it starts by resetting theMESHROOM_PLUGINS_PATHenv variable, and we loose the content that we set here from the farm process.Fix
The way I fixed the issue is by resetting rez variables before the test process, and therefore when the submitter is registered in the test, tasks are created without rez. And then, we have the correct value for
MESHROOM_PLUGINS_PATHand the test succeeds.