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

feat: Arnold licensing error for mtoa5.4.7.1 #236

Open
wants to merge 2 commits into
base: mainline
Choose a base branch
from

Conversation

ZainAallii
Copy link

Fixes: NA

What was the problem/requirement? (What/Why)

A customer reported an issue where their Maya job succeeds even when abort_on_license_fail option is enabled and license checkout for Arnold fails. This is happening because the string which we are trying to match in adaptor.py line#217 is different from what is actually printing in the log. What was the solution? (How)
I changed the string to catch both the error messages:

  • aborting render because the abort_on_license_fail option was enabled
  • borting render because this is a batch render and abort_on_license_fail option is enabled

What is the impact of this change?

It will catch Arnold license error an fail the job.

How was this change tested?

I ran the unit test by running hatch run all:test, I got Required test coverage of 41.0% reached. Total coverage: 44.05%

Did you run the "Job Bundle Output Tests"? If not, why not? If so, paste the test results here.

No, I ran the adaptor locally and tested it with real scene file. I did not have any licenses for Arnold so my job failed on the error message.
MayaAdaptor
Check the logs:
MayaAdaptorLocalRun.txt

Was this change documented?

NA

Is this a breaking change?

No

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ZainAallii ZainAallii requested a review from a team as a code owner February 7, 2025 23:08
@@ -866,7 +866,9 @@ def test_error_on_arnold_license_fail(
init_data["error_on_arnold_license_fail"] = error_on_arnold_license_fail
adaptor = MayaAdaptor(init_data)
expected_regex_list = [
re.compile("(aborting render because the abort_on_license_fail option was enabled)")
re.compile(
Copy link
Contributor

@jairaws jairaws Feb 14, 2025

Choose a reason for hiding this comment

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

This unit test only checks that the expected regexes are in the list of callback regexes. Do we have a unit test to check that the error message is caught for all cases? If so, we should update that unit test to include the new case. If not, we should add a unit test to validate that the error messages are caught.

Copy link
Author

Choose a reason for hiding this comment

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

I did test it on with Maya Arnold job (MTOA5.4.7.1) manually. Please check the logs attached https://github.com/user-attachments/files/18714999/MayaAdaptorLocalRun.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants