feat: Arnold licensing error for mtoa5.4.7.1 #236
+4
−2
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.
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:
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 gotRequired test coverage of 41.0% reached. Total coverage: 44.05%
Yes. The result is here:
MayaUnitTest.txt
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](https://private-user-images.githubusercontent.com/55154081/410679842-876a3bc1-4dfa-4f5c-a664-0a74b537a0ea.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDU0ODAsIm5iZiI6MTczOTYwNTE4MCwicGF0aCI6Ii81NTE1NDA4MS80MTA2Nzk4NDItODc2YTNiYzEtNGRmYS00ZjVjLWE2NjQtMGE3NGI1MzdhMGVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA3Mzk0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEwYzhhMDNmZjk3YWE5NTY1NGYwZjA4ODQ1NzRjMTU5M2Q5NzU0NGNkZjVhM2I4MTIyNTY3OWU2M2M3ZGM2YTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iwg51AE22rISkXZ4iBHQTk4sbXzxweHWtuHjeydDOBs)
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.