From 01de7253712d39d6981afce515f87150e25d32a2 Mon Sep 17 00:00:00 2001 From: Cassandra Lacombe Date: Tue, 5 Oct 2021 15:52:57 -0400 Subject: [PATCH] Package Signature on CI As part of the package signing initiative, we'd like bundled packages to be prepared for upcoming constraints regarding the need to have packages with a valid signature during APV testing. Because of this, we are going through all bundled packages' repositories creating a PR that would enable package signing on your packages. With signing enabled, upm-ci will perform an extra step where it will send each package to a signing service and then generate the final signed artifacts. Internally, in an attempt to ensure that everything works, we are running yamato tests where all bundled packages (including yours) are signed and validated, proving that the packages in this repository should yield no errors. The validation step is also performed in all platforms. In the case that any error does arise, this can be simply reverted back by removing the environment variable, UPMCI_ENABLE_PACKAGE_SIGNING in the publishing jobs. For more information, please refer to: https://confluence.unity3d.com/display/PAK/Package+Signature You can contact us through: #team-pkd-176-internal-package-signing @cassandra & @felipemunoz --- .yamato/postprocessing_publish.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.yamato/postprocessing_publish.yml b/.yamato/postprocessing_publish.yml index ecb6c0f0cea..6ae5d620a97 100644 --- a/.yamato/postprocessing_publish.yml +++ b/.yamato/postprocessing_publish.yml @@ -54,19 +54,6 @@ test_platforms: {{ name }}_test_trigger: name: {{ name }} - Tests Trigger - agent: - type: Unity::VM - image: package-ci/win10:stable - flavor: b1.large - commands: - - dir - artifacts: - logs: - paths: - - "upm-ci~/test-results/**/*" - packages: - paths: - - "upm-ci~/packages/**/*" dependencies: - .yamato/postprocessing_publish.yml#{{ name }}_pack {% for editor in test_editors %} @@ -81,6 +68,8 @@ test_platforms: type: Unity::VM image: package-ci/win10:stable flavor: b1.large + variables: + UPMCI_ENABLE_PACKAGE_SIGNING: 1 commands: - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm - upm-ci package publish --package-path com.unity.postprocessing @@ -103,6 +92,8 @@ test_platforms: type: Unity::VM image: package-ci/win10:stable flavor: b1.large + variables: + UPMCI_ENABLE_PACKAGE_SIGNING: 1 commands: - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm - upm-ci package publish --dry-run --package-path com.unity.postprocessing