fix(knowledge): isolate build-yt-dlp-args tests from host cookie env - #3657
Conversation
Six cases omitted env, so resolveYtDlpAuthArgs fell through to process.env
and a runner with VIDEO_DIGEST_YT_DLP_COOKIES_FILE exported failed the
positional assertions. Pass env: {} to match the conformance suite.
Co-authored-by: ksextonmelodic <ksextonmelodic@gmail.com>
|
Claude finished @kyle-sexton's task in 45s —— View job Security review — PR #3657
Skip gate reached: no security-relevant surface. This PR only touches test code and metadata:
No production/auth logic ( No security issues found. |
|
Last security-reviewed head: |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 1m 7s —— View job Security review — PR #3657 (re-run)
Skip gate reached: this head already has a successful security review that still applies. HEAD SHA Re-confirmed via No security issues found. |
|
Claude finished @kyle-sexton's task in 26s —— View job Code review — PR #3657
Skip gate reached: PR is merged (not open). Per the No code-review findings are being posted since the review lane doesn't apply to a merged PR. |
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
Closes #3447
Summary
Six
buildYtDlpArgscases omittedenv, soresolveYtDlpAuthArgsfell through toprocess.env. A runner withVIDEO_DIGEST_YT_DLP_COOKIES_FILE(or the legacyYOUTUBE_spelling) exported then failed the positional andnot.toContainassertions.Fix
Pass
env: {}in those six cases, matchingadapter-argv-conformance.test.js. Add a case that exports a cookies file onprocess.envand asserts isolated argv does not contain--cookies.knowledge 0.13.33 -> 0.13.34.
Verification
scripts/affected-tests.sh --runselected the Node suite (this runner reports NOT RUN for that ecosystem). Rannpx vitest run acquisition/build-yt-dlp-args.test.jswithVIDEO_DIGEST_YT_DLP_COOKIES_FILE=/tmp/should-not-appear.txtexported: 16/16 passed.Related
N/A