Skip to content

Commit

Permalink
feat(mojaloop/3000): higher capacity bulk tests for load charact...
Browse files Browse the repository at this point in the history
feat(mojaloop/3000):  higher capacity bulk tests for load characterisation - mojaloop/project#3000
- updated @mojaloop/platform-shared-lib-nodejs-kafka-client-lib" to ^0.2.14
- made changes based on the client-lib changes

chore: disable test-dependencies on merges to master/releases
- test-dependencies will only be executed on PRs
  • Loading branch information
mdebarros committed Nov 9, 2022
1 parent 0d74a2d commit cd14508
Show file tree
Hide file tree
Showing 10 changed files with 467 additions and 337 deletions.
9 changes: 3 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -653,11 +653,11 @@ workflows:
- setup
filters:
tags:
only: /.*/
ignore: /.*/
branches:
ignore:
- /feature*/
- /bugfix*/
- master
- main

- test-lint:
context: org-global
Expand Down Expand Up @@ -748,7 +748,6 @@ workflows:
- build-local
- pr-tools/pr-title-check
- validate-openapi
- test-dependencies
- test-lint
- test-unit
- test-integration
Expand Down Expand Up @@ -778,7 +777,6 @@ workflows:
- build-local
- pr-tools/pr-title-check
- validate-openapi
- test-dependencies
- test-lint
- test-unit
- test-integration
Expand All @@ -799,7 +797,6 @@ workflows:
- build-local
- pr-tools/pr-title-check
- validate-openapi
- test-dependencies
- test-lint
- test-unit
- test-integration
Expand Down
6 changes: 3 additions & 3 deletions modules/api-svc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,17 @@
"@babel/preset-env": "^7.20.2",
"@redocly/openapi-cli": "^1.0.0-beta.94",
"@types/jest": "^29.2.2",
"babel-jest": "^29.3.0",
"babel-jest": "^29.3.1",
"eslint": "^8.27.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.4",
"jest": "^29.3.0",
"jest": "^29.3.1",
"jest-junit": "^14.0.1",
"nock": "^13.2.9",
"npm-check-updates": "^16.3.18",
"openapi-response-validator": "^12.0.2",
"openapi-typescript": "^5.4.1",
"openapi-typescript": "^6.0.1",
"redis-mock": "^0.56.3",
"replace": "^1.2.2",
"standard-version": "^9.5.0",
Expand Down
6 changes: 3 additions & 3 deletions modules/outbound-command-event-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"dependencies": {
"@mojaloop/api-snippets": "^16.0.6",
"@mojaloop/central-services-shared": "^17.3.1",
"@mojaloop/logging-bc-client-lib": "^0.1.15",
"@mojaloop/logging-bc-public-types-lib": "^0.1.12",
"@mojaloop/logging-bc-client-lib": "^0.1.16",
"@mojaloop/logging-bc-public-types-lib": "^0.1.13",
"@mojaloop/sdk-scheme-adapter-private-shared-lib": "workspace:^",
"ajv": "^8.11.0",
"convict": "^6.2.3",
Expand All @@ -65,7 +65,7 @@
"@typescript-eslint/parser": "^5.42.1",
"copyfiles": "^2.4.1",
"eslint": "^8.27.0",
"jest": "^29.3.0",
"jest": "^29.3.1",
"nodemon": "^2.0.20",
"npm-check-updates": "^16.3.18",
"replace": "^1.2.2",
Expand Down
6 changes: 3 additions & 3 deletions modules/outbound-domain-event-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
},
"dependencies": {
"@mojaloop/api-snippets": "^16.0.6",
"@mojaloop/logging-bc-client-lib": "^0.1.15",
"@mojaloop/logging-bc-public-types-lib": "^0.1.12",
"@mojaloop/logging-bc-client-lib": "^0.1.16",
"@mojaloop/logging-bc-public-types-lib": "^0.1.13",
"@mojaloop/sdk-scheme-adapter-private-shared-lib": "workspace:^",
"convict": "^6.2.3",
"express": "^4.18.2",
Expand All @@ -63,7 +63,7 @@
"@typescript-eslint/parser": "^5.42.1",
"copyfiles": "^2.4.1",
"eslint": "^8.27.0",
"jest": "^29.3.0",
"jest": "^29.3.1",
"nodemon": "^2.0.20",
"npm-check-updates": "^16.3.18",
"replace": "^1.2.2",
Expand Down
8 changes: 4 additions & 4 deletions modules/private-shared-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@
"dependencies": {
"@mojaloop/api-snippets": "^16.0.6",
"@mojaloop/central-services-shared": "^17.3.1",
"@mojaloop/logging-bc-public-types-lib": "^0.1.12",
"@mojaloop/platform-shared-lib-messaging-types-lib": "^0.2.16",
"@mojaloop/platform-shared-lib-nodejs-kafka-client-lib": "^0.2.14-snapshot.0",
"@mojaloop/logging-bc-public-types-lib": "^0.1.13",
"@mojaloop/platform-shared-lib-messaging-types-lib": "^0.2.18",
"@mojaloop/platform-shared-lib-nodejs-kafka-client-lib": "^0.2.15",
"ajv": "^8.11.0",
"redis": "^4.4.0",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/node": "^18.11.9",
"eslint": "^8.27.0",
"jest": "^29.3.0",
"jest": "^29.3.1",
"npm-check-updates": "^16.3.18",
"replace": "^1.2.2",
"standard-version": "^9.5.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

// TODO: Try to use the generic kafka producer from platform-shared-lib and investigate if there is any value in maintaining these classes here.

import { MLKafkaRawProducerOptions, MLKafkaRawProdOpCompressionCodecEnum } from '@mojaloop/platform-shared-lib-nodejs-kafka-client-lib';
import { MLKafkaRawProducerOptions, MLKafkaRawProducerCompressionCodecs } from '@mojaloop/platform-shared-lib-nodejs-kafka-client-lib';
import { KafkaEventProducer } from './kafka_event_producer';
import { ILogger } from '@mojaloop/logging-bc-public-types-lib';
import { CommandEvent } from '../events';
Expand All @@ -47,7 +47,7 @@ export class KafkaCommandEventProducer extends KafkaEventProducer implements ICo
producerClientId: producerOptions.clientId,
skipAcknowledgements: true,
messageMaxBytes: producerOptions.messageMaxBytes || 200000000,
compressionCodec: producerOptions.compressionCodec || MLKafkaRawProdOpCompressionCodecEnum.none,
compressionCodec: producerOptions.compressionCodec || MLKafkaRawProducerCompressionCodecs.NONE,
};
super(mlProducerOptions, logger);
this._topic = producerOptions.topic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

// TODO: Try to use the generic kafka producer from platform-shared-lib and investigate if there is any value in maintaining these classes here.

import { MLKafkaRawProducerOptions, MLKafkaRawProdOpCompressionCodecEnum } from '@mojaloop/platform-shared-lib-nodejs-kafka-client-lib';
import { MLKafkaRawProducerOptions, MLKafkaRawProducerCompressionCodecs } from '@mojaloop/platform-shared-lib-nodejs-kafka-client-lib';
import { KafkaEventProducer } from './kafka_event_producer';
import { ILogger } from '@mojaloop/logging-bc-public-types-lib';
import { DomainEvent } from '../events';
Expand All @@ -47,7 +47,7 @@ export class KafkaDomainEventProducer extends KafkaEventProducer implements IDom
producerClientId: producerOptions.clientId,
skipAcknowledgements: true,
messageMaxBytes: producerOptions.messageMaxBytes || 200000000,
compressionCodec: producerOptions.compressionCodec || MLKafkaRawProdOpCompressionCodecEnum.none,
compressionCodec: producerOptions.compressionCodec || MLKafkaRawProducerCompressionCodecs.NONE,
};
super(mlProducerOptions, logger);
this._topic = producerOptions.topic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
******/

'use strict';
import { MLKafkaRawProdOpCompressionCodecEnum } from '@mojaloop/platform-shared-lib-nodejs-kafka-client-lib';
import { MLKafkaRawProducerCompressionCodecs } from '@mojaloop/platform-shared-lib-nodejs-kafka-client-lib';

export type IKafkaEventProducerOptions = {
brokerList: string,
clientId: string,
topic: string,
messageMaxBytes?: number,
compressionCodec?: MLKafkaRawProdOpCompressionCodecEnum,
compressionCodec?: MLKafkaRawProducerCompressionCodecs,
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"wait-4-docker": "node ./scripts/_wait4_all.js"
},
"dependencies": {
"nx": "15.0.12",
"nx": "15.0.13",
"tslib": "^2.4.1"
},
"devDependencies": {
Expand All @@ -81,7 +81,7 @@
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-plugin-import": "latest",
"husky": "^8.0.2",
"jest": "^29.3.0",
"jest": "^29.3.1",
"nodemon": "^2.0.20",
"npm-check-updates": "^16.3.18",
"replace": "^1.2.2",
Expand Down

0 comments on commit cd14508

Please sign in to comment.