Skip to content

Commit c522e60

Browse files
K-Toneclaude
andcommitted
CHANGE: Gate PRs on Validate instead of Publish Dry Run
"Publish Dry Run inputsystem" has failed on every PR since mid-August with PVP-40-1 on the "## [Unreleased] - yyyy-mm-dd" changelog header. The package tooling team confirmed this is expected: a dry run has the same requirements as a real publish, it doesn't read .yamato/wrench/pvp-exemptions.json, and a package can't be published with an [Unreleased] section. develop is never publishable, so the dry run can't be a PR gate. - "All Functional Tests" now depends on the Validate jobs instead of the dry run. They run upm-pvp require with our exemptions file, and were already part of the gate through the dry run's dependencies. - The changelog header is now "## [Unreleased]", which passes PVP-40-1. - Replaced the PVP-40-1 exemption for the placeholder header with a PVP-41-1 exemption ("Changelog has no [Unreleased] section"), as the PVP-41-1 docs recommend during development. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 12cb9f1 commit c522e60

5 files changed

Lines changed: 45 additions & 7 deletions

File tree

‎.yamato/triggers.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,15 @@ all_functional_tests:
4343
- path: .yamato/input-system-standalone-il2-cpp-functional-tests.yml#inputsystem-standaloneil2cppfunctionaltests_-_6000_3_-_win10
4444
- path: .yamato/input-system-standalone-il2-cpp-functional-tests.yml#inputsystem-standaloneil2cppfunctionaltests_-_6000_6_-_macos13arm
4545
- path: .yamato/input-system-standalone-il2-cpp-functional-tests.yml#inputsystem-standaloneil2cppfunctionaltests_-_6000_6_-_win10
46-
- path: .yamato/wrench/promotion-jobs.yml#publish_dry_run_inputsystem
46+
- path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_0_-_macos13
47+
- path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_0_-_ubuntu2204
48+
- path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_0_-_win10
49+
- path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_3_-_macos13
50+
- path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_3_-_ubuntu2204
51+
- path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_3_-_win10
52+
- path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_6_-_macos13arm
53+
- path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_6_-_ubuntu2204
54+
- path: .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_6_-_win10
4755
triggers:
4856
expression: |-
4957
NOT pull_request.draft AND

‎.yamato/wrench/pvp-exemptions.json‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@
8282
"InputSystem/Editor/UITKAssetEditor/Resources/NameAndParameterListViewItemTemplate.uxml"
8383
]
8484
},
85-
"PVP-40-1": {
86-
"errors": [
87-
"CHANGELOG.md: line 8: header must match regex: ^\\[(?<version>.*)\\]( - (?<date>\\d{4}-\\d{2}-\\d{2}))?$"
88-
]
85+
"PVP-41-1": {
86+
"all": true
8987
},
9088
"PVP-91-3": {
9189
"errors": [

‎Packages/com.unity.inputsystem/CHANGELOG.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to the input system package will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased] - yyyy-mm-dd
8+
## [Unreleased]
99

1010
### Fixed
1111

‎Tools/CI/CI-CHANGES.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ This file documents notable changes made to the CI cookbook (`Tools/CI/`), inclu
44

55
---
66

7+
## Gate PRs on Validate instead of Publish Dry Run
8+
**Branch:** `anthony/pr-gate-on-validate`
9+
**Date:** November 2026
10+
**Author:** Anthony Yakovlev
11+
12+
### Summary
13+
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.
14+
15+
### Changes
16+
- **`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.
17+
- **`CHANGELOG.md`:** the in-progress header is now `## [Unreleased]` instead of `## [Unreleased] - yyyy-mm-dd`, so it passes PVP-40-1.
18+
- **`.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.
19+
20+
### Follow-up
21+
- When releasing, replace `## [Unreleased]` with `## [x.y.z] - yyyy-mm-dd`, as before.
22+
- 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.
23+
- 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.
24+
25+
---
26+
727
## Wrench 2.12.0 Migration & CI Fixes
828
**Branch:** `bugfix/fix-ci-failure-due-to-warnings`
929
**Date:** June 2026

‎Tools/CI/Recipes/Triggers.cs‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ public class Triggers : RecipeBase
2626
// Run performance build jobs on TvOS for all Unity versions.
2727
IEnumerable<Dependency> allTvOSPerformanceBuildJobs = new MobilePerformanceBuildJobs().AsDependencies().Where(d => d.JobId.Contains("TvOS"));
2828

29+
// Wrench's "Validate - inputsystem - <editor> - <platform>" jobs, which run the PVP checks with our
30+
// .yamato/wrench/pvp-exemptions.json. Wrench doesn't expose these jobs publicly, so their ids are built
31+
// the same way Wrench names them. If the naming changes, regenerating logs a YAM002 warning
32+
// ("A dependency references a job that does not exist").
33+
IEnumerable<Dependency> allValidationJobs = InputSystemSettings.Instance.InputSystemPackage.UnityEditors
34+
.SelectMany(editor => editor.EditorPlatforms.Items.Keys.Select(platformType =>
35+
new Dependency("wrench/validation-jobs",
36+
$"validate_-_inputsystem_-_{editor.Version.Version.Replace('.', '_')}_-_{platformType.ToString().ToLowerInvariant()}")))
37+
.ToList();
38+
2939
protected override ISet<Job> LoadJobs()
3040
=> Combine.Collections(GetTriggers()).SelectJobs();
3141

@@ -49,7 +59,9 @@ private ISet<IJobBuilder> GetTriggers()
4959
.WithDependencies(allStandaloneIl2CppFunctionalTests.Where(d => !d.JobId.Contains("Ubuntu")))
5060
.WithDependencies(allMobileFunctionalTests)
5161
.WithDependencies(allTvOSFunctionalBuildJobs)
52-
.WithDependencies(new Dependency("wrench/promotion-jobs", "publish_dry_run_inputsystem"))
62+
// Gate on Validate rather than on "Publish Dry Run": a dry run has the same requirements
63+
// as a real publish, so it always fails while the changelog has an [Unreleased] section.
64+
.WithDependencies(allValidationJobs)
5365
.WithPullRequestTrigger(pr => pr.ExcludeDraft().And().WithTargetBranch(InputSystemSettings.BranchName).And().WithoutChanges("**/*.md"), true, CancelLeftoverJobs.Always),
5466

5567
JobBuilder.Create("Nightly trigger")

0 commit comments

Comments
 (0)