Skip to content

Commit

Permalink
fix(runner): support new vm-config boostrap
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Jan 30, 2025
1 parent 12c8e04 commit 9021509
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions runner/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ const defaultStageDurationMinutes = 30;
const defaultNumberStages = 4 + 2;

const defaultBootstrapConfigs = {
loadgen: '@agoric/vats/decentral-loadgen-config.json',
demo: '@agoric/vats/decentral-demo-config.json',
base: '@agoric/vats/decentral-config.json',
loadgen: 'decentral-loadgen-config.json',
demo: 'decentral-demo-config.json',
base: 'decentral-config.json',
custom: undefined,
};

Expand Down Expand Up @@ -334,9 +334,18 @@ const main = async (progName, rawArgs, powers) => {
Object.entries(bootstrapConfigs).map(async ([name, identifier]) => [
name,
identifier &&
(await importMetaResolve(identifier, import.meta.url).catch(
() => {},
)),
(await importMetaResolve(
`@agoric/vm-config/${identifier}`,
import.meta.url,
)
.catch(() =>
importMetaResolve(
`@agoric/vats/${identifier}`,
import.meta.url,
),
)
.catch(() => importMetaResolve(identifier, import.meta.url))
.catch(() => {})),
]),
).then((entries) => {
/** @type {Record<keyof typeof defaultBootstrapConfigs, string | undefined>} */
Expand Down Expand Up @@ -612,7 +621,7 @@ const main = async (progName, rawArgs, powers) => {
const firstEmptyBlockKit = makePromiseKit();
resolveFirstEmptyBlock = firstEmptyBlockKit.resolve;

await tryTimeout(2 * 60 * 1000, async () => {
await tryTimeout(5 * 60 * 1000, async () => {
await Promise.race([
done,
slogMonitorDone,
Expand Down

0 comments on commit 9021509

Please sign in to comment.