-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into enhancement/AY-6086_adding-parents-to-tem…
…plate-keys # Conflicts: # client/ayon_core/plugins/publish/collect_anatomy_instance_data.py
- Loading branch information
Showing
37 changed files
with
284 additions
and
132 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: 🔸Auto assign pr | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
pr_number: | ||
type: number | ||
description: "Run workflow for this PR number" | ||
required: true | ||
project_id: | ||
type: number | ||
description: "Github Project Number" | ||
required: true | ||
default: 16 | ||
pull_request: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
auto-assign-pr: | ||
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | ||
uses: ynput/ops-repo-automation/.github/workflows/pr_to_project.yml@main | ||
with: | ||
repo: "${{ github.repository }}" | ||
project_id: "${{ inputs.project_id }}" | ||
pull_request_number: "${{ github.event.pull_request.number || inputs.pr_number }}" | ||
secrets: | ||
token: ${{ secrets.YNPUT_BOT_TOKEN }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: 🔎 Validate PR Labels | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- labeled | ||
- unlabeled | ||
|
||
jobs: | ||
validate-type-label: | ||
uses: ynput/ops-repo-automation/.github/workflows/validate_pr_labels.yml@main | ||
with: | ||
repo: "${{ github.repository }}" | ||
pull_request_number: ${{ github.event.pull_request.number }} | ||
query_prefix: "type: " | ||
secrets: | ||
token: ${{ secrets.YNPUT_BOT_TOKEN }} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
36 changes: 36 additions & 0 deletions
36
client/ayon_core/plugins/publish/collect_farm_env_variables.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import os | ||
|
||
import pyblish.api | ||
|
||
from ayon_core.pipeline.publish import FARM_JOB_ENV_DATA_KEY | ||
|
||
|
||
class CollectCoreJobEnvVars(pyblish.api.ContextPlugin): | ||
"""Collect set of environment variables to submit with deadline jobs""" | ||
order = pyblish.api.CollectorOrder - 0.45 | ||
label = "AYON core Farm Environment Variables" | ||
targets = ["local"] | ||
|
||
def process(self, context): | ||
env = context.data.setdefault(FARM_JOB_ENV_DATA_KEY, {}) | ||
|
||
# Disable colored logs on farm | ||
env["AYON_LOG_NO_COLORS"] = "1" | ||
|
||
for key in [ | ||
"AYON_BUNDLE_NAME", | ||
"AYON_DEFAULT_SETTINGS_VARIANT", | ||
"AYON_USERNAME", | ||
"AYON_PROJECT_NAME", | ||
"AYON_FOLDER_PATH", | ||
"AYON_TASK_NAME", | ||
"AYON_LOG_NO_COLORS", | ||
"AYON_IN_TESTS", | ||
# NOTE Not sure why workdir is needed? | ||
"AYON_WORKDIR", | ||
]: | ||
value = os.getenv(key) | ||
if value: | ||
self.log.debug(f"Setting job env: {key}: {value}") | ||
env[key] = value | ||
|
This file contains 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
Oops, something went wrong.