File item 533, a patch release 0.15.1 for Jira's refused score edits

This commit is contained in:
Lilleman
2026-11-24 07:35:01 +01:00
parent 794ce37208
commit b6a576187a
2 changed files with 17 additions and 6 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
- `task-bench --tasks data-sources` benches adding a data source: Haiku gets a made-up register that the task's seeded `generate-register` writes, and acceptance tests check the importer, the data and whatever else the spec asks.
- `task-bench --tasks features` has Haiku build features instead of fixing planted bugs: each folder in the folder the project's config names as the new optional `bench-tasks` holds a `spec.md`, a `reference.patch` and acceptance tests Haiku never sees. A feature counts only where those tests fail before it is built and pass with the reference patch, at the base and at the head; the report names each feature passed over and why.
- A bench started with `task-bench --record-figures` appends its figures over every bug to the comprehension history once it finishes, and a scoring run in `larv-review` starts the project's bench that way where its README documents a `task-bench` command. The figures are a report beside the panel's scores: none blocks a merge.
- `task-bench`'s table prints the mean of the bugs' own head/base changes as its All change, in place of the change of the two All rows' medians, which swung up to three times as far in tokens. The All rows per side stay, so the change row is no longer their difference, and a change from before 0.15.1 can't be compared with one from after it.
- `task-bench`'s table prints the mean of the bugs' own head/base changes as its All change, in place of the change of the two All rows' medians, which swung up to three times as far in tokens. The All rows per side stay, so the change row is no longer their difference, and a change from before 0.16.0 can't be compared with one from after it.
- `task-bench` now stops with a Failure on a run whose final result says `terminal_reason: "api_error"`, even where it holds no `api_error_status`, so a token the API refuses no longer lets the bench run on for hours with empty runs.
- `task-bench`'s `--help` now says how far a bench of a commit against itself swings, in 19 cases of 20, with the default 5 bugs and 5 runs, and that a Gremlins run on a large project needs 16 GB of memory.
- When `task-bench` can't copy, read or write a file in the middle of a bench, it now names that file and still prints the table of the runs that finished, where 0.15.0 lost them all behind `could not write under <folder>`.
+16 -5
View File
@@ -6,16 +6,13 @@
`Bar = 0.1`
`Next ID = 533`
## Renamed
- 0.15.1 renamed to 0.16.0
`Next ID = 534`
## Items
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 533 | 0.15.1 | | defect | **Set an issue's scores in Jira through its issue-property endpoint, so do-epic and `todo-item edit` save them where Jira refuses an edit that holds only properties.** | 2 | 2 | 2 | 4 | 3 | 1.6 by 3, 1.1 by 2 | 1.7 |
| 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 |
| 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 |
| 532 | 0.16.0 | | | **Leave out of a `task-bench` fix a change Haiku makes to a Rust test that stands in the file of the code it tests.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 1 | 0.4 |
@@ -112,6 +109,20 @@
## Details
### 533. Set an issue's scores in Jira through its issue-property endpoint, so do-epic and `todo-item edit` save them where Jira refuses an edit that holds only properties.
Jira Cloud's edit request, `PUT /rest/api/3/issue/{key}`, refuses a body that holds `properties` without `fields` or `update`: it answers 400 "one of 'fields' or 'update' required". do-epic's scoring sends exactly that body, after it has posted the comment that tells the team the scores. So on a team's epic every scored issue got the comment but no scores, and each later run would score and comment on it again. `todo-item edit` sends the same body where it changes only the scores of an issue, as it does on an issue a person filed. The test fakes accepted the body, so no test saw it.
Fix: one function in `bin/atlassian/jira.py` sends an issue edit. Where the edit sets only issue properties, it sets each through `PUT /rest/api/3/issue/{key}/properties/{propertyKey}`, whose body is the property's value. Both callers use it, and both fakes refuse an edit that holds neither `fields` nor `update`, as Jira does.
Touches:
- `bin/atlassian/jira.py`: `edited`
- `bin/atlassian/test_jira.py`: `Edited`
- `bin/do_epic/backend/jira.py`: `JiraEpic.set_scores` (small)
- `bin/do_epic/backend/test_jira.py`: `FakeJira` (small)
- `bin/plan_store/jira_epic.py`: `JiraPlan.edit` (small)
- `bin/plan_store/test_jira_epic.py`: `Editing` (small)
### 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. This project landed 114 of its 260 shipped features that way, and none of those can be benched. A squash-merged feature whose one commit was authored and committed at the same time would be passed over too; whether a forge writes such commits is not checked.