mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
Run the temporary migration worker from the ordinary versioned application image. Prefer the target App Center compose images, then try the same upstream version on GHCR, Docker Hub and Quay before downtime. Reject inaccessible or incomplete images before portal upload. Cover UCS-only access, fallback, failure reporting, cleanup and migration integrity with regression tests. Thanks to xet7 !
11 lines
449 B
JavaScript
11 lines
449 B
JavaScript
'use strict';
|
|
const assert = require('node:assert/strict');
|
|
const { spawnSync } = require('node:child_process');
|
|
const path = require('node:path');
|
|
const result = spawnSync(process.execPath, ['--test', path.join(__dirname, 'ucsMigration.test.mjs')], {
|
|
encoding: 'utf8', env: process.env,
|
|
});
|
|
process.stdout.write(result.stdout);
|
|
process.stderr.write(result.stderr);
|
|
assert.equal(result.status, 0, 'Bundled UCS migration regression tests failed');
|