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

MAYA-106529 - MayaUSD: Cleanup old UFE conditionals #746

Merged
merged 4 commits into from
Aug 29, 2020

Conversation

seando-adsk
Copy link
Collaborator

MAYA-106529 - MayaUSD: Cleanup old UFE conditionals

  • The latest Maya PR118 has UFE 0.2.19, so removed any special UFE code before that.

* The latest Maya PR118 has UFE 0.2.19, so removed any special
  UFE code before that.
Copy link
Collaborator Author

@seando-adsk seando-adsk left a comment

Choose a reason for hiding this comment

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

The current Maya preview release PR118 has UFE 0.2.19, so anything before that was removed. We do not need to support anything but the current Maya preview release.

lib/mayaUsd/ufe/Global.cpp Show resolved Hide resolved
lib/mayaUsd/ufe/StagesSubject.cpp Show resolved Hide resolved
lib/mayaUsd/ufe/StagesSubject.cpp Show resolved Hide resolved
lib/mayaUsd/ufe/UsdContextOps.cpp Show resolved Hide resolved
lib/mayaUsd/ufe/UsdHierarchy.cpp Show resolved Hide resolved
lib/mayaUsd/ufe/UsdTransform3d.cpp Show resolved Hide resolved
lib/mayaUsd/ufe/UsdUndoCreateGroupCommand.cpp Show resolved Hide resolved
testAttribute.py
testAttributes.py
testComboCmd.py
testContextOps.py
testDeleteCmd_v2.py
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I split out the UFE v2 delete test into a separate file to include here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You can see this block of tests are all V2 only. So most of the skipif tags have been removed. I had to keep a couple since they are v0.20.0.

test/lib/ufe/testDeleteCmd.py Show resolved Hide resolved
UFE Feature : SceneItemOps
Maya Feature : delete
Action : Remove object from scene.
Applied On Command Arguments:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This entire file is a copy of the original with just this one test. I changed this comment to be from command args (instead of selection).

@seando-adsk seando-adsk added core Related to core library ufe-usd Related to UFE-USD plugin in Maya-Usd labels Aug 26, 2020
* Put "test" back in file "testDeleteCmd.py" and removed new
  "testDeleteCmd_v2.py". Created new ufeUtils.ufeFeatureSetVersion()
  for use by tests when a v2 (or greater) check is needed.
* Removed old MayaPR checks.
@@ -327,7 +327,6 @@ def testComboMaya(self):

self.runTestCombo(expectedTRS)

@unittest.skipUnless(mayaUtils.previewReleaseVersion() >= 115, 'Requires Maya fixes only available in Maya Preview Release 115 or later.')
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The current Maya PR is PR118, so we don't need these older checks.

test/lib/ufe/testDeleteCmd.py Show resolved Hide resolved
Copy link
Collaborator

@ppt-adsk ppt-adsk left a comment

Choose a reason for hiding this comment

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

Almost there. Thanks for doing this!

Comment on lines +61 to +64

If you need to test for a specific UFE preview release version then check
the cmake variable UFE_PREVIEW_VERSION_NUM. This is also set as an env
for the python tests.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy-paste damage.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ack, my mistake, got confused with

MAYA_PREVIEW_RELEASE_VERSION_OVERRIDE is defined, return its value instead.

and clearly they're not the same.

Comment on lines +61 to +64

If you need to test for a specific UFE preview release version then check
the cmake variable UFE_PREVIEW_VERSION_NUM. This is also set as an env
for the python tests.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ack, my mistake, got confused with

MAYA_PREVIEW_RELEASE_VERSION_OVERRIDE is defined, return its value instead.

and clearly they're not the same.

* Put back accidental deletion of UFE v1 specific code.
* Added conditional for test that requires UFE v2.
@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Aug 28, 2020
@seando-adsk
Copy link
Collaborator Author

@kxl-adsk My latest maya-usd preflight fixed all the real preflight problem, but there was a glitch with master Windows python3 build. My previous preflight passed on that platform.

@kxl-adsk kxl-adsk merged commit 3673f46 into dev Aug 29, 2020
@kxl-adsk kxl-adsk deleted the donnels/106529/cleanup_old_ufe_conditionals branch August 29, 2020 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to core library ready-for-merge Development process is finished, PR is ready for merge ufe-usd Related to UFE-USD plugin in Maya-Usd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants