release: restore v2.1.19 baseline for v2.1.24
CI / verify (push) Has been cancelled

Restore the v2.1.19 application baseline and retain only the focused import preflight summary with duplicate, unavailable, destination, job, and size-limit visibility.
This commit is contained in:
Sucukdeluxe
2026-08-17 04:25:22 +02:00
parent 9a213a7395
commit d7c9f287e4
87 changed files with 2185 additions and 16125 deletions
-88
View File
@@ -171,94 +171,6 @@ test('byse empty filecode WITHOUT explicit rejection still polls recovery', asyn
assert.ok(listCalls >= 2, 'recovery polling must run when there is no explicit rejection');
});
test('byse never recovers an old file after a failed baseline', async () => {
stubByseUploadServer();
const abort = new AbortController();
const fileName = path.basename(tmpFile);
let listCalls = 0;
requestRouter = async (url, opts) => {
if (/\/file\/list/.test(String(url))) {
listCalls++;
if (listCalls === 1) {
return {
statusCode: 503,
headers: { 'content-type': 'text/html' },
body: { text: async () => '<html>baseline-token=SYNTHETIC_BYSE_BASELINE</html>' }
};
}
abort.abort();
return {
statusCode: 200,
headers: { 'content-type': 'application/json' },
body: { text: async () => JSON.stringify({ status: 200, result: { files: [{ file_code: 'OLD_BYSE_123', title: fileName }] } }) }
};
}
if (opts && opts.body && typeof opts.body[Symbol.asyncIterator] === 'function') {
for await (const chunk of opts.body) { if (chunk && chunk.length === -1) break; }
}
return {
statusCode: 200,
headers: { 'content-type': 'application/json' },
body: { text: async () => JSON.stringify({ status: 200, msg: 'OK' }) }
};
};
await assert.rejects(
() => uploadFile('byse.sx', tmpFile, 'VALIDKEY', null, abort.signal, null),
(err) => {
assert.doesNotMatch(err.message, /SYNTHETIC_BYSE_BASELINE/);
assert.equal(err.diagnostic.phase, 'recovery-baseline');
assert.equal(err.diagnostic.http, 503);
return true;
}
);
assert.equal(listCalls, 1);
});
test('byse recovery rejects ambiguous same-title candidates', async () => {
stubByseUploadServer();
const abort = new AbortController();
const fileName = path.basename(tmpFile);
let listCalls = 0;
requestRouter = async (url, opts) => {
if (/\/file\/list/.test(String(url))) {
listCalls++;
if (listCalls === 1) {
return { statusCode: 200, headers: {}, body: { text: async () => '{"status":200,"result":{"files":[]}}' } };
}
abort.abort();
return {
statusCode: 200,
headers: {},
body: {
text: async () => JSON.stringify({
status: 200,
result: {
files: [
{ file_code: 'PARALLEL_A', title: fileName },
{ file_code: 'PARALLEL_B', title: fileName }
]
}
})
}
};
}
if (opts && opts.body && typeof opts.body[Symbol.asyncIterator] === 'function') {
for await (const chunk of opts.body) { if (chunk && chunk.length === -1) break; }
}
return {
statusCode: 200,
headers: { 'content-type': 'application/json' },
body: { text: async () => JSON.stringify({ status: 200, msg: 'OK' }) }
};
};
await assert.rejects(
() => uploadFile('byse.sx', tmpFile, 'VALIDKEY', null, abort.signal, null),
(err) => err.hosterTransient === true
);
});
function stubBysePost(response) {
requestRouter = async (url, opts) => {
const u = String(url);