Clarify scheduler conditions and router wildcard reports
Browse filesCorrect the mixed-operator scheduler description in 11 source tasks and its authoring generator. Remove the redundant single-segment observation from the router regression task and its authoring generator.
Update both dataset splits: six test descriptions and twelve extended descriptions. Keep task code, hidden tests, gold fixes, labels, row order and 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/expr-precedence/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage2-06/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage2-07/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage3-03/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage3-06/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage3-10/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage3-22/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage3-23/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage4-02/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage4-04/task.json +1 -1
- source/corpus/python/scheduler/tasks/triage4-08/task.json +1 -1
- source/corpus/typescript/router/tasks/routing-regressions/task.json +1 -1
- source/tools/tasks_compound2.py +1 -2
- source/tools/tasks_scheduler2.py +8 -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:2b4ba9746c8abc874163252962dd2d806801fdbd0ad6b3a4137f373d58289441
|
| 3 |
+
size 1033258
|
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:f48d36f3be81205e27f84f69dd2769928236fba1cb6d19d9c6066ab414e606f2
|
| 3 |
+
size 501288
|
source/corpus/python/scheduler/tasks/expr-precedence/task.json
CHANGED
|
@@ -2,5 +2,5 @@
|
|
| 2 |
"lang": "python",
|
| 3 |
"category": "logic",
|
| 4 |
"difficulty": 5,
|
| 5 |
-
"instruction": "
|
| 6 |
}
|
|
|
|
| 2 |
"lang": "python",
|
| 3 |
"category": "logic",
|
| 4 |
"difficulty": 5,
|
| 5 |
+
"instruction": "Combining `or` and `and` raises an error.\n\nWe gate an optional deploy step with `staging or canary and green`.\nIt should allow deployment when staging succeeded, or when both canary and\ngreen succeeded. The documented grammar uses Python's precedence: `and`\nbinds more tightly than `or`.\n\nThe evaluator instead raises a trailing-input error at `and`, even when\nall three facts are present. Make valid conditions with mixed operators\nfollow the documented grammar."
|
| 6 |
}
|
source/corpus/python/scheduler/tasks/triage2-06/task.json
CHANGED
|
@@ -7,5 +7,5 @@
|
|
| 7 |
"condition-false-never-settles",
|
| 8 |
"expr-precedence"
|
| 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 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.
|
| 11 |
}
|
|
|
|
| 7 |
"condition-false-never-settles",
|
| 8 |
"expr-precedence"
|
| 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 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. Combining `or` and `and` raises an error.\n We gate an optional deploy step with `staging or canary and green`.\n It should allow deployment when staging succeeded, or when both canary and\n green succeeded. The documented grammar uses Python's precedence: `and`\n binds more tightly than `or`.\n The evaluator instead raises a trailing-input error at `and`, even when\n all three facts are present. Make valid conditions with mixed operators\n follow the documented grammar."
|
| 11 |
}
|
source/corpus/python/scheduler/tasks/triage2-07/task.json
CHANGED
|
@@ -7,5 +7,5 @@
|
|
| 7 |
"dependents-aliasing",
|
| 8 |
"expr-precedence"
|
| 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. 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.\n\n2.
|
| 11 |
}
|
|
|
|
| 7 |
"dependents-aliasing",
|
| 8 |
"expr-precedence"
|
| 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. 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.\n\n2. Combining `or` and `and` raises an error.\n We gate an optional deploy step with `staging or canary and green`.\n It should allow deployment when staging succeeded, or when both canary and\n green succeeded. The documented grammar uses Python's precedence: `and`\n binds more tightly than `or`.\n The evaluator instead raises a trailing-input error at `and`, even when\n all three facts are present. Make valid conditions with mixed operators\n follow the documented grammar."
|
| 11 |
}
|
source/corpus/python/scheduler/tasks/triage3-03/task.json
CHANGED
|
@@ -8,5 +8,5 @@
|
|
| 8 |
"condition-false-never-settles",
|
| 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. 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. 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\n3.
|
| 12 |
}
|
|
|
|
| 8 |
"condition-false-never-settles",
|
| 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. 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. 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\n3. Combining `or` and `and` raises an error.\n We gate an optional deploy step with `staging or canary and green`.\n It should allow deployment when staging succeeded, or when both canary and\n green succeeded. The documented grammar uses Python's precedence: `and`\n binds more tightly than `or`.\n The evaluator instead raises a trailing-input error at `and`, even when\n all three facts are present. Make valid conditions with mixed operators\n follow the documented grammar."
|
| 12 |
}
|
source/corpus/python/scheduler/tasks/triage3-06/task.json
CHANGED
|
@@ -8,5 +8,5 @@
|
|
| 8 |
"dependents-aliasing",
|
| 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. 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. 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.\n\n3.
|
| 12 |
}
|
|
|
|
| 8 |
"dependents-aliasing",
|
| 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. 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. 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.\n\n3. Combining `or` and `and` raises an error.\n We gate an optional deploy step with `staging or canary and green`.\n It should allow deployment when staging succeeded, or when both canary and\n green succeeded. The documented grammar uses Python's precedence: `and`\n binds more tightly than `or`.\n The evaluator instead raises a trailing-input error at `and`, even when\n all three facts are present. Make valid conditions with mixed operators\n follow the documented grammar."
|
| 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 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.
|
| 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. Combining `or` and `and` raises an error.\n We gate an optional deploy step with `staging or canary and green`.\n It should allow deployment when staging succeeded, or when both canary and\n green succeeded. The documented grammar uses Python's precedence: `and`\n binds more tightly than `or`.\n The evaluator instead raises a trailing-input error at `and`, even when\n all three facts are present. Make valid conditions with mixed operators\n follow the documented grammar."
|
| 12 |
}
|
source/corpus/python/scheduler/tasks/triage3-22/task.json
CHANGED
|
@@ -8,5 +8,5 @@
|
|
| 8 |
"resource-leak-on-retry",
|
| 9 |
"roots-includes-dependents"
|
| 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.
|
| 12 |
}
|
|
|
|
| 8 |
"resource-leak-on-retry",
|
| 9 |
"roots-includes-dependents"
|
| 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. Combining `or` and `and` raises an error.\n We gate an optional deploy step with `staging or canary and green`.\n It should allow deployment when staging succeeded, or when both canary and\n green succeeded. The documented grammar uses Python's precedence: `and`\n binds more tightly than `or`.\n The evaluator instead raises a trailing-input error at `and`, even when\n all three facts are present. Make valid conditions with mixed operators\n follow the documented grammar.\n\n2. 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.\n\n3. Our graph visualiser draws every task as a starting point.\n The entry points it renders include tasks that plainly have dependencies, so\n the diagram shows a workflow with no structure. Execution itself is fine; it is\n only the reported set of roots that is wrong."
|
| 12 |
}
|
source/corpus/python/scheduler/tasks/triage3-23/task.json
CHANGED
|
@@ -8,5 +8,5 @@
|
|
| 8 |
"resume-loses-backoff",
|
| 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.
|
| 12 |
}
|
|
|
|
| 8 |
"resume-loses-backoff",
|
| 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. Combining `or` and `and` raises an error.\n We gate an optional deploy step with `staging or canary and green`.\n It should allow deployment when staging succeeded, or when both canary and\n green succeeded. The documented grammar uses Python's precedence: `and`\n binds more tightly than `or`.\n The evaluator instead raises a trailing-input error at `and`, even when\n all three facts are present. Make valid conditions with mixed operators\n follow the documented grammar.\n\n2. Resuming a saved run stampedes our downstream API.\n When a task fails we back it off before retrying. If the process is restarted\n while several tasks are waiting out their backoff, every one of them is offered\n immediately on the first scheduling pass after the run is reloaded, instead of\n waiting out the remainder of its delay.\n A reloaded run is meant to behave exactly as though it had never stopped.\n Please make it do so.\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-02/task.json
CHANGED
|
@@ -9,5 +9,5 @@
|
|
| 9 |
"expr-precedence",
|
| 10 |
"next-open-skips-windows"
|
| 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. 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\n3.
|
| 13 |
}
|
|
|
|
| 9 |
"expr-precedence",
|
| 10 |
"next-open-skips-windows"
|
| 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. 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\n3. Combining `or` and `and` raises an error.\n We gate an optional deploy step with `staging or canary and green`.\n It should allow deployment when staging succeeded, or when both canary and\n green succeeded. The documented grammar uses Python's precedence: `and`\n binds more tightly than `or`.\n The evaluator instead raises a trailing-input error at `and`, even when\n all three facts are present. Make valid conditions with mixed operators\n follow the documented grammar.\n\n4. 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."
|
| 13 |
}
|
source/corpus/python/scheduler/tasks/triage4-04/task.json
CHANGED
|
@@ -9,5 +9,5 @@
|
|
| 9 |
"priority-tie-unstable",
|
| 10 |
"topo-order-nondeterministic"
|
| 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. 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.
|
| 13 |
}
|
|
|
|
| 9 |
"priority-tie-unstable",
|
| 10 |
"topo-order-nondeterministic"
|
| 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. 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. Combining `or` and `and` raises an error.\n We gate an optional deploy step with `staging or canary and green`.\n It should allow deployment when staging succeeded, or when both canary and\n green succeeded. The documented grammar uses Python's precedence: `and`\n binds more tightly than `or`.\n The evaluator instead raises a trailing-input error at `and`, even when\n all three facts are present. Make valid conditions with mixed operators\n follow the documented grammar.\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. Two problems with the order we execute graphs in, which may share a cause.\n First, the order is not stable: building the same graph twice, adding the tasks\n in a different order each time, gives two different execution orders. Our\n release checks diff these, so every unrelated change shows up as a difference.\n Second, a graph containing a dependency cycle is no longer rejected. It used to\n raise; now it comes back with an order that silently omits the tasks in the\n cycle, and the run just never executes them.\n Dependencies are still respected in the orders we get, so this is not about\n correctness of the ordering itself -- it is about it being reproducible and\n about cycles being caught."
|
| 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 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.
|
| 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. Combining `or` and `and` raises an error.\n We gate an optional deploy step with `staging or canary and green`.\n It should allow deployment when staging succeeded, or when both canary and\n green succeeded. The documented grammar uses Python's precedence: `and`\n binds more tightly than `or`.\n The evaluator instead raises a trailing-input error at `and`, even when\n all three facts are present. Make valid conditions with mixed operators\n follow the documented grammar.\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/corpus/typescript/router/tasks/routing-regressions/task.json
CHANGED
|
@@ -2,6 +2,6 @@
|
|
| 2 |
"lang": "typescript",
|
| 3 |
"category": "logic",
|
| 4 |
"difficulty": 5,
|
| 5 |
-
"instruction": "Three regressions in the router, from separate reports. All three need fixing.\n\n1. Our static file route /assets/*path no longer serves anything in a\n subdirectory
|
| 6 |
"compound": true
|
| 7 |
}
|
|
|
|
| 2 |
"lang": "typescript",
|
| 3 |
"category": "logic",
|
| 4 |
"difficulty": 5,
|
| 5 |
+
"instruction": "Three regressions in the router, from separate reports. All three need fixing.\n\n1. Our static file route /assets/*path no longer serves anything in a\n subdirectory. A wildcard should swallow the entire\n remainder of the path.\n\n2. Multi-select filters apply only the last value. `?tag=red&tag=blue` behaves\n as though only blue were sent. Repeated keys should collect every value in\n order.\n\n3. Popular endpoints keep falling out of the route cache while paths hit once\n at start-up survive indefinitely. Eviction is meant to remove whatever has\n gone longest without being used.",
|
| 6 |
"compound": true
|
| 7 |
}
|
source/tools/tasks_compound2.py
CHANGED
|
@@ -110,8 +110,7 @@ make(ROUTER, "routing-regressions",
|
|
| 110 |
Three regressions in the router, from separate reports. All three need fixing.
|
| 111 |
|
| 112 |
1. Our static file route /assets/*path no longer serves anything in a
|
| 113 |
-
subdirectory
|
| 114 |
-
parameter holds only that one segment. A wildcard should swallow the entire
|
| 115 |
remainder of the path.
|
| 116 |
|
| 117 |
2. Multi-select filters apply only the last value. `?tag=red&tag=blue` behaves
|
|
|
|
| 110 |
Three regressions in the router, from separate reports. All three need fixing.
|
| 111 |
|
| 112 |
1. Our static file route /assets/*path no longer serves anything in a
|
| 113 |
+
subdirectory. A wildcard should swallow the entire
|
|
|
|
| 114 |
remainder of the path.
|
| 115 |
|
| 116 |
2. Multi-select filters apply only the last value. `?tag=red&tag=blue` behaves
|
source/tools/tasks_scheduler2.py
CHANGED
|
@@ -11,15 +11,16 @@ R = "python/scheduler"
|
|
| 11 |
# ------------------------------------------------------- operator precedence
|
| 12 |
make(R, "expr-precedence",
|
| 13 |
spec("python", "logic", 5, """
|
| 14 |
-
|
| 15 |
|
| 16 |
-
We gate an optional deploy step with
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
|
| 21 |
-
The
|
| 22 |
-
|
|
|
|
| 23 |
"""),
|
| 24 |
[("flow/expressions.py",
|
| 25 |
""" def or_expr(self) -> bool:
|
|
|
|
| 11 |
# ------------------------------------------------------- operator precedence
|
| 12 |
make(R, "expr-precedence",
|
| 13 |
spec("python", "logic", 5, """
|
| 14 |
+
Combining `or` and `and` raises an error.
|
| 15 |
|
| 16 |
+
We gate an optional deploy step with `staging or canary and green`.
|
| 17 |
+
It should allow deployment when staging succeeded, or when both canary and
|
| 18 |
+
green succeeded. The documented grammar uses Python's precedence: `and`
|
| 19 |
+
binds more tightly than `or`.
|
| 20 |
|
| 21 |
+
The evaluator instead raises a trailing-input error at `and`, even when
|
| 22 |
+
all three facts are present. Make valid conditions with mixed operators
|
| 23 |
+
follow the documented grammar.
|
| 24 |
"""),
|
| 25 |
[("flow/expressions.py",
|
| 26 |
""" def or_expr(self) -> bool:
|