Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions depsBundle.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

from __future__ import annotations

import re
Expand Down
2 changes: 2 additions & 0 deletions depsBundle.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.


# This script is called in a shell subprocess.
# If editing this script, please see the security considerations
Expand Down
2 changes: 2 additions & 0 deletions install_builder/deadline-cloud-for-nuke.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -->

<component>
<name>deadline_cloud_for_nuke</name>
<description>Deadline Cloud for Nuke 14.0-15.0</description>
Expand Down
2 changes: 2 additions & 0 deletions installer/DeadlineCloudForNuke.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -->

<project>
<shortName>DeadlineCloudForNukeSubmitter</shortName>
<fullName>AWS Deadline Cloud for Nuke Submitter</fullName>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

assetReferences:
inputs:
directories: []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

parameterValues:
- name: Frames
value: 1-100
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

specificationVersion: jobtemplate-2023-09
name: cwd-path.nk
parameterDefinitions:
Expand Down Expand Up @@ -125,4 +127,4 @@ steps:
- file://{{ Task.File.runData }}
cancelation:
mode: NOTIFY_THEN_TERMINATE
timeout: 518400
timeout: 518400
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

assetReferences:
inputs:
directories: []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

parameterValues:
- name: Frames
value: 3-7
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

specificationVersion: jobtemplate-2023-09
name: frame.nk
parameterDefinitions:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

assetReferences:
inputs:
directories: []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

parameterValues:
- name: Frames
value: 1-100
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

specificationVersion: jobtemplate-2023-09
name: group-read.nk
parameterDefinitions:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

assetReferences:
inputs:
directories: []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

parameterValues:
- name: Frames
value: 1-100
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

specificationVersion: jobtemplate-2023-09
name: multi-load-save.nk
parameterDefinitions:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

assetReferences:
inputs:
directories: []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

parameterValues:
- name: Frames
value: 1-100
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

specificationVersion: jobtemplate-2023-09
name: noise-saver.nk
parameterDefinitions:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

assetReferences:
inputs:
directories:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

parameterValues:
- name: Frames
value: 1-100
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

specificationVersion: jobtemplate-2023-09
name: ocio.nk
parameterDefinitions:
Expand Down
4 changes: 3 additions & 1 deletion pipeline/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

# Set the -e option
set -e

Expand All @@ -7,4 +9,4 @@ pip install --upgrade hatch
pip install --upgrade twine
hatch -v run codebuild:lint
hatch run codebuild:test
hatch -v run codebuild:build
hatch -v run codebuild:build
4 changes: 3 additions & 1 deletion pipeline/e2e.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/sh
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

# Set the -e option
set -e

pip install --upgrade pip
pip install --upgrade hatch
hatch run e2e:test
hatch run e2e:test
4 changes: 3 additions & 1 deletion pipeline/integ.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/sh
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

# Set the -e option
set -e

pip install --upgrade pip
pip install --upgrade hatch
hatch run integ:test
hatch run integ:test
4 changes: 3 additions & 1 deletion pipeline/publish.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

# Set the -e option
set -e

./pipeline/build.sh
twine upload --repository codeartifact dist/* --verbose
twine upload --repository codeartifact dist/* --verbose
107 changes: 76 additions & 31 deletions scripts/add_copyright_headers.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
#!/bin/bash
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
set -euxo pipefail

set -euo pipefail

if [ $# -eq 0 ]; then
echo "Usage: add-copyright-headers <file.java> ..." >&2
exit 1
fi

for file in "$@"; do
if ! head -1 | grep 'Copyright ' "$file" >/dev/null; then
process_file() {
local file="$1"
if ! head -2 "$file" | grep 'Copyright ' > /dev/null; then
case $file in
*.java)
CONTENT=$(cat "$file")
Expand All @@ -18,60 +13,110 @@ for file in "$@"; do

$CONTENT
EOF
;;
;;
*.py)
if head -1 "$file" | grep -q '^#!'; then
# If file has shebang, preserve it
SHEBANG=$(head -1 "$file")
CONTENT=$(tail -n +2 "$file")
cat > "$file" <<EOF
$SHEBANG
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

$CONTENT
EOF
else
CONTENT=$(cat "$file")
cat > "$file" <<EOF
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

$CONTENT
EOF
fi
;;
*.yml|*.yaml)
CONTENT=$(cat "$file")
cat > "$file" <<EOF
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

$CONTENT
EOF
;;
*.xml)
FIRSTLINE=$(head -n 1 "$file")
if echo "$FIRSTLINE" | grep '^<?xml' >/dev/null; then
if head -1 "$file" | grep -q '<?xml'; then
# Preserve XML declaration
XMLDEC=$(head -1 "$file")
CONTENT=$(tail -n +2 "$file")
cat > "$file" <<EOF
$FIRSTLINE
$XMLDEC
<!-- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -->

$CONTENT
EOF
else
CONTENT=$(cat "$file")
cat > "$file" <<EOF
<!-- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -->

$CONTENT
EOF
fi
;;
*.py)
;;
*.ps1)
CONTENT=$(cat "$file")
cat > "$file" <<EOF
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

$CONTENT
EOF
;;
*.yml)
CONTENT=$(cat "$file")
cat > "$file" <<EOF
;;
*.sh)
if head -1 "$file" | grep -q '^#!'; then
# If file has shebang, preserve it
SHEBANG=$(head -1 "$file")
CONTENT=$(tail -n +2 "$file")
cat > "$file" <<EOF
$SHEBANG
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

$CONTENT
EOF
;;
*.cfg)
CONTENT=$(cat "$file")
cat > "$file" <<EOF
else
CONTENT=$(cat "$file")
cat > "$file" <<EOF
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

$CONTENT
EOF
;;
*.ini)
fi
;;
*.cfg|*.ini)
CONTENT=$(cat "$file")
cat > "$file" <<EOF
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

$CONTENT
EOF
;;
*)
echo "Skipping file in unrecognized format: $file" >&2
exit 1
;;
;;
esac
fi
done
}

# If no arguments provided, process tracked files recursively
if [ $# -eq 0 ]; then
# Get all tracked files that match our patterns, respecting .gitignore
# and excluding .github directory
git ls-files "*.java" "*.xml" "*.py" "*.yml" "*.yaml" "*.cfg" "*.ini" "*.ps1" "*.sh" |
grep -v "^\.github/" |
while IFS= read -r file; do
process_file "$file"
done
else
# Process specific files provided as arguments
for file in "$@"; do
# Skip files in .github directory
if [[ $file != .github/* ]]; then
process_file "$file"
fi
done
fi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

specificationVersion: 'jobtemplate-2023-09'
parameterDefinitions:
- name: AdaptorWheels
Expand Down
2 changes: 2 additions & 0 deletions src/deadline/nuke_submitter/default_nuke_job_template.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

specificationVersion: jobtemplate-2023-09
name: Default Nuke Job Template
parameterDefinitions:
Expand Down
Loading