diff --git a/.yamato/triggers.yml b/.yamato/triggers.yml index 611d8ff79e..78699de578 100644 --- a/.yamato/triggers.yml +++ b/.yamato/triggers.yml @@ -43,7 +43,15 @@ all_functional_tests: - path: .yamato/input-system-standalone-il2-cpp-functional-tests.yml#inputsystem-standaloneil2cppfunctionaltests_-_6000_3_-_win10 - path: .yamato/input-system-standalone-il2-cpp-functional-tests.yml#inputsystem-standaloneil2cppfunctionaltests_-_6000_6_-_macos13arm - path: .yamato/input-system-standalone-il2-cpp-functional-tests.yml#inputsystem-standaloneil2cppfunctionaltests_-_6000_6_-_win10 - - path: .yamato/wrench/promotion-jobs.yml#publish_dry_run_inputsystem + - path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_0_-_macos13 + - path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_0_-_ubuntu2204 + - path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_0_-_win10 + - path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_3_-_macos13 + - path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_3_-_ubuntu2204 + - path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_3_-_win10 + - path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_6_-_macos13arm + - path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_6_-_ubuntu2204 + - path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_6_-_win10 triggers: expression: |- NOT pull_request.draft AND diff --git a/.yamato/wrench/pvp-exemptions.json b/.yamato/wrench/pvp-exemptions.json index 8676ded099..1e29128f64 100644 --- a/.yamato/wrench/pvp-exemptions.json +++ b/.yamato/wrench/pvp-exemptions.json @@ -82,10 +82,8 @@ "InputSystem/Editor/UITKAssetEditor/Resources/NameAndParameterListViewItemTemplate.uxml" ] }, - "PVP-40-1": { - "errors": [ - "CHANGELOG.md: line 8: header must match regex: ^\\[(?.*)\\]( - (?\\d{4}-\\d{2}-\\d{2}))?$" - ] + "PVP-41-1": { + "all": true }, "PVP-91-3": { "errors": [ diff --git a/Packages/com.unity.inputsystem/CHANGELOG.md b/Packages/com.unity.inputsystem/CHANGELOG.md index d390adad33..bf52fc0bd5 100644 --- a/Packages/com.unity.inputsystem/CHANGELOG.md +++ b/Packages/com.unity.inputsystem/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to the input system package will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [Unreleased] - yyyy-mm-dd +## [Unreleased] ### Fixed diff --git a/Tools/CI/CI-CHANGES.md b/Tools/CI/CI-CHANGES.md index 2b7ad6fbc6..a1576986d9 100644 --- a/Tools/CI/CI-CHANGES.md +++ b/Tools/CI/CI-CHANGES.md @@ -4,6 +4,26 @@ This file documents notable changes made to the CI cookbook (`Tools/CI/`), inclu --- +## Gate PRs on Validate instead of Publish Dry Run +**Branch:** `anthony/pr-gate-on-validate` +**Date:** November 2026 +**Author:** Anthony Yakovlev + +### Summary +Since mid-August 2026, "Publish Dry Run inputsystem" failed on every PR with PVP-40-1 (`CHANGELOG.md: line 8: header must match regex`). The package tooling team confirmed this is expected. `upm-pvp publish --dry-run` has the same requirements as a real publish and doesn't read `.yamato/wrench/pvp-exemptions.json`, and a package can't be published with an `[Unreleased]` changelog section. `develop` is never in a publishable state, so the dry run can't be a PR gate. + +### Changes +- **`Recipes/Triggers.cs`:** "All Functional Tests" now depends on the Wrench "Validate - inputsystem - X - Y" jobs instead of "Publish Dry Run inputsystem". The Validate jobs run `upm-pvp require "rme PVP-160-1 supported .yamato/wrench/pvp-exemptions.json"`, so they apply our exemptions. They were already part of the PR gate, because the dry run depended on them. +- **`CHANGELOG.md`:** the in-progress header is now `## [Unreleased]` instead of `## [Unreleased] - yyyy-mm-dd`, so it passes PVP-40-1. +- **`.yamato/wrench/pvp-exemptions.json`:** removed the PVP-40-1 exemption for the placeholder header, and added `"PVP-41-1": {"all": true}` ("Changelog has no [Unreleased] section"). The PVP-41-1 docs recommend skipping it in CI during development. + +### Follow-up +- When releasing, replace `## [Unreleased]` with `## [x.y.z] - yyyy-mm-dd`, as before. +- When bumping the version after a release, add back `## [Unreleased]` without the ` - yyyy-mm-dd` placeholder. The placeholder fails PVP-40-1, which is no longer exempted. +- Run "Publish Dry Run inputsystem" manually to check the package is ready to publish, or to test CI changes. It will keep failing while the `[Unreleased]` section is there. + +--- + ## Wrench 2.12.0 Migration & CI Fixes **Branch:** `bugfix/fix-ci-failure-due-to-warnings` **Date:** June 2026 diff --git a/Tools/CI/Recipes/Triggers.cs b/Tools/CI/Recipes/Triggers.cs index f648843f7a..c43d2d24a5 100644 --- a/Tools/CI/Recipes/Triggers.cs +++ b/Tools/CI/Recipes/Triggers.cs @@ -26,6 +26,16 @@ public class Triggers : RecipeBase // Run performance build jobs on TvOS for all Unity versions. IEnumerable allTvOSPerformanceBuildJobs = new MobilePerformanceBuildJobs().AsDependencies().Where(d => d.JobId.Contains("TvOS")); + // Wrench's "Validate - inputsystem - - " jobs, which run the PVP checks with our + // .yamato/wrench/pvp-exemptions.json. Wrench doesn't expose these jobs publicly, so their ids are built + // the same way Wrench names them. If the naming changes, regenerating logs a YAM002 warning + // ("A dependency references a job that does not exist"). + IEnumerable allValidationJobs = InputSystemSettings.Instance.InputSystemPackage.UnityEditors + .SelectMany(editor => editor.EditorPlatforms.Items.Keys.Select(platformType => + new Dependency("wrench/validation-jobs", + $"validate_-_inputsystem_-_{editor.Version.Version.Replace('.', '_')}_-_{platformType.ToString().ToLowerInvariant()}"))) + .ToList(); + protected override ISet LoadJobs() => Combine.Collections(GetTriggers()).SelectJobs(); @@ -49,7 +59,9 @@ private ISet GetTriggers() .WithDependencies(allStandaloneIl2CppFunctionalTests.Where(d => !d.JobId.Contains("Ubuntu"))) .WithDependencies(allMobileFunctionalTests) .WithDependencies(allTvOSFunctionalBuildJobs) - .WithDependencies(new Dependency("wrench/promotion-jobs", "publish_dry_run_inputsystem")) + // Gate on Validate rather than on "Publish Dry Run": a dry run has the same requirements + // as a real publish, so it always fails while the changelog has an [Unreleased] section. + .WithDependencies(allValidationJobs) .WithPullRequestTrigger(pr => pr.ExcludeDraft().And().WithTargetBranch(InputSystemSettings.BranchName).And().WithoutChanges("**/*.md"), true, CancelLeftoverJobs.Always), JobBuilder.Create("Nightly trigger")