Answer stability round 1: 1 🔴, 2 🟡 (1 misread); a feature whose branch landed by fast-forward is passed over and item 531 files benching it, a test refuses a plan outside the checkout from another folder, and the README states the import once
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
`Bar = 0.1`
|
||||
|
||||
`Next ID = 531`
|
||||
`Next ID = 532`
|
||||
|
||||
## Renamed
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|
||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||
| 531 | 0.16.0 | | | **Bench the shipped features of a branch that landed by fast-forward: take as the feature the commits from the one after the item finished before it, up to the commit that took its item out of the plan.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 3 | 1.1 |
|
||||
| 507 | 0.16.0 | | owner | **Bench rebuilding a feature the project shipped: revert its commit at the head, hand Haiku its item tagline, and check with the tests that commit added.** | 4 | 2 | 1 | 5 | 6 | 1.1 by 3 | 0.5 |
|
||||
| 524 | 0.16.0 | | owner | **Write fejkdata's first six bench features, each a spec, acceptance tests in Go and a reference patch that builds it, in the `bench-tasks` folder its config names.** | 3 | 2 | 1 | 4 | 6 | 1.1 by 3 | 0.5 |
|
||||
| 526 | 0.16.0 | | owner | **Plant bugs for `task-bench` in Rust, from the mutants cargo-mutants kills.** | 3 | 2 | 1 | 4 | 4 | 1.1 by 1 | 0.3 |
|
||||
@@ -112,20 +113,34 @@
|
||||
|
||||
## Details
|
||||
|
||||
### 531. Bench the shipped features of a branch that landed by fast-forward: take as the feature the commits from the one after the item finished before it, up to the commit that took its item out of the plan.
|
||||
|
||||
Today `task-bench --tasks shipped-features` passes such a feature over. A fast-forwarded branch's commits keep a commit time each, so `branch_chunks` cuts each commit into a chunk of its own, and the chunk that took the item out of the plan holds only the feature's last commit. A project that lands every chunk by fast-forward, as this one does, has no shipped feature to bench.
|
||||
|
||||
The tagline's rule is a recommendation, not yet checked on a real history: a commit between two chunks that belongs to neither, such as a direct push, would join the later feature. The acceptance check still guards that: a feature counts only where its tests fail after the revert and pass with the reference patch.
|
||||
|
||||
Touches:
|
||||
|
||||
- `bin/task_bench/shipped_features.py`: `read_shipped`, `shipped_tasks` (small), `FAST_FORWARDED`
|
||||
- `bin/task_bench/test_shipped_features.py`
|
||||
- `bin/task_bench/main.py`: `(module)` (small)
|
||||
- `README.md`: `## Tools` (small)
|
||||
|
||||
### 507. Bench rebuilding a feature the project shipped: revert its commit at the head, hand Haiku its item tagline, and check with the tests that commit added.
|
||||
|
||||
Such tasks cost nothing to write and are realistic. A shipped feature whose revert doesn't apply cleanly at both the base and the head is passed over.
|
||||
Such tasks don't cost anything to write and are realistic. A shipped feature whose revert doesn't apply cleanly at both the base and the head is passed over.
|
||||
|
||||
A chunk lands as several commits, not one. So a shipped feature is a chunk on the base's first-parent history that took an item out of the plan, as `branch_chunks` cuts that history, newest first:
|
||||
|
||||
- Haiku is told the tagline of each item the chunk took out.
|
||||
- The feature's change is one diff, from the commit before the chunk to its tip, leaving out the project's records: the plan, the changelog and the other files its config names. Later chunks append to those, so a revert of them would never apply.
|
||||
- The revert applies that diff in reverse to a copy of each side's tree. The reference patch is the same diff forwards, and the acceptance tests are the test files it touches, as the head holds them.
|
||||
- The revert applies that diff in reverse to a copy of each side's tree, in `shipped-features/<n>/` in the bench's folder, where `<n>` counts the features taken. The reference patch is the same diff forwards, and the acceptance tests are the test files it touches, as the head holds them.
|
||||
- A shipped feature counts as a bench feature does, in `feature_tasks.py`: the tests fail at both sides after the revert and pass with the reference patch. One whose change holds no test is passed over.
|
||||
- A chunk whose branch landed by fast-forward is passed over: there each commit is a chunk of its own, so the history doesn't say which commits built the feature.
|
||||
|
||||
A panel of three readers seated as the audience picked the spellings on 2026-11-24: `--tasks shipped-features`, 3 to 0, and `--shipped <n>`, first for two and second for the third.
|
||||
|
||||
Re-scored after the first read of the code, from L 3 and S 5, when deriving tasks from git history looked like a new pattern across four packages. Reusing `branch_chunks` kept it to about 330 lines.
|
||||
Re-scored after the first read of the code, from L 3 and S 5 to L 4 and S 6, when deriving tasks from git history looked like a new pattern across four packages. Reusing `branch_chunks` kept it to about 330 lines.
|
||||
|
||||
### 524. Write fejkdata's first six bench features, each a spec, acceptance tests in Go and a reference patch that builds it, in the `bench-tasks` folder its config names.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user