-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: u18 cherrypicks round 6 (#10711)
### Description Cherry-picks the following commits from master: - #10696 (3e27c74) - #10694 (140c1be) - #10704 (ab3fcb5, c025cb7) No new upgrade name has been added. Using following rebase todo: ``` # PR #10704 Branch build-deps-use-backport-of-cosmos-sdk-v0-46-15-10704- label onto pick 140c1be Save the contractKit for the auctioneer before overwriting it (#10694) pick 3e27c74 test: add proposal w/300 E(chainTimerService).getTimerBrand() calls (#10696) label base-build-deps-use-backport-of-cosmos-sdk-v0-46-15-10704- pick ab3fcb5 build(deps): use backport of cosmos-sdk v0.46.15 pick c025cb7 fix(cosmic-swingset): expect chain --halt-height exit status > 1 label pr-10704--build-deps-use-backport-of-cosmos-sdk-v0-46-15-10704- reset base-build-deps-use-backport-of-cosmos-sdk-v0-46-15-10704- # test: add proposal w/300 E(chainTimerService).getTimerBrand() calls (#10696) merge -C 5939b2a pr-10704--build-deps-use-backport-of-cosmos-sdk-v0-46-15-10704- # build(deps): use backport of cosmos-sdk v0.46.15 (#10704) ```
- Loading branch information
Showing
9 changed files
with
116 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/** | ||
* @file call getTimerBrand() 300 times in hopes of provoking BOYD. This is | ||
* intended for tests on mainFork for upgrade-18. If there's a similar need in | ||
* other tests, it can be included there as well. There would be no value in | ||
* including it in an upgrade of MainNet; it just spins cycles to provoke | ||
* garbage collection. | ||
*/ | ||
|
||
import { makeTracer } from '@agoric/internal'; | ||
import { E } from '@endo/far'; | ||
|
||
/// <reference types="@agoric/vats/src/core/types-ambient"/> | ||
/** @import {Instance} from '@agoric/zoe/src/zoeService/utils.js'; */ | ||
|
||
const trace = makeTracer('provokeBOYD', true); | ||
|
||
/** | ||
* @param {BootstrapPowers} powers | ||
*/ | ||
export const provokeBOYD = async ({ consume: { chainTimerService } }) => { | ||
trace(provokeBOYD.name); | ||
await null; | ||
|
||
for (let i = 0; i < 300; i += 1) { | ||
await E(chainTimerService).getTimerBrand(); | ||
} | ||
trace('done'); | ||
}; | ||
harden(provokeBOYD); | ||
|
||
export const getManifestForProvokeBOYD = () => { | ||
return { | ||
manifest: { | ||
[provokeBOYD.name]: { | ||
consume: { chainTimerService: true }, | ||
}, | ||
}, | ||
}; | ||
}; | ||
|
||
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */ | ||
export const defaultProposalBuilder = async () => | ||
harden({ | ||
sourceSpec: '@agoric/builders/scripts/testing/provokeBOYD.js', | ||
getManifestCall: ['getManifestForProvokeBOYD'], | ||
}); | ||
|
||
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ | ||
export default async (homeP, endowments) => { | ||
const dspModule = await import('@agoric/deploy-script-support'); | ||
const { makeHelpers } = dspModule; | ||
const { writeCoreEval } = await makeHelpers(homeP, endowments); | ||
await writeCoreEval(provokeBOYD.name, defaultProposalBuilder); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters