Skip to content

fix(#426): use configurable tmp path#430

Merged
dialmaster merged 3 commits intodevfrom
fix/426-permission-error-channel-downloads
Feb 9, 2026
Merged

fix(#426): use configurable tmp path#430
dialmaster merged 3 commits intodevfrom
fix/426-permission-error-channel-downloads

Conversation

@dialmaster
Copy link
Collaborator

Use configurable temp path to fix permission errors on Docker

  • Replace hardcoded '/tmp' with tempPathManager.getTempBasePath() across all yt-dlp spawn calls (channelModule, downloadExecutor, ytDlpRunner, ytdlpModule, videoDownloadPostProcessFiles)
  • Add --paths temp: argument to yt-dlp commands via new buildTempPathArgs() method, redirecting yt-dlp's internal temp files to writable staging directory
  • Use lazy loading for tempPathManager in ytdlpModule to avoid circular deps
  • Update tests to mock tempPathManager and verify TMPDIR is set correctly

Use configurable temp path to fix permission errors on Docker

- Replace hardcoded '/tmp' with tempPathManager.getTempBasePath() across all
  yt-dlp spawn calls (channelModule, downloadExecutor, ytDlpRunner, ytdlpModule,
  videoDownloadPostProcessFiles)
- Add --paths temp: argument to yt-dlp commands via new buildTempPathArgs()
  method, redirecting yt-dlp's internal temp files to writable staging directory
- Use lazy loading for tempPathManager in ytdlpModule to avoid circular deps
- Update tests to mock tempPathManager and verify TMPDIR is set correctly
- Add explicit instruction to only use gh commands in review prompt
- Prohibit running tests, npm commands, or other shell commands
- Remove misleading "branch is already checked out" text that encouraged
  local command execution
@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2026

📊 Test Coverage Report

Backend Coverage

Type Coverage Status
Lines 79.49% 🟡
Statements 79.45% 🟡
Functions 79.97% 🟡
Branches 72.39% 🟡

Frontend Coverage

Type Coverage Status
Lines 87.59% 🟢
Statements 86.87% 🟢
Functions 80.85% 🟢
Branches 82.24% 🟢

Coverage Requirements

  • Minimum threshold: 70% line coverage
  • Backend: ✅ Passes
  • Frontend: ✅ Passes

Coverage report generated for commit 185ff04

@dialmaster
Copy link
Collaborator Author

@claude Please review this PR, do not attempt to run tests, just review the code

@claude
Copy link

claude bot commented Feb 9, 2026

Claude encountered an error —— View job


Code Review

Todo List

  • Read repository guidelines (CLAUDE.md)
  • Review changed files and implementation approach
  • Check for bugs, security issues, and edge cases
  • Verify test coverage and mocking strategy
  • Provide comprehensive review feedback

@dialmaster dialmaster merged commit f9ede25 into dev Feb 9, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant