Updates: an address rebuild handed out again after an update runs twice and counts past its total
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start with the todo case in tests/Feature/Updates/Survives/AddressesTest.php around line 82 and compare it with the assertion around line 77 that records today's outcome. Trace how an address rebuild part queues its next part when run again. Done means the todo test passes, the assertion is updated, and rebuild progress never exceeds 100%.
Written by the indexing model from the issue text.
Description
Found by 1.14's update tests (issue 796): an address rebuild's part that is handed out again after an update queues its next part twice. The whole rebuild then runs twice, and its progress counts past its total (over 100%), which breaks "nothing done twice".
Where: tests/Feature/Updates/Survives/AddressesTest.php (around line 82) holds the case as a todo test.
Wanted: each part queues its next part once. A part run again doesn't queue another, for example by a unique next-part key or by checking the rebuild's cursor before queuing. Progress never passes 100%.
Test: the todo test passes, and the line asserting today's outcome (around line 77) changes.
- Dominant language
- PHP
- Stars
- 1
- Forks
- 1
- Avg merge
- 1h 46m
- Merged PRs (30d)
- 172
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from temecms/teme
-
area/tests type/bug when/soon
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
when/soon
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area/tests type/bug when/soon
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
area/tests type/bug when/later
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
area/plugins type/enhancement when/later
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Automattic/blocks-engine#7881 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
iruzen-dono/workless#117 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
magicsunday/webtrees-docker#285 ·
Maintainers usually reply within 1 day
-
WP-CLI 3.0 fixes the cron lock and core download bugs described in the handbookPossibly taken @mayankmajeji claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
WordPress/hosting-handbook#521 ·
-
Bug Needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Automattic/jetpack#55870 ·
Maintainers usually reply within 1 day