nextcloud/tests
Yoan Bozhilov 3f3f9c6464 fix(taskprocessing): guard lockTask on scheduled, record started_at, Oracle fallback
Address review feedback (@marcelklehr, Copilot):
- lockTask claims only SCHEDULED tasks (was status != RUNNING) and stamps
  started_at in the same atomic UPDATE, so a finished task cannot be re-claimed
  and the external-provider claim path records started_at as well.
- claimWithBoundedRetry re-reads after lockTask instead of a follow-up UPDATE.
- Oracle joins SQLite on the bounded-retry fallback: Oracle cannot combine a
  row-limiting clause with FOR UPDATE (ORA-02014), which failed the claim tests
  on Oracle CI.
- Reword the worker docblock/comments to "prefer oldest available" (parallel
  SKIP LOCKED does not guarantee a strict global order).
- Add a regression test that lockTask does not resurrect a finished task.

Signed-off-by: Yoan Bozhilov <bygadd@gmail.com>
Assisted-by: Claude Code:claude-opus-4-8
2026-06-17 19:00:53 +02:00
..
apps chore: Add SPDX header 2024-05-13 17:41:36 +02:00
blueprints chore: split frontend building into legacy Vue 2 and Vue 3 2025-10-22 17:10:28 +02:00
Core fix(taskprocessing): claim tasks atomically with SKIP LOCKED + composite index 2026-06-17 19:00:53 +02:00
data test(appstore): add test cases for appinfo.xml 2026-05-12 23:11:24 +02:00
docker chore: Add SPDX header 2024-05-13 17:41:36 +02:00
lib fix(taskprocessing): guard lockTask on scheduled, record started_at, Oracle fallback 2026-06-17 19:00:53 +02:00
objectstore chore: Add SPDX header 2024-05-22 19:58:12 +02:00
autoload.php chore: Add an autoload.php file for tests relying on core class 2025-05-19 11:30:37 +02:00
bootstrap.php test: add env option to disable loading all installed apps during tests 2025-08-11 13:35:57 +02:00
databases-all-config.php feat(rector): Enable SafeDeclareStrictTypesRector 2026-02-09 10:59:31 +01:00
drone-run-php-tests.sh chore: Add SPDX header 2024-05-13 17:41:36 +02:00
drone-wait-objectstore.sh chore: Add SPDX header 2024-05-13 17:41:36 +02:00
enable_all.php chore: Replace last calls to OC_App::enable by IAppManager 2025-08-18 17:09:39 +02:00
memcached.config.php fix(ci): fix Memcached CI job 2026-06-17 14:20:05 +02:00
phpunit-autotest-external.xml test(ci): enforce PHPUnit time limits with sensible timeout values 2026-05-28 10:04:05 +02:00
phpunit-autotest.xml test(ci): enforce PHPUnit time limits with sensible timeout values 2026-05-28 10:04:05 +02:00
preseed-config.php feat(rector): Enable SafeDeclareStrictTypesRector 2026-02-09 10:59:31 +01:00
redis-cluster.config.php feat(rector): Enable SafeDeclareStrictTypesRector 2026-02-09 10:59:31 +01:00
redis.config.php feat(rector): Enable SafeDeclareStrictTypesRector 2026-02-09 10:59:31 +01:00
startsessionlistener.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00