fix(ci): invoke Python fixtures without local tooling

This commit is contained in:
cesnimda
2026-10-20 09:26:05 +02:00
parent f9bf31c9a9
commit e5aba4cf69
4 changed files with 12 additions and 3 deletions
@@ -113,7 +113,7 @@ function seedPending(info: TestInfo, owner: Owner) {
expect(path.dirname(dataRoot)).toBe(realpathSync(os.tmpdir()));
expect(path.basename(dataRoot)).toMatch(/^jobtracker-e2e-[A-Za-z0-9][A-Za-z0-9_-]*$/);
const helper = path.resolve('e2e/helpers/seed-career-review.py');
const result = spawnSync('rtk', ['proxy', process.env.PLAYWRIGHT_PYTHON_PATH || 'python', '-X', 'utf8', helper], {
const result = spawnSync(process.env.PLAYWRIGHT_PYTHON_PATH || (process.platform === 'win32' ? 'python' : 'python3'), ['-X', 'utf8', helper], {
input: JSON.stringify({ dataRoot, ownerId: owner.id, ownerEmail: owner.email, profile: incoming(),
rawText: 'Synthetic pending extraction text — æøå', normalizedText: 'Synthetic pending normalized text; pending contact email; Norwegian B1.' }),
encoding: 'utf8', timeout: 15_000, maxBuffer: 1024 * 1024,