Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
04c98f3
Fix issue #39
Apr 28, 2018
0b3a3eb
Merge branch 'master' into fix/issue#39
May 3, 2018
3c1bba2
Reject an error instead of undefined
modood Aug 7, 2018
a481bae
add the possibility to specify query function name
Aug 15, 2018
9e86e71
add the possibility to specify query function name. wrapper update
Aug 15, 2018
dcbb3af
Merge pull request #158 from nklincoln/build
jiangyaoguo Aug 20, 2018
c37860b
Merge pull request #157 from mwnf/master
jiangyaoguo Aug 20, 2018
4c8cdde
fix PID rate controller for new client test mechanism
nklincoln Aug 20, 2018
bdeaaed
Changed simple benchmark to have multiple transactions in a batch
Aug 24, 2018
3808e87
Added event subscription approach to get block commit status instead …
Ram-srini Aug 14, 2018
271b7f2
Resolve absolute path of config file for fabric simple network
modood Aug 29, 2018
2081f32
Add empty line
panyu4 Sep 27, 2018
f6f7812
Merge pull request #179 from panyu4/fixTypo
feihujiang Sep 27, 2018
1fe8ba5
Merge pull request #51 from haojun/fix/issue#39
panyu4 Oct 8, 2018
1e9175f
Merge pull request #170 from mwnf/master
panyu4 Oct 8, 2018
378931b
Merge pull request #167 from NidhiCaliper/master
feihujiang Oct 9, 2018
4617b72
Set txnPerBatch default value
panyu4 Oct 9, 2018
e019305
Merge pull request #182 from panyu4/setTxnPerBatchDefaultValue
feihujiang Oct 9, 2018
c68c018
Merge pull request #160 from push1st1k/query-fcn-param
panyu4 Oct 9, 2018
c9e22ca
Merge pull request #164 from nklincoln/rate-control
feihujiang Oct 10, 2018
454ca43
Merge pull request #159 from Ram-srini/sawtooth_fix
feihujiang Oct 10, 2018
e9ab493
Fix typo and eslint error
panyu4 Oct 10, 2018
de115fc
Merge pull request #184 from panyu4/fixTypoAndEslintError
feihujiang Oct 10, 2018
4f267f7
Clarified Fabric SDK install instructions in docs
aklenik Oct 11, 2018
53b9890
Merge pull request #186 from aklenik/doc-fix
panyu4 Oct 11, 2018
ae30d81
Fixed composite rate controller logic and docs.
aklenik Oct 11, 2018
2bf2bb1
Fix length undefined
panyu4 Oct 12, 2018
c3e0ea5
Merge pull request #188 from panyu4/fixLengthUndefined
feihujiang Oct 12, 2018
366308d
Merge pull request #187 from aklenik/rate-fix
panyu4 Oct 15, 2018
d143670
add support for definable batch builders
mrubino-godaddy Oct 12, 2018
eebeb41
Changed the sawtooth adapter to take multiple rest end points
Ram-srini Oct 15, 2018
943b52b
Merge pull request #190 from Ram-srini/sawtooth_fix
feihujiang Oct 16, 2018
fcc9ea8
add issue and PR templates
nklincoln Oct 17, 2018
6f6150c
Merge pull request #191 from mtrubs/master
feihujiang Oct 18, 2018
b9d4db2
Merge pull request #194 from nklincoln/guides
aklenik Oct 19, 2018
340da31
fix a bug of monitor.js
bitpeng Oct 29, 2018
6ffbcab
Merge pull request #203 from bitpeng/modmonitor
panyu4 Oct 30, 2018
43ad3bc
Fix sawtooth test not exit normally
feihujiang Nov 6, 2018
d1f45b0
Merge pull request #212 from feihujiang/fixNotExitNormally
panyu4 Nov 6, 2018
1a2b5b9
Use unified config framework
feihujiang Oct 26, 2018
bc14d29
Merge pull request #202 from feihujiang/useUnifiedConfigFramework
aklenik Nov 6, 2018
637748b
Add unified logging framework
panyu4 Oct 31, 2018
7d70116
Merge pull request #208 from panyu4/unified-logging
aklenik Nov 12, 2018
2fef720
Removed tape-related code
aklenik Nov 15, 2018
b031843
Merge pull request #217 from aklenik/remove-tape
panyu4 Nov 17, 2018
3e28781
Consolidated network artifacts and configs
aklenik Nov 18, 2018
687e91d
Merge pull request #220 from aklenik/fix-network-names
panyu4 Nov 19, 2018
f6dea28
Refactored Promise chains in core/client/blockchain/Fabric parts
aklenik Nov 20, 2018
56719f1
fix invalid CPU statistics
houqinghui Nov 21, 2018
b5fd1cd
Merge pull request #224 from houqinghui/caliper_cpu
panyu4 Nov 21, 2018
3e55a63
Merge pull request #223 from aklenik/refactor-promise-chains
panyu4 Nov 22, 2018
e10a679
Add fixed feedback rate
feihujiang Oct 29, 2018
d776013
Merge pull request #215 from feihujiang/trustedSQLRate
aklenik Nov 23, 2018
0a71c25
add config scripts to setup target test platform
nklincoln Nov 26, 2018
fea6105
Merge pull request #230 from nklincoln/scrips
aklenik Nov 26, 2018
cd30472
move config files' platform related properties into network config files
panyu4 Nov 24, 2018
5827dd3
Merge pull request #228 from panyu4/consolidateConfig
aklenik Nov 27, 2018
b377db6
Merge branch 'newbranch' into trustBenchTest
panyu4 Dec 11, 2018
db9d02b
move the network configuration files into the corresponding network f…
panyu4 Nov 28, 2018
0745adf
Enable display of disc r/w
nklincoln Nov 27, 2018
1709578
Check whther chaincode installed and instantiated
feihujiang Dec 4, 2018
e3f8e60
Add an adapter folder and some instructions
panyu4 Dec 11, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ node_modules/*
package-lock.json
output.log

#Ignore default Caliper log location
log/

# Ignore any generted html files
*.html

Expand Down
13 changes: 3 additions & 10 deletions .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,17 @@ echo "---- Target version ${VERSION}"
if [ "${BENCHMARK}" == "composer" ]; then
# Run version
if [ "${VERSION}" == "0.19" ]; then
npm install composer-admin@">=0.19.0 <0.20.0"
npm install composer-client@">=0.19.0 <0.20.0"
npm install composer-common@">=0.19.0 <0.20.0"
npm install fabric-client@1.1.0
npm run composer-deps
npm run test -- composer
else
echo "Unknown version ${VERSION} for benchmark ${BENCHMARK}"
exit 1
fi
elif [ "${BENCHMARK}" == "drm" ]; then
npm install grpc@1.10.1
npm install fabric-ca-client@1.1.0
npm install fabric-client@1.1.0
npm run fabric-deps
npm run test -- drm
elif [ "${BENCHMARK}" == "simple" ]; then
npm install grpc@1.10.1
npm install fabric-ca-client@1.1.0
npm install fabric-client@1.1.0
npm run fabric-deps
npm run test -- simple
else
echo "Unknown target benchmark ${BENCHMARK}"
Expand Down
39 changes: 39 additions & 0 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--- Provide a general summary of the issue in the Title above -->

## Context
<!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug -->

## Expected Behavior
<!--- Tell us what should happen -->

## Actual Behavior
<!--- Tell us what happens instead -->

## Possible Fix
<!--- Not obligatory, but suggest a fix or reason for the bug -->

## Steps to Reproduce
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug include code to reproduce, if relevant -->
1.
2.
3.
4.

## Existing issues
<!-- Have you searched for any existing issues or are their any similar issues that you've found? -->
- [ ] [Stack Overflow issues](http://stackoverflow.com/tags/hyperledger-caliper)
- [ ] [GitHub Issues](https://github.com/hyperledger/caliper/issues)
- [ ] [Rocket Chat history](https://chat.hyperledger.org/channel/caliper)

<!-- please include any links to issues here -->

## Context
<!--- How has this bug affected you? What were you trying to accomplish? -->

## Your Environment
<!--- Include as many relevant details about the environment you experienced the bug in -->
* Version used:
* Environment name and version (e.g. Chrome 39, node.js 5.4):
* Operating System and version (desktop or mobile):
* Link to your project:
42 changes: 42 additions & 0 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!--- Provide a general summary of the pull request in the Title above -->

## Checklist
- [ ] A link to the issue/user story that the pull request relates to
- [ ] How to recreate the problem without the fix
- [ ] Design of the fix
- [ ] How to prove that the fix works
- [ ] Automated tests that prove the fix keeps on working
- [ ] Documentation - any JSDoc, website, or Stackoverflow answers?


## Issue/User story
<!--- What issue / user story is this for -->

## Steps to Reproduce
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug include code to reproduce, if relevant -->
1.
2.
3.
4.


## Existing issues
<!-- Have you searched for any existing issues or are their any similar issues that you've found? -->
- [ ] [Stack Overflow issues](http://stackoverflow.com/tags/hyperledger-caliper)
- [ ] [GitHub Issues](https://github.com/hyperledger/caliper/issues)
- [ ] [Rocket Chat history](https://chat.hyperledger.org/channel/caliper)

<!-- please include any links to issues here -->

## Design of the fix
<!-- Focus on why you designed this fix this way, and what was discounted. Do not describe just the code - we can read that! -->

## Validation of the fix
<!-- Over and above the tests, what has been done to prove this works? -->

## Automated Tests
<!-- Please describe the automated tests that are put in place to stop this recurring -->

## What documentation has been provided for this pull request
<!-- JSDocs, WebSite and answers to Stack Overflow questions are possible documentation sources -->
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ Run `npm install` in caliper folder to install dependencies locally

### Install blockchain SDKs
* Fabric
* Install using the repository
* run `npm install grpc@1.10.1 fabric-ca-client fabric-client` in the root folder
* If you want to test fabric with old version such as v1.1.0, you should install compatible client SDK,
e.g. `npm install fabric-ca-client@1.1.0 fabric-client@1.1.0`
* Install using the repository (for the supported Fabric v1.1)
* run `npm install grpc@1.10.1 fabric-ca-client@1.1.0 fabric-client@1.1.0` in the root folder
* If you want to test Fabric with old version such as v1.0.0, you should install compatible client SDK,
e.g. `npm install grpc@1.10.1 fabric-ca-client@1.0.0 fabric-client@1.0.0`

* Sawtooth
* Install dependencies
Expand All @@ -55,6 +55,7 @@ Run `npm install` in caliper folder to install dependencies locally

* Composer
* Install dependencies

The easiest way to get started using a target version of Composer is to update the main package.json file to include the required Composer and Fabric modules, and subsequently run an `npm install` command. It is important that the Composer and Fabric versions are compatible.

```
Expand Down
6 changes: 5 additions & 1 deletion benchmark/composer/composer-micro/query-asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
'use strict';

const Util = require('../../../src/comm/util');
const logger = Util.getLogger('query-asset.js');
const TxStatus = require('../../../src/comm/transaction');

module.exports.info = 'Query Asset Performance Test';
Expand Down Expand Up @@ -75,14 +76,17 @@ module.exports.init = async function(blockchain, context, args) {
vehicles.push(vehicle);
}

Util.log(`About to add ${vehicles.length} Vehicles to Asset Registry`);
logger.debug(`About to add ${vehicles.length} Vehicles to Asset Registry`);
let vehicleRegistry = await busNetConnection.getAssetRegistry(vda_ns + '.Vehicle');
await vehicleRegistry.addAll(vehicles);
};

module.exports.run = function() {
let invoke_status = new TxStatus(qryRef++);

if(busNetConnection.engine) {
busNetConnection.engine.submitCallback(1);
}
// use the pre-compiled query named 'selectAllCarsByColour' that is within the business
// network queries file
return busNetConnection.query('selectAllCarsByColour', { colour: matchColor})
Expand Down
14 changes: 7 additions & 7 deletions benchmark/composer/composer-samples/basic-sample-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports.info = 'Basic Sample Network Performance Test';

const composerUtils = require('../../../src/composer/composer_utils');
const removeExisting = require('../composer-test-utils').clearAll;
const Log = require('../../../src/comm/util').log;
const logger = require('../../../src/comm/util').getLogger('basic-sample-network.js');
const os = require('os');

const namespace = 'org.example.basic';
Expand Down Expand Up @@ -71,7 +71,7 @@ module.exports.init = async function(blockchain, context, args) {
participant.lastName = 'wombat';
await participantRegistry.add(participant);

Log('About to create new participant card');
logger.debug('About to create new participant card');
let userName = 'User1_' + uuid;
let newConnection = await composerUtils.obtainConnectionForParticipant(busNetConnections.get('admin'), busNetName, participant, userName);
busNetConnections.set(userName, newConnection);
Expand All @@ -88,17 +88,17 @@ module.exports.init = async function(blockchain, context, args) {
// Conditionally add/update Test Assets
let populated = await assetRegistry.exists(assets[0].getIdentifier());
if (!populated) {
Log('Adding test assets ...');
logger.debug('Adding test assets ...');
await assetRegistry.addAll(assets);
Log('Asset addition complete ...');
logger.debug('Asset addition complete ...');
} else {
Log('Updating test assets ...');
logger.debug('Updating test assets ...');
await removeExisting(assetRegistry, 'ASSET_' + uuid);
await assetRegistry.addAll(assets);
Log('Asset update complete ...');
logger.debug('Asset update complete ...');
}
} catch (error) {
Log('error in test init(): ', error);
logger.error('error in test init(): ', error);
return Promise.reject(error);
}
};
Expand Down
12 changes: 6 additions & 6 deletions benchmark/composer/composer-samples/bond-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
'use strict';

const removeExisting = require('../composer-test-utils').clearAll;
const Log = require('../../../src/comm/util').log;
const logger = require('../../../src/comm/util').getLogger('bond-network.js');
const os = require('os');
const uuid = os.hostname() + process.pid; // UUID for client within test

Expand All @@ -56,18 +56,18 @@ module.exports.init = async function(blockchain, context, args) {
participant.name = 'penguin';
let populated = await participantRegistry.exists(participant.getIdentifier());
if (!populated) {
Log('Adding test assets ...');
logger.debug('Adding test assets ...');
await participantRegistry.add(participant);
Log('Asset addition complete ...');
logger.debug('Asset addition complete ...');
} else {
Log('Updating test assets ...');
logger.debug('Updating test assets ...');
// remove all previously created items form test run
let assetRegistry = await busNetConnection.getAssetRegistry(namespace + '.BondAsset');
await removeExisting(assetRegistry, 'ISIN_' + uuid);
Log('Asset update complete ...');
logger.debug('Asset update complete ...');
}
} catch (error) {
Log('error in test init(): ', error);
logger.error('error in test init(): ', error);
return Promise.reject(error);
}
};
Expand Down
12 changes: 6 additions & 6 deletions benchmark/composer/composer-samples/digitalproperty-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
'use strict';

const removeExisting = require('../composer-test-utils').clearAll;
const Log = require('../../../src/comm/util').log;
const logger = require('../../../src/comm/util').getLogger('digitalproperty-network.js');
const os = require('os');
const uuid = os.hostname() + process.pid; // UUID for client within test

Expand Down Expand Up @@ -77,18 +77,18 @@ module.exports.init = async function(blockchain, context, args) {
// Conditionally add/update Test Assets
let populated = await assetRegistry.exists(assets[0].getIdentifier());
if (!populated) {
Log('Adding test assets ...');
logger.debug('Adding test assets ...');
await participantRegistry.addAll([participant]);
await assetRegistry.addAll(assets);
Log('Asset addition complete ...');
logger.debug('Asset addition complete ...');
} else {
Log('Updating test assets ...');
logger.debug('Updating test assets ...');
await removeExisting(assetRegistry, 'TITLE_' + uuid);
await assetRegistry.updateAll(assets);
Log('Asset update complete ...');
logger.debug('Asset update complete ...');
}
} catch (error) {
Log('error in test init(): ', error);
logger.error('error in test init(): ', error);
return Promise.reject(error);
}
};
Expand Down
12 changes: 6 additions & 6 deletions benchmark/composer/composer-samples/marbles-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
'use strict';

const removeExisting = require('../composer-test-utils').clearAll;
const Log = require('../../../src/comm/util').log;
const logger = require('../../../src/comm/util').getLogger('marbles-network.js');
const os = require('os');
const uuid = os.hostname() + process.pid; // UUID for client within test

Expand Down Expand Up @@ -79,18 +79,18 @@ module.exports.init = async function(blockchain, context, args) {
// Conditionally add/update Test Assets
let populated = await assetRegistry.exists(marbles[0].getIdentifier());
if (!populated) {
Log('Adding test assets ...');
logger.debug('Adding test assets ...');
await participantRegistry.addAll(players);
await assetRegistry.addAll(marbles);
Log('Asset addition complete ...');
logger.debug('Asset addition complete ...');
} else {
Log('Updating test assets ...');
logger.debug('Updating test assets ...');
await removeExisting(assetRegistry, 'MARBLE_' + uuid);
await assetRegistry.updateAll(marbles);
Log('Asset update complete ...');
logger.debug('Asset update complete ...');
}
} catch (error) {
Log('error in test init(): ', error);
logger.error('error in test init(): ', error);
return Promise.reject(error);
}
};
Expand Down
12 changes: 6 additions & 6 deletions benchmark/composer/composer-samples/perishable-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
'use strict';

const removeExisting = require('../composer-test-utils').clearAll;
const Log = require('../../../src/comm/util').log;
const logger = require('../../../src/comm/util').getLogger('perishable-network.js');
const os = require('os');
const uuid = os.hostname() + process.pid; // UUID for client within test

Expand Down Expand Up @@ -132,25 +132,25 @@ module.exports.init = async function(blockchain, context, args) {
// Conditionally add/update registries
let populated = await growerRegistry.exists(growers[0].getIdentifier());
if (!populated) {
Log('Adding test assets ...');
logger.debug('Adding test assets ...');
await growerRegistry.addAll(growers);
await importerRegistry.addAll(importers);
await shipperRegistry.addAll([shipper]);
await contractRegistry.addAll(contracts);
await shipmentRegistry.addAll(shipments);
Log('Asset addition complete ...');
logger.debug('Asset addition complete ...');
} else {
Log('Updating test assets ...');
logger.debug('Updating test assets ...');
await removeExisting(growerRegistry, 'Grower_' + uuid);
await removeExisting(importerRegistry, 'Importer_' + uuid);
await removeExisting(shipmentRegistry, 'SHIP_' + uuid);
await growerRegistry.addAll(growers);
await importerRegistry.addAll(importers);
await shipmentRegistry.addAll(shipments);
Log('Asset update complete ...');
logger.debug('Asset update complete ...');
}
} catch (error) {
Log('error in test init(): ', error);
logger.error('error in test init(): ', error);
return Promise.reject(error);
}
};
Expand Down
12 changes: 6 additions & 6 deletions benchmark/composer/composer-samples/vehicle-lifecycle-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
'use strict';

const removeExisting = require('../composer-test-utils').clearAll;
const Log = require('../../../src/comm/util').log;
const logger = require('../../../src/comm/util').getLogger('vehicle-lifecycle-network.js');
const os = require('os');
const uuid = os.hostname() + process.pid; // UUID for client within test

Expand Down Expand Up @@ -143,15 +143,15 @@ module.exports.init = async function(blockchain, context, args) {
try {
if (!populated) {
// First test pass, just add
Log('Adding test assets ...');
logger.debug('Adding test assets ...');
await manufacturerRegistry.addAll(manufacturers);
await ownerRegistry.addAll(privateOwners);
await vehicleRegistry.addAll(vehicles);
await orderRegistry.addAll(orders);
Log('Asset addition complete ...');
logger.debug('Asset addition complete ...');
} else {
// Second test pass, update/remove
Log('Updating test assets ...');
logger.debug('Updating test assets ...');
await removeExisting(manufacturerRegistry, 'MANUFACTURER_' + uuid);
await removeExisting(ownerRegistry, 'PRIVATEOWNER_' + uuid);
await removeExisting(vehicleRegistry, 'VEHICLE_' + uuid);
Expand All @@ -160,10 +160,10 @@ module.exports.init = async function(blockchain, context, args) {
await ownerRegistry.addAll(privateOwners);
await vehicleRegistry.addAll(vehicles);
await orderRegistry.addAll(orders);
Log('Asset update complete ...');
logger.debug('Asset update complete ...');
}
} catch (error) {
Log('error in test init(): ', error);
logger.error('error in test init(): ', error);
return Promise.reject(error);
}
};
Expand Down
Loading