Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Music-video autopilot handler tests never cover a soft-deleted project in priorRuns

Closed Beginner friendly
#12,000 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
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, node.js
Domain
testing

Research direction

Read server/services/scheduledHandlers/musicVideoAutopilot.test.js alongside server/services/scheduledHandlers/musicVideoAutopilot.js:31 to see how the projects fixture and run() assertions work. Add the specified soft-deleted project case and check that run() dispatches and countPending().count is 1. Done when removing || project.deleted makes the new test fail, with no production code change.

Written by the indexing model from the issue text.

Description

effort:low model:light plan planner:fable-5-1 test-quality tests

Slice audited: scheduled-work tests (test-quality audit, 2026-10-18).

Problem

server/services/scheduledHandlers/musicVideoAutopilot.js:31 skips soft-deleted projects in priorRuns (if (!run || project.deleted) continue;). No fixture in server/services/scheduledHandlers/musicVideoAutopilot.test.js sets deleted (zero occurrences of the word in the file).

Mutation probe (scratch worktree): changed the line to if (!run) continue;.

Tests  5 passed (5)

Impact

A project deleted while its scheduled autonomous run was in a live status permanently blocks the music-video-autopilot task ("waiting on a previous autonomous music video"), a configured scheduled job that silently never dispatches again, and a deleted completed run keeps its Brain idea marked used. The existing five cases cannot see this regression.

Fix (decided)

Add one case to musicVideoAutopilot.test.js: push { ...project('Gone', 'needs-human', 'zzz'), deleted: true } into the projects fixture and assert run() dispatches and countPending().count === 1. No production code change.

Scope: small

Acceptance criteria

  • Removing || project.deleted from priorRuns fails the new case.
  • No production code change.
Dominant language
JavaScript
Stars
38
Forks
32
Avg merge
31m
Merged PRs (30d)
995

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 atomantic/PortOS

All issues in atomantic/PortOS

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.