Updates: an address rebuild handed out again after an update runs twice and counts past its total

Open Beginner friendly
#912 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
laravel, php, postgresql
Domain
backend, databases

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

area/deploy type/bug when/soon

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from temecms/teme

All issues in temecms/teme

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.