Correct reversed condition-scope descriptions
Browse filesCorrect the shared condition-scope description in its source task, authoring generator, derived task descriptions and both dataset splits.
Update descriptions for 11 extended tasks, including 4 tasks in the test split.
Keep task code, hidden tests, reference fixes, labels, row order and dataset schema unchanged.
Assisted-by: Codex
- data/extended-00000-of-00001.parquet +2 -2
- data/test-00000-of-00001.parquet +2 -2
- source/corpus/python/scheduler/tasks/condition-scope-direct-only/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage2-03/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage2-04/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage3-01/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage3-10/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage3-14/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage3-18/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage3-19/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage4-01/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage4-06/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage4-08/task.json +1 -1
- source/tools/tasks_scheduler3.py +6 -7
data/extended-00000-of-00001.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd55575a82229da5dee87a2ac60a9553514dcfe8139ddb637321c23d371509e4
|
| 3 |
+
size 1033277
|
data/test-00000-of-00001.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2278ce5ec8a3689a23889090d092b5fe622b3c8ebb198b112bd10b2f598a61c
|
| 3 |
+
size 501305
|
source/corpus/python/scheduler/tasks/condition-scope-direct-only/task.json
CHANGED
|
@@ -2,5 +2,5 @@
|
|
| 2 |
"lang": "python",
|
| 3 |
"category": "logic",
|
| 4 |
"difficulty": 4,
|
| 5 |
-
"instruction": "A
|
| 6 |
}
|
|
|
|
| 2 |
"lang": "python",
|
| 3 |
"category": "logic",
|
| 4 |
"difficulty": 4,
|
| 5 |
+
"instruction": "A valid condition is rejected before the graph can run.\n\nA task whose condition names a task two levels upstream of it is rejected\nby the pre-run checks, even though the evaluator can read that upstream\ntask's result once it has succeeded.\n\nThe pre-run check and evaluation should agree about which names are\nlegitimate. Make validation accept exactly the names a condition can\nactually read."
|
| 6 |
}
|
source/corpus/python/scheduler/tasks/triage2-03/task.json
CHANGED
|
@@ -7,5 +7,5 @@
|
|
| 7 |
"batch-overcommit",
|
| 8 |
"condition-scope-direct-only"
|
| 9 |
],
|
| 10 |
-
"instruction": "2 findings from this week's triage. They have separate causes and are not related to one another; all 2 need fixing.\n\n1. The scheduler hands us more work than our resource pool can support.\n With a pool of 3 \"cpu\" units and two tasks that each request 2, a single call to\n next_batch comes back with both of them. Starting both then blows up with a\n ResourceExhausted from deep inside the pool.\n Each task on its own fits, so the pool's accounting looks right to us -- it's\n the batch that seems wrong. Please fix it so a batch is always startable.\n\n2. A
|
| 11 |
}
|
|
|
|
| 7 |
"batch-overcommit",
|
| 8 |
"condition-scope-direct-only"
|
| 9 |
],
|
| 10 |
+
"instruction": "2 findings from this week's triage. They have separate causes and are not related to one another; all 2 need fixing.\n\n1. The scheduler hands us more work than our resource pool can support.\n With a pool of 3 \"cpu\" units and two tasks that each request 2, a single call to\n next_batch comes back with both of them. Starting both then blows up with a\n ResourceExhausted from deep inside the pool.\n Each task on its own fits, so the pool's accounting looks right to us -- it's\n the batch that seems wrong. Please fix it so a batch is always startable.\n\n2. A valid condition is rejected before the graph can run.\n A task whose condition names a task two levels upstream of it is rejected\n by the pre-run checks, even though the evaluator can read that upstream\n task's result once it has succeeded.\n The pre-run check and evaluation should agree about which names are\n legitimate. Make validation accept exactly the names a condition can\n actually read."
|
| 11 |
}
|
source/corpus/python/scheduler/tasks/triage2-04/task.json
CHANGED
|
@@ -7,5 +7,5 @@
|
|
| 7 |
"cascade-shallow",
|
| 8 |
"condition-scope-direct-only"
|
| 9 |
],
|
| 10 |
-
"instruction": "2 findings from this week's triage. They have separate causes and are not related to one another; all 2 need fixing.\n\n1. Runs containing a failure never finish.\n Our deploy graph is a chain: fetch -> build -> test -> package -> ship. When\n build fails, the run is left sitting there forever. Inspecting the state, test\n has been skipped as we'd expect, but package and ship are still pending and the\n scheduler will not offer them (correctly -- their dependency never succeeded),\n so the run is simply stuck and is_complete() never becomes true.\n Anything that can no longer run should end up in a terminal state. Please fix.\n\n2. A
|
| 11 |
}
|
|
|
|
| 7 |
"cascade-shallow",
|
| 8 |
"condition-scope-direct-only"
|
| 9 |
],
|
| 10 |
+
"instruction": "2 findings from this week's triage. They have separate causes and are not related to one another; all 2 need fixing.\n\n1. Runs containing a failure never finish.\n Our deploy graph is a chain: fetch -> build -> test -> package -> ship. When\n build fails, the run is left sitting there forever. Inspecting the state, test\n has been skipped as we'd expect, but package and ship are still pending and the\n scheduler will not offer them (correctly -- their dependency never succeeded),\n so the run is simply stuck and is_complete() never becomes true.\n Anything that can no longer run should end up in a terminal state. Please fix.\n\n2. A valid condition is rejected before the graph can run.\n A task whose condition names a task two levels upstream of it is rejected\n by the pre-run checks, even though the evaluator can read that upstream\n task's result once it has succeeded.\n The pre-run check and evaluation should agree about which names are\n legitimate. Make validation accept exactly the names a condition can\n actually read."
|
| 11 |
}
|
source/corpus/python/scheduler/tasks/triage3-01/task.json
CHANGED
|
@@ -8,5 +8,5 @@
|
|
| 8 |
"batch-overcommit",
|
| 9 |
"condition-scope-direct-only"
|
| 10 |
],
|
| 11 |
-
"instruction": "3 findings from this week's triage. They have separate causes and are not related to one another; all 3 need fixing.\n\n1. Capacity disappears whenever a task cannot be admitted.\n One of our tasks needs both a \"cpu\" unit and a \"gpu\" unit. When gpu capacity is\n exhausted the start attempt fails, which we expect and handle -- but the cpu\n unit that task wanted is gone for the rest of the run. Do that a few times and\n the cpu pool is empty with nothing running.\n A task that fails to be admitted should hold nothing at all afterwards.\n\n2. The scheduler hands us more work than our resource pool can support.\n With a pool of 3 \"cpu\" units and two tasks that each request 2, a single call to\n next_batch comes back with both of them. Starting both then blows up with a\n ResourceExhausted from deep inside the pool.\n Each task on its own fits, so the pool's accounting looks right to us -- it's\n the batch that seems wrong. Please fix it so a batch is always startable.\n\n3. A
|
| 12 |
}
|
|
|
|
| 8 |
"batch-overcommit",
|
| 9 |
"condition-scope-direct-only"
|
| 10 |
],
|
| 11 |
+
"instruction": "3 findings from this week's triage. They have separate causes and are not related to one another; all 3 need fixing.\n\n1. Capacity disappears whenever a task cannot be admitted.\n One of our tasks needs both a \"cpu\" unit and a \"gpu\" unit. When gpu capacity is\n exhausted the start attempt fails, which we expect and handle -- but the cpu\n unit that task wanted is gone for the rest of the run. Do that a few times and\n the cpu pool is empty with nothing running.\n A task that fails to be admitted should hold nothing at all afterwards.\n\n2. The scheduler hands us more work than our resource pool can support.\n With a pool of 3 \"cpu\" units and two tasks that each request 2, a single call to\n next_batch comes back with both of them. Starting both then blows up with a\n ResourceExhausted from deep inside the pool.\n Each task on its own fits, so the pool's accounting looks right to us -- it's\n the batch that seems wrong. Please fix it so a batch is always startable.\n\n3. A valid condition is rejected before the graph can run.\n A task whose condition names a task two levels upstream of it is rejected\n by the pre-run checks, even though the evaluator can read that upstream\n task's result once it has succeeded.\n The pre-run check and evaluation should agree about which names are\n legitimate. Make validation accept exactly the names a condition can\n actually read."
|
| 12 |
}
|
source/corpus/python/scheduler/tasks/triage3-10/task.json
CHANGED
|
@@ -8,5 +8,5 @@
|
|
| 8 |
"condition-scope-direct-only",
|
| 9 |
"expr-precedence"
|
| 10 |
],
|
| 11 |
-
"instruction": "3 findings from this week's triage. They have separate causes and are not related to one another; all 3 need fixing.\n\n1. Runs containing a failure never finish.\n Our deploy graph is a chain: fetch -> build -> test -> package -> ship. When\n build fails, the run is left sitting there forever. Inspecting the state, test\n has been skipped as we'd expect, but package and ship are still pending and the\n scheduler will not offer them (correctly -- their dependency never succeeded),\n so the run is simply stuck and is_complete() never becomes true.\n Anything that can no longer run should end up in a terminal state. Please fix.\n\n2. A
|
| 12 |
}
|
|
|
|
| 8 |
"condition-scope-direct-only",
|
| 9 |
"expr-precedence"
|
| 10 |
],
|
| 11 |
+
"instruction": "3 findings from this week's triage. They have separate causes and are not related to one another; all 3 need fixing.\n\n1. Runs containing a failure never finish.\n Our deploy graph is a chain: fetch -> build -> test -> package -> ship. When\n build fails, the run is left sitting there forever. Inspecting the state, test\n has been skipped as we'd expect, but package and ship are still pending and the\n scheduler will not offer them (correctly -- their dependency never succeeded),\n so the run is simply stuck and is_complete() never becomes true.\n Anything that can no longer run should end up in a terminal state. Please fix.\n\n2. A valid condition is rejected before the graph can run.\n A task whose condition names a task two levels upstream of it is rejected\n by the pre-run checks, even though the evaluator can read that upstream\n task's result once it has succeeded.\n The pre-run check and evaluation should agree about which names are\n legitimate. Make validation accept exactly the names a condition can\n actually read.\n\n3. Conditional tasks are running when they shouldn't.\n We gate an optional deploy step with the condition `staging or canary and green`.\n Our intent is the usual reading: deploy when staging succeeded, or else when\n both canary and green did. In practice, a run where staging succeeded but green\n did not still skips the deploy, and a run where only canary succeeded runs it.\n The condition language is documented as binding the two operators the same way\n Python does. It doesn't appear to. Please fix it."
|
| 12 |
}
|
source/corpus/python/scheduler/tasks/triage3-14/task.json
CHANGED
|
@@ -8,5 +8,5 @@
|
|
| 8 |
"condition-scope-direct-only",
|
| 9 |
"dependents-aliasing"
|
| 10 |
],
|
| 11 |
-
"instruction": "3 findings from this week's triage. They have separate causes and are not related to one another; all 3 need fixing.\n\n1. Runs that use conditional tasks hang at the end.\n Our graph has an optional publish step gated on a condition. On runs where the\n condition comes out false the step is correctly never started -- but the run\n then never reports itself complete, because that task sits pending forever and\n so does everything after it. Runs where the condition is true finish fine.\n Everything that will never run needs to reach a terminal state.\n\n2. A
|
| 12 |
}
|
|
|
|
| 8 |
"condition-scope-direct-only",
|
| 9 |
"dependents-aliasing"
|
| 10 |
],
|
| 11 |
+
"instruction": "3 findings from this week's triage. They have separate causes and are not related to one another; all 3 need fixing.\n\n1. Runs that use conditional tasks hang at the end.\n Our graph has an optional publish step gated on a condition. On runs where the\n condition comes out false the step is correctly never started -- but the run\n then never reports itself complete, because that task sits pending forever and\n so does everything after it. Runs where the condition is true finish fine.\n Everything that will never run needs to reach a terminal state.\n\n2. A valid condition is rejected before the graph can run.\n A task whose condition names a task two levels upstream of it is rejected\n by the pre-run checks, even though the evaluator can read that upstream\n task's result once it has succeeded.\n The pre-run check and evaluation should agree about which names are\n legitimate. Make validation accept exactly the names a condition can\n actually read.\n\n3. Our graph inspector corrupts the graph it inspects.\n The tool walks a workflow and, for reporting, collects the dependents of each\n task into a set it then adds a marker into. After running it, scheduling\n decisions for that graph come out wrong -- tasks are offered whose dependencies\n have not run, and the topological order gains entries that were never tasks.\n Reading the graph should not be able to change it. Please fix."
|
| 12 |
}
|
source/corpus/python/scheduler/tasks/triage3-18/task.json
CHANGED
|
@@ -8,5 +8,5 @@
|
|
| 8 |
"next-open-skips-windows",
|
| 9 |
"resource-leak-on-retry"
|
| 10 |
],
|
| 11 |
-
"instruction": "3 findings from this week's triage. They have separate causes and are not related to one another; all 3 need fixing.\n\n1. A
|
| 12 |
}
|
|
|
|
| 8 |
"next-open-skips-windows",
|
| 9 |
"resource-leak-on-retry"
|
| 10 |
],
|
| 11 |
+
"instruction": "3 findings from this week's triage. They have separate causes and are not related to one another; all 3 need fixing.\n\n1. A valid condition is rejected before the graph can run.\n A task whose condition names a task two levels upstream of it is rejected\n by the pre-run checks, even though the evaluator can read that upstream\n task's result once it has succeeded.\n The pre-run check and evaluation should agree about which names are\n legitimate. Make validation accept exactly the names a condition can\n actually read.\n\n2. Jobs deferred outside their maintenance window come back at the wrong time.\n We ask the calendar when a task may next start. With several windows configured\n and the current time sitting after the first has closed, the answer we get is a\n time that has already passed, so the caller schedules the work immediately and\n it runs outside any window at all.\n Asking for the next permitted time should never hand back a time in the past.\n\n3. A long-running workflow gradually stops scheduling anything.\n Our pipeline has a pool of 4 \"cpu\" units and several flaky tasks that fail and\n retry. The first few retries behave, but after enough failures the scheduler\n stops offering work entirely, even though plenty of tasks are still pending and\n nothing is actually running. Restarting the process clears it.\n It looks like capacity is going missing over the life of a run. Please find out\n where and fix it."
|
| 12 |
}
|
source/corpus/python/scheduler/tasks/triage3-19/task.json
CHANGED
|
@@ -8,5 +8,5 @@
|
|
| 8 |
"priority-tie-unstable",
|
| 9 |
"retry-never-fires"
|
| 10 |
],
|
| 11 |
-
"instruction": "3 findings from this week's triage. They have separate causes and are not related to one another; all 3 need fixing.\n\n1. A
|
| 12 |
}
|
|
|
|
| 8 |
"priority-tie-unstable",
|
| 9 |
"retry-never-fires"
|
| 10 |
],
|
| 11 |
+
"instruction": "3 findings from this week's triage. They have separate causes and are not related to one another; all 3 need fixing.\n\n1. A valid condition is rejected before the graph can run.\n A task whose condition names a task two levels upstream of it is rejected\n by the pre-run checks, even though the evaluator can read that upstream\n task's result once it has succeeded.\n The pre-run check and evaluation should agree about which names are\n legitimate. Make validation accept exactly the names a condition can\n actually read.\n\n2. Two runs of the same unchanged graph produce different schedules.\n We compare scheduler decisions between runs as part of our release checks, and\n tasks that share a priority come back in a different order depending on how the\n graph happened to be built. Downstream tooling assumes a run is reproducible,\n so this shows up as spurious diffs.\n The engine is documented as making the same decisions in the same order for the\n same graph. Please restore that.\n\n3. A workflow with a retry policy hangs instead of retrying.\n To see it: define one task with RetryPolicy(max_attempts=3), start it, and\n report it failed. The run then never makes progress again -- the task is not\n finished, but nothing the scheduler offers ever includes it again, even after\n the clock is advanced well past any backoff.\n Retries are supposed to become eligible again once their delay has elapsed.\n Track down why they don't and fix it."
|
| 12 |
}
|
source/corpus/python/scheduler/tasks/triage4-01/task.json
CHANGED
|
@@ -9,5 +9,5 @@
|
|
| 9 |
"condition-scope-direct-only",
|
| 10 |
"dependents-aliasing"
|
| 11 |
],
|
| 12 |
-
"instruction": "4 findings from this week's triage. They have separate causes and are not related to one another; all 4 need fixing.\n\n1. Capacity disappears whenever a task cannot be admitted.\n One of our tasks needs both a \"cpu\" unit and a \"gpu\" unit. When gpu capacity is\n exhausted the start attempt fails, which we expect and handle -- but the cpu\n unit that task wanted is gone for the rest of the run. Do that a few times and\n the cpu pool is empty with nothing running.\n A task that fails to be admitted should hold nothing at all afterwards.\n\n2. The scheduler hands us more work than our resource pool can support.\n With a pool of 3 \"cpu\" units and two tasks that each request 2, a single call to\n next_batch comes back with both of them. Starting both then blows up with a\n ResourceExhausted from deep inside the pool.\n Each task on its own fits, so the pool's accounting looks right to us -- it's\n the batch that seems wrong. Please fix it so a batch is always startable.\n\n3. A
|
| 13 |
}
|
|
|
|
| 9 |
"condition-scope-direct-only",
|
| 10 |
"dependents-aliasing"
|
| 11 |
],
|
| 12 |
+
"instruction": "4 findings from this week's triage. They have separate causes and are not related to one another; all 4 need fixing.\n\n1. Capacity disappears whenever a task cannot be admitted.\n One of our tasks needs both a \"cpu\" unit and a \"gpu\" unit. When gpu capacity is\n exhausted the start attempt fails, which we expect and handle -- but the cpu\n unit that task wanted is gone for the rest of the run. Do that a few times and\n the cpu pool is empty with nothing running.\n A task that fails to be admitted should hold nothing at all afterwards.\n\n2. The scheduler hands us more work than our resource pool can support.\n With a pool of 3 \"cpu\" units and two tasks that each request 2, a single call to\n next_batch comes back with both of them. Starting both then blows up with a\n ResourceExhausted from deep inside the pool.\n Each task on its own fits, so the pool's accounting looks right to us -- it's\n the batch that seems wrong. Please fix it so a batch is always startable.\n\n3. A valid condition is rejected before the graph can run.\n A task whose condition names a task two levels upstream of it is rejected\n by the pre-run checks, even though the evaluator can read that upstream\n task's result once it has succeeded.\n The pre-run check and evaluation should agree about which names are\n legitimate. Make validation accept exactly the names a condition can\n actually read.\n\n4. Our graph inspector corrupts the graph it inspects.\n The tool walks a workflow and, for reporting, collects the dependents of each\n task into a set it then adds a marker into. After running it, scheduling\n decisions for that graph come out wrong -- tasks are offered whose dependencies\n have not run, and the topological order gains entries that were never tasks.\n Reading the graph should not be able to change it. Please fix."
|
| 13 |
}
|
source/corpus/python/scheduler/tasks/triage4-06/task.json
CHANGED
|
@@ -9,5 +9,5 @@
|
|
| 9 |
"priority-tie-unstable",
|
| 10 |
"unfinished-includes-terminal"
|
| 11 |
],
|
| 12 |
-
"instruction": "4 findings from this week's triage. They have separate causes and are not related to one another; all 4 need fixing.\n\n1. Runs containing a failure never finish.\n Our deploy graph is a chain: fetch -> build -> test -> package -> ship. When\n build fails, the run is left sitting there forever. Inspecting the state, test\n has been skipped as we'd expect, but package and ship are still pending and the\n scheduler will not offer them (correctly -- their dependency never succeeded),\n so the run is simply stuck and is_complete() never becomes true.\n Anything that can no longer run should end up in a terminal state. Please fix.\n\n2. A
|
| 13 |
}
|
|
|
|
| 9 |
"priority-tie-unstable",
|
| 10 |
"unfinished-includes-terminal"
|
| 11 |
],
|
| 12 |
+
"instruction": "4 findings from this week's triage. They have separate causes and are not related to one another; all 4 need fixing.\n\n1. Runs containing a failure never finish.\n Our deploy graph is a chain: fetch -> build -> test -> package -> ship. When\n build fails, the run is left sitting there forever. Inspecting the state, test\n has been skipped as we'd expect, but package and ship are still pending and the\n scheduler will not offer them (correctly -- their dependency never succeeded),\n so the run is simply stuck and is_complete() never becomes true.\n Anything that can no longer run should end up in a terminal state. Please fix.\n\n2. A valid condition is rejected before the graph can run.\n A task whose condition names a task two levels upstream of it is rejected\n by the pre-run checks, even though the evaluator can read that upstream\n task's result once it has succeeded.\n The pre-run check and evaluation should agree about which names are\n legitimate. Make validation accept exactly the names a condition can\n actually read.\n\n3. Two runs of the same unchanged graph produce different schedules.\n We compare scheduler decisions between runs as part of our release checks, and\n tasks that share a priority come back in a different order depending on how the\n graph happened to be built. Downstream tooling assumes a run is reproducible,\n so this shows up as spurious diffs.\n The engine is documented as making the same decisions in the same order for the\n same graph. Please restore that.\n\n4. Our progress display never reaches zero outstanding work.\n The dashboard asks the run state which tasks are still outstanding and shows\n that as \"remaining\". On a run where everything has finished, it still lists\n every task, so the bar never completes. The run itself is fine -- it reports\n complete, and every task is in a finished state."
|
| 13 |
}
|
source/corpus/python/scheduler/tasks/triage4-08/task.json
CHANGED
|
@@ -9,5 +9,5 @@
|
|
| 9 |
"expr-precedence",
|
| 10 |
"window-inclusive-end"
|
| 11 |
],
|
| 12 |
-
"instruction": "4 findings from this week's triage. They have separate causes and are not related to one another; all 4 need fixing.\n\n1. Runs that use conditional tasks hang at the end.\n Our graph has an optional publish step gated on a condition. On runs where the\n condition comes out false the step is correctly never started -- but the run\n then never reports itself complete, because that task sits pending forever and\n so does everything after it. Runs where the condition is true finish fine.\n Everything that will never run needs to reach a terminal state.\n\n2. A
|
| 13 |
}
|
|
|
|
| 9 |
"expr-precedence",
|
| 10 |
"window-inclusive-end"
|
| 11 |
],
|
| 12 |
+
"instruction": "4 findings from this week's triage. They have separate causes and are not related to one another; all 4 need fixing.\n\n1. Runs that use conditional tasks hang at the end.\n Our graph has an optional publish step gated on a condition. On runs where the\n condition comes out false the step is correctly never started -- but the run\n then never reports itself complete, because that task sits pending forever and\n so does everything after it. Runs where the condition is true finish fine.\n Everything that will never run needs to reach a terminal state.\n\n2. A valid condition is rejected before the graph can run.\n A task whose condition names a task two levels upstream of it is rejected\n by the pre-run checks, even though the evaluator can read that upstream\n task's result once it has succeeded.\n The pre-run check and evaluation should agree about which names are\n legitimate. Make validation accept exactly the names a condition can\n actually read.\n\n3. Conditional tasks are running when they shouldn't.\n We gate an optional deploy step with the condition `staging or canary and green`.\n Our intent is the usual reading: deploy when staging succeeded, or else when\n both canary and green did. In practice, a run where staging succeeded but green\n did not still skips the deploy, and a run where only canary succeeded runs it.\n The condition language is documented as binding the two operators the same way\n Python does. It doesn't appear to. Please fix it.\n\n4. A nightly job started at exactly the moment its maintenance window closed, and\n collided with the backup that owns the following slot.\n Our windows are defined back to back -- one ends at the instant the next\n begins -- and the docs say a task may start at a window's start but not at its\n end. That boundary does not seem to be respected. Please fix it."
|
| 13 |
}
|
source/tools/tasks_scheduler3.py
CHANGED
|
@@ -187,15 +187,14 @@ class TestGraphStillReadsCorrectly(unittest.TestCase):
|
|
| 187 |
# --------------------------------------------------- condition scope check
|
| 188 |
make(R, "condition-scope-direct-only",
|
| 189 |
spec("python", "logic", 4, """
|
| 190 |
-
A
|
| 191 |
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
isn't in scope, so the task is silently skipped on every run.
|
| 196 |
|
| 197 |
-
|
| 198 |
-
|
| 199 |
actually read.
|
| 200 |
"""),
|
| 201 |
[("flow/validation.py",
|
|
|
|
| 187 |
# --------------------------------------------------- condition scope check
|
| 188 |
make(R, "condition-scope-direct-only",
|
| 189 |
spec("python", "logic", 4, """
|
| 190 |
+
A valid condition is rejected before the graph can run.
|
| 191 |
|
| 192 |
+
A task whose condition names a task two levels upstream of it is rejected
|
| 193 |
+
by the pre-run checks, even though the evaluator can read that upstream
|
| 194 |
+
task's result once it has succeeded.
|
|
|
|
| 195 |
|
| 196 |
+
The pre-run check and evaluation should agree about which names are
|
| 197 |
+
legitimate. Make validation accept exactly the names a condition can
|
| 198 |
actually read.
|
| 199 |
"""),
|
| 200 |
[("flow/validation.py",
|