Move API-key-gated tests from test:local to test:live by file/suite split#2165
Merged
Move API-key-gated tests from test:local to test:live by file/suite split#2165
test:local to test:live by file/suite split#2165Conversation
Agent-Logs-Url: https://github.com/microsoft/TypeAgent/sessions/9658737f-ea5e-4bf6-bd11-e0b079d5e4d2 Co-authored-by: curtisman <12101885+curtisman@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Move tests requiring services from test:local to test:live
Move API-key-gated tests from Apr 8, 2026
test:local to test:live by file/suite split
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test:localwas still picking up tests that depend on external services and API keys via runtime gating (testIf/describeIf). This PR reclassifies those suites so service-dependent tests run undertest:liveinstead of local runs.Reclassify service-dependent suites to live
*.spec.tsto*.test.tsin:packages/aiclientpackages/knowPropackages/knowledgeProcessorpackages/memory/conversationpackages/memory/storagepackages/memory/website*.specpatterns.Add explicit live test scripts in affected packages
test:livescripts with--testPathPattern=".*[.]test[.]js"to each affected package so workspace-levelpnpm run test:liveincludes them.Align website online alias with live routing
packages/memory/website/package.json:test:onlinenow delegates totest:live(instead oftest:local) to match.onlinesuite intent.{ "scripts": { "test:local": "pnpm run jest-esm --testPathPattern=\".*[.]spec[.]js\"", "test:live": "pnpm run jest-esm --testPathPattern=\".*[.]test[.]js\"" } }Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
ip-api.com/opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node --no-warnings --experimental-vm-modules /home/REDACTED/work/TypeAgent/TypeAgent/ts/node_modules/.pnpm/jest-worker@29.7.0/node_modules/jest-worker/build/workers/processChild.js Agen�� ignore src/preload dules/.bin/sh electron.vite.prsh --logLevel error node k/Ty�� /bin/jest.js '--testPathPattern=.*[.]spec[.]js' 1 dules/.bin/sh gnore dist r uname(dns block)/opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node --no-warnings --experimental-vm-modules /home/REDACTED/work/TypeAgent/TypeAgent/ts/node_modules/.pnpm/jest-worker@29.7.0/node_modules/jest-worker/build/workers/processChild.js /hom�� build src/preload k/_temp/ghcca-node/node/bin/node electron.vite.prsh --logLevel .bin/node node k/Ty�� /bin/jest.js '--testPathPattern=.*[.]spec[.]js' 1 dules/.bin/sh gnore dist ct/node_modules/.bin/node node(dns block)/opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node --no-warnings --experimental-vm-modules /home/REDACTED/work/TypeAgent/TypeAgent/ts/node_modules/.pnpm/jest-worker@29.7.0/node_modules/jest-worker/build/workers/processChild.js Agen�� build src/preload uid-build electron.vite.prsh --logLevel error node Agen�� /bin/jest.js '--testPathPattern=.*[.]spec[.]js' 1 odules/pnpm/dist/node-gyp-bin/sh src/**/*.txt dist in/copyfiles node(dns block)www.electronjs.org/opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node /home/REDACTED/work/TypeAgent/TypeAgent/ts/node_modules/.pnpm/@electron+rebuild@4.0.3/node_modules/@electron/rebuild/lib/module-type/node-gyp/worker.js(dns block)If you need me to access, download, or install something from one of these locations, you can either: