Releases: holochain/tryorama
Releases · holochain/tryorama
v0.19.0
Added
- A new optional field
labelwas added to the typesAppWithOptions,ConductorOptions,CreateConductorOptions, and to the functionaddConductor. It allows overriding the default label which will prefix log messages of that Conductor instance. - A new method
integratedOpsCountthat polls for integrated ops and checks if the number of integrated ops is equal to the desired number for a given dna hash. (#305)
Removed
- BREAKING: Utility function
conductorCellsDhtSynchas been removed. UsedhtSyncdirectly instead. (#305)
Changed
- Log messages from Conductors that were created with
addPlayersfunctions are now prefixed byTryorama - Player #where "#" is the Player index. This makes it easier to distinguish log messages from different conductors. (#302)
Fixed
- When creating conductors with
Scenario#addPlayers,Scenario#installAppsForPlayers,Scenario#installSameAppForPlayers,Scenario#addPlayersWithApps, andScenario#addPlayersWithSameAppeach conductor is created sequentially and waits for startup. This is a workaround to avoid connection failures which can cause test failures. (#303) - Fixed flaky behavior in recognizing conductor startup success. (#303)
v0.19.0-dev.2
Added
- A new method storageArc that polls for network metrics to check if an agent's storage arc is equal to a desired storage arc for a given dna hash. (#301)
- A new configuration field targetArcFactor has been added to NetworkConfig, allowing test scenarios to be written with 0-arc conductors (#300)
Fixed
- Network options are now applied before the conductor launches, to ensure they actually alter the conductor configuration. (#300)
v0.19.0-dev.1
Fixed
- Upgrade all dependencies to Holochain v0.6.
v0.18.3
v0.18.2
Added
- A new method
Scenario#addPlayersthat creates the specified number of conductors and generates an agent per conductor. - A new method
Scenario#installAppsForPlayersthat installs the specified apps for the provided players. The combination of these two methods caters for the use cases where agent keys are generated prior to app installation for further usage, e.g. when generating mem proofs in a separate step. - A new method
Scenario#installSameAppForPlayersthat installs the specified app for the provided players. In contrast toinstallAppsForPlayersthis is a simplified interface that just takes one app with options and install it for all players equally. - A new method
Scenario#addPlayersWithSameAppthat creates players and installs the same specified app for each player. A counterpart toaddPlayersWithApps, this is also a simplified interface for the most common case of installing the same app for each player.
Changed
- Updated dependencies to latest versions.
- BREAKING: Type
Playeris now a conductor with an associated agent key. It used to be the conductor with an installed app for the agent. That has been renamed toPlayerAppin alignment with the typeAgentApp(app id + agent key + cells), whichPlayerAppextends.
v0.18.1
Added
- More options for conductor startup. All can be left at defaults in most cases but the defaults provided by Tryorama
are more appropriate for testing than the defaults that Holochain provides. The new options areinitiateJitterMs,
roundTimeoutMsandtransportTimeoutS.
v0.18.0
Changed
- The utility function
dhtSyncparametertimeoutMsnow defaults to 60000 milliseconds, and the parameterintervalMsnow defaults to 500 milliseconds.
Fixed
- Return an error if spawning
kitsune2-bootstrap-srvfails - The utility functions
dhtSyncandconductorCellsDhtSyncnow check that all Ops have been integrated and are not in limbo.
v0.18.0-rc.1
Fixed
- Fix
js-yamlstill included as a dev-dependency
v0.18.0-rc.0
Added
NetworkConfigwith options to configure gossip in conductors and scenarios.
Removed
- TryCP server, client and test utilities for TryCP conductors.
Changed
- Update to
@holochain/[email protected]and update types accordingly. - Remove tape as test runner and switch to native NodeJS test runner and assertion library.
v0.18.0.dev.4
Fixed
- Local: Conductor startup string parsing. This lead to flaky tests because the client attempted to connect to Holochain before it was fully started up.