Skip to content

Commit

Permalink
test(boot): use separate bundle caches to prevent concurrent flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jun 6, 2024
1 parent eaa7c5b commit d7f6c84
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/boot/test/bootstrapTests/net-ibc-upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const makeTestContext = async t => {
}) as Baggage;
const zone = makeDurableZone(baggage);

const bundleDir = 'bundles/vaults';
const bundleDir = 'bundles/net-ibc-upgrade';
const bundleCache = await makeNodeBundleCache(
bundleDir,
{ cacheSourceMaps: false },
Expand Down
10 changes: 7 additions & 3 deletions packages/boot/test/bootstrapTests/vats-restart.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ const PLATFORM_CONFIG = '@agoric/vm-config/decentral-itest-vaults-config.json';

export const makeTestContext = async t => {
console.time('DefaultTestContext');
const swingsetTestKit = await makeSwingsetTestKit(t.log, 'bundles/vaults', {
configSpecifier: PLATFORM_CONFIG,
});
const swingsetTestKit = await makeSwingsetTestKit(
t.log,
'bundles/vats-restart',
{
configSpecifier: PLATFORM_CONFIG,
},
);

const { runUtils, storage } = swingsetTestKit;
console.timeLog('DefaultTestContext', 'swingsetTestKit');
Expand Down
5 changes: 4 additions & 1 deletion packages/boot/test/bootstrapTests/vaults-integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ const likePayouts = (collateral, minted) => ({

const makeDefaultTestContext = async t => {
console.time('DefaultTestContext');
const swingsetTestKit = await makeSwingsetTestKit(t.log, 'bundles/vaults');
const swingsetTestKit = await makeSwingsetTestKit(
t.log,
'bundles/vaults-integration',
);

const { runUtils, storage } = swingsetTestKit;
console.timeLog('DefaultTestContext', 'swingsetTestKit');
Expand Down
10 changes: 7 additions & 3 deletions packages/boot/test/bootstrapTests/vaults-upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ const makeDefaultTestContext = async (
} = {},
) => {
logTiming && console.time('DefaultTestContext');
const swingsetTestKit = await makeSwingsetTestKit(t.log, 'bundles/vaults', {
storage,
});
const swingsetTestKit = await makeSwingsetTestKit(
t.log,
'bundles/vaults-upgrade',
{
storage,
},
);

const { readLatest, runUtils } = swingsetTestKit;
({ storage } = swingsetTestKit);
Expand Down
10 changes: 7 additions & 3 deletions packages/boot/test/bootstrapTests/walletFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ import { makeWalletFactoryDriver } from '../../tools/drivers.ts';
const { Fail } = assert;

export const makeWalletFactoryContext = async t => {
const swingsetTestKit = await makeSwingsetTestKit(t.log, 'bundles/vaults', {
configSpecifier: '@agoric/vm-config/decentral-main-vaults-config.json',
});
const swingsetTestKit = await makeSwingsetTestKit(
t.log,
'bundles/walletFactory',
{
configSpecifier: '@agoric/vm-config/decentral-main-vaults-config.json',
},
);

const { runUtils, storage } = swingsetTestKit;
console.timeLog('DefaultTestContext', 'swingsetTestKit');
Expand Down
10 changes: 7 additions & 3 deletions packages/boot/test/bootstrapTests/zcf-upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ const ZCF_PROBE_SRC = './zcfProbe.js';

export const makeZoeTestContext = async t => {
console.time('ZoeTestContext');
const swingsetTestKit = await makeSwingsetTestKit(t.log, 'bundles/zoe', {
configSpecifier: '@agoric/vm-config/decentral-demo-config.json',
});
const swingsetTestKit = await makeSwingsetTestKit(
t.log,
'bundles/zcf-upgrade',
{
configSpecifier: '@agoric/vm-config/decentral-demo-config.json',
},
);

const { runUtils } = swingsetTestKit;
console.timeLog('DefaultTestContext', 'swingsetTestKit');
Expand Down

0 comments on commit d7f6c84

Please sign in to comment.