mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-26 18:35:38 +08:00
fix(pipeline): decouple Runner from extension permissions (LANG-54) (#2723)
* fix(pipeline): decouple runner from extension allowlist Co-authored-by: multica-agent <[email protected]> * fix(pipeline): complete runner diagnostics and real runtime coverage Co-authored-by: multica-agent <[email protected]> --------- Co-authored-by: multica-agent <[email protected]>
This commit is contained in:
co-authored by
multica-agent
parent
5a6ddbff6f
commit
d9e4e7d9df
@@ -0,0 +1,30 @@
|
||||
import { defineConfig, devices } from '@playwright/test';
|
||||
|
||||
const port = process.env.LANGBOT_RUNNER_WEB_PORT;
|
||||
if (!port || !process.env.LANGBOT_RUNNER_API_URL) {
|
||||
throw new Error(
|
||||
'Run through tests/e2e/test_runner_plugin_runtime.py with its isolated backend and SDK runtime',
|
||||
);
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
testDir: './tests/e2e',
|
||||
testMatch: 'runner-real-runtime.spec.ts',
|
||||
workers: 1,
|
||||
retries: 0,
|
||||
timeout: 120_000,
|
||||
reporter: 'list',
|
||||
outputDir: process.env.LANGBOT_RUNNER_BROWSER_OUTPUT,
|
||||
use: {
|
||||
baseURL: `http://127.0.0.1:${port}`,
|
||||
trace: 'retain-on-failure',
|
||||
...devices['Desktop Chrome'],
|
||||
},
|
||||
webServer: {
|
||||
command: `node node_modules/vite/bin/vite.js preview --host 127.0.0.1 --port ${port} --strictPort`,
|
||||
url: `http://127.0.0.1:${port}`,
|
||||
reuseExistingServer: false,
|
||||
timeout: 60_000,
|
||||
env: { VITE_API_PROXY_TARGET: process.env.LANGBOT_RUNNER_API_URL },
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user