test: retain cross-version fixture failure and verify independent experience release

This commit is contained in:
Agent Workbench Dev
2026-11-06 17:49:31 +08:00
parent 0a46ba8dd0
commit 29551384dd
2 changed files with 18 additions and 1 deletions
@@ -88,7 +88,12 @@ try {
const before = read(path.join(root, 'formal/state-before.json')), originalHost = read(path.join(root, 'formal/host-before.json'));
compareRetained(before, current); assert.equal(host.identity.instanceId, originalHost.identity.instanceId);
if (mode === 'upgrade') {
assert.equal(read(path.join(root, 'cross-version-upgrade.json')).success, true);
// Explicitly select a new receipt after a fixture failure; the original
// failed receipt is never overwritten or counted as a success.
const cross = read(process.env.EXPERIENCE_CROSS_VERSION_RECEIPT ?? path.join(root, 'cross-version-upgrade.json'));
assert.equal(cross.success, true); assert.equal(cross.from, '1.25.10'); assert.equal(cross.to, version);
assert.equal(cross.realModelRequests, 0); assert.equal(cross.officialServiceTouched, false);
assert.equal(fs.realpathSync.native(cross.next), fs.realpathSync.native(read(path.join(root, 'install.json')).target));
for (const file of ['archive-verification.json', 'rebuild-result.json', 'installed-web/result.json', 'installed-electron/result.json']) {
const receipt = read(path.join(root, file));
assert.equal(receipt.success, true, file);