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

Fix use of stagingDir #52

Merged
merged 3 commits into from
Jan 15, 2025
Merged

Fix use of stagingDir #52

merged 3 commits into from
Jan 15, 2025

Conversation

kalisp
Copy link
Member

@kalisp kalisp commented Jan 14, 2025

Changelog Description

Use stagingDir on instance only if it is explicitly set as custom, in other case fall back to old implementation which produces baking script next in work/../renders.

Additional review information

This solves issue in extract_review_intermediates when now there was stagingDir on instance suddenly. This resulted in creation of baking script in tempdir which got purged at the end of publishing via Clean Up plugin.

This PR is variant of similar issue in Maya ynput/ayon-maya#212

Testing notes:

  1. publish in Nuke via Deadline
  2. baking step shouldnt fail

Use stagingDir on instance only if it is explicitly set as custom, in other case fall back to old implementation which produces baking script next in `work/../renders`
stagingDir_is_custom is available only in 1.0.13
@kalisp kalisp added the type: bug Something isn't working label Jan 14, 2025
@kalisp kalisp self-assigned this Jan 14, 2025
Copy link
Member

@jakubjezek001 jakubjezek001 left a comment

Choose a reason for hiding this comment

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

Looking good, but I let @robin-ynput judge if this is a solid ground.

Copy link
Contributor

@robin-ynput robin-ynput left a comment

Choose a reason for hiding this comment

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

@kalisp I hope you don't mind me pushing on the top of you PR.

When testing these changes, I realized Nuke staging directory was not working as expected after ynput/ayon-core#1069, so I've added the necessary code changes.

Please note that it will also require this fix in ayon-core to behave properly: ynput/ayon-core#1084

@kalisp kalisp merged commit aee0fbe into develop Jan 15, 2025
1 check passed
@kalisp
Copy link
Member Author

kalisp commented Jan 15, 2025

Tested, works.

@kalisp kalisp deleted the bugfix/check_if_staging_is_custom branch January 15, 2025 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants