From dbafdabe25bb49966d40e343c72860823627e3f9 Mon Sep 17 00:00:00 2001 From: Andrew Halberstadt Date: Mon, 11 Aug 2025 10:32:06 -0400 Subject: [PATCH] fix: revert accidental schema changes In: https://github.com/taskcluster/taskgraph/commit/ec06326b47544fa01f1676b5c5544c22d1e678d0#diff I refactored the schemas to use a description. I accidentally changed two keys (one Required->Optional, the other Optional->Required). This was supposed to be a doc only change, so let's revert them back to the way they were. --- src/taskgraph/transforms/run/__init__.py | 2 +- src/taskgraph/transforms/run/toolchain.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/taskgraph/transforms/run/__init__.py b/src/taskgraph/transforms/run/__init__.py index c3a151c37..29406e7cd 100644 --- a/src/taskgraph/transforms/run/__init__.py +++ b/src/taskgraph/transforms/run/__init__.py @@ -153,7 +153,7 @@ Extra: object, }, Required("worker-type"): task_description_schema["worker-type"], - Required( + Optional( "worker", description=dedent( """ diff --git a/src/taskgraph/transforms/run/toolchain.py b/src/taskgraph/transforms/run/toolchain.py index 99b57adfc..669bcd812 100644 --- a/src/taskgraph/transforms/run/toolchain.py +++ b/src/taskgraph/transforms/run/toolchain.py @@ -97,7 +97,7 @@ """ ), ): {str: object}, - Optional( + Required( "workdir", description=dedent( """