Jérôme Benoit [Thu, 13 Oct 2022 20:50:22 +0000 (22:50 +0200)]
Version 2.3.1
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 20:41:30 +0000 (22:41 +0200)]
README.md: Fix formatting
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 20:33:27 +0000 (22:33 +0200)]
Prepare the 2.3.0 changelog
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 20:28:18 +0000 (22:28 +0200)]
Update documentation for 2.3.0 release
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 20:22:31 +0000 (22:22 +0200)]
Bump version in sonar configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 20:19:44 +0000 (22:19 +0200)]
Improve tests coverage on worker choice strategies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 19:41:45 +0000 (21:41 +0200)]
Fix tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 19:35:50 +0000 (21:35 +0200)]
Add tests for WRR worker choice strategy
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 19:09:44 +0000 (21:09 +0200)]
Improve strategies internals reset tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 18:58:20 +0000 (20:58 +0200)]
Merge branch 'master' of github.com:poolifier/poolifier
Jérôme Benoit [Thu, 13 Oct 2022 18:57:25 +0000 (20:57 +0200)]
Fix strategies internals reset
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 18:10:00 +0000 (20:10 +0200)]
Add code sonarlint configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Thu, 13 Oct 2022 14:49:55 +0000 (16:49 +0200)]
Prepare for 2.3.0 release
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Jérôme Benoit [Wed, 12 Oct 2022 21:55:21 +0000 (23:55 +0200)]
Tests: remove unused variables
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 12 Oct 2022 21:23:37 +0000 (23:23 +0200)]
Tests: improve strategies initialization coverage
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 12 Oct 2022 17:45:31 +0000 (19:45 +0200)]
Tests: check strategy internal statistics at pool creation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 12 Oct 2022 17:11:38 +0000 (19:11 +0200)]
Tests: also test strategy statistics reset on dynamic pool
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 12 Oct 2022 13:50:36 +0000 (15:50 +0200)]
Tests: assess internal strategy statistics resets at changing it
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Wed, 12 Oct 2022 03:27:23 +0000 (05:27 +0200)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 23:10:18 +0000 (01:10 +0200)]
Document fixes to worker choice strategies
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 22:40:20 +0000 (00:40 +0200)]
Tests: simplify tasks usage reset
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 22:02:00 +0000 (00:02 +0200)]
Test: Verify that worker pool tasks usage are reset at worker choice strategy change, take2
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 21:44:29 +0000 (23:44 +0200)]
Tests: fix promises handling
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 21:16:38 +0000 (23:16 +0200)]
Tests: Verify that worker pool tasks usage are reset at worker choice strategy change
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 20:35:06 +0000 (22:35 +0200)]
Reset all internal statistics at worker choice strategy change
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 19:14:30 +0000 (21:14 +0200)]
Strict boolean check
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 11:09:51 +0000 (13:09 +0200)]
Refine lint-staged configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 09:19:45 +0000 (11:19 +0200)]
Comment spell fixlet
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 09:16:28 +0000 (11:16 +0200)]
Spell fixlets in comment
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Tue, 11 Oct 2022 08:57:48 +0000 (10:57 +0200)]
WRR strategy: round the default weight computation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 21:16:50 +0000 (23:16 +0200)]
Cleanup mocha configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 20:45:56 +0000 (22:45 +0200)]
Formatting fixlet
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 20:44:13 +0000 (22:44 +0200)]
Enchance benchmarking code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 19:57:38 +0000 (21:57 +0200)]
new Date().getTime() -> Date.now()
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 19:28:28 +0000 (21:28 +0200)]
Uniformize some comments
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 19:22:42 +0000 (21:22 +0200)]
Fix WRR worker choice strategy implementation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 17:54:58 +0000 (19:54 +0200)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 17:09:42 +0000 (19:09 +0200)]
src/pools/selection-strategies/weighted-round-robin-choice-strategy.ts -> src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 16:49:37 +0000 (18:49 +0200)]
Strict boolean check
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 16:32:03 +0000 (18:32 +0200)]
Verify that the configured worker choice is going to be used when a
dynamic pool is busy
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 16:12:18 +0000 (18:12 +0200)]
Add WRR worker choice strategy to benchmark
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 15:23:31 +0000 (17:23 +0200)]
Cleanup tests code
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 12:49:44 +0000 (14:49 +0200)]
Fix tests with WRR worker choice strategy
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 12:33:02 +0000 (14:33 +0200)]
Fix task runtime statistics usage calculation logic
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 12:04:47 +0000 (14:04 +0200)]
Stricter tests expectations
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 08:54:32 +0000 (10:54 +0200)]
Fix fair share strategy unix timestamp comparison
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 08:14:02 +0000 (10:14 +0200)]
Allow worker choice strategy to specify their statistics requirements
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 10 Oct 2022 06:33:39 +0000 (08:33 +0200)]
Add eslint report to sonar
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 23:10:10 +0000 (01:10 +0200)]
Fix missed Promise.all usage in tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 23:07:09 +0000 (01:07 +0200)]
Revert Promise.all usage in tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 22:10:35 +0000 (00:10 +0200)]
Fix pool execute promises fullfilment in tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 21:59:53 +0000 (23:59 +0200)]
.eslintrc.js: remove uneeded rules for tests
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 21:41:21 +0000 (23:41 +0200)]
Silence sonar
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 21:07:33 +0000 (23:07 +0200)]
Add fair sharing worker choice strategy
Close #339
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 20:06:28 +0000 (22:06 +0200)]
Add WRR worker choice strategy
Close #363
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 19:19:34 +0000 (21:19 +0200)]
Fix lint-staged configuration, take 2
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 19:08:38 +0000 (21:08 +0200)]
Fix lint-staged configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 18:27:37 +0000 (20:27 +0200)]
Enhance tasks statistics
Close #577
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 13:58:35 +0000 (15:58 +0200)]
Refine eslint configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 13:40:07 +0000 (15:40 +0200)]
Add lint-staged run at pre-commit git hook
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 12:24:53 +0000 (14:24 +0200)]
README.md: reference the next project version for suggestions
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 12:14:02 +0000 (14:14 +0200)]
Fix npm publication
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 12:07:46 +0000 (14:07 +0200)]
Version 2.2.2
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 12:07:12 +0000 (14:07 +0200)]
Merge branch 'master' of github.com:poolifier/poolifier
Jérôme Benoit [Sun, 9 Oct 2022 11:57:27 +0000 (13:57 +0200)]
Update documentation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 11:50:14 +0000 (13:50 +0200)]
README.md: remove uneeded comments
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 11:47:36 +0000 (13:47 +0200)]
README.md: fix node versions supported
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sun, 9 Oct 2022 06:36:48 +0000 (08:36 +0200)]
Readd UTs run before npm registry auto publication
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 18:01:07 +0000 (20:01 +0200)]
README.md: fix link to dependabot badge
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 17:26:02 +0000 (19:26 +0200)]
Comment out UTs run on the production build at npm publication
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 17:16:09 +0000 (19:16 +0200)]
Fix eslint configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 17:06:52 +0000 (19:06 +0200)]
Fix link in documentation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 16:55:05 +0000 (18:55 +0200)]
Version 2.2.1
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 16:49:16 +0000 (18:49 +0200)]
Add missed documentation files
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 16:48:36 +0000 (18:48 +0200)]
Generate documentation
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 15:58:57 +0000 (17:58 +0200)]
Add UTs for WorkerChoiceStrategyContext
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 14:26:42 +0000 (16:26 +0200)]
Add UTs for SelectionStrategiesUtils
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 13:29:36 +0000 (15:29 +0200)]
Apply dependencies update
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 13:23:33 +0000 (15:23 +0200)]
Check in UTs the error message thrown in worker-thread pool
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 13:05:05 +0000 (15:05 +0200)]
Convert function to arrow function in UT
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 12:51:04 +0000 (14:51 +0200)]
Factor out some UTs code in test-utils.js
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 11:51:21 +0000 (13:51 +0200)]
Comment cleanup
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 11:33:22 +0000 (13:33 +0200)]
Keep the LRU strategy implementation as optimized as it was
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Sat, 8 Oct 2022 10:24:16 +0000 (12:24 +0200)]
Add dynamic worker choice strategy change at runtime
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 7 Oct 2022 20:46:59 +0000 (22:46 +0200)]
Remove redundant await
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 7 Oct 2022 20:29:20 +0000 (22:29 +0200)]
Report more cleanups from work in progress PRs
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 7 Oct 2022 19:16:17 +0000 (21:16 +0200)]
Report some code cleanups from work in progress PR
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 7 Oct 2022 15:20:29 +0000 (17:20 +0200)]
Refine .gitignore
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 7 Oct 2022 10:32:11 +0000 (12:32 +0200)]
Fix eslint configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Fri, 7 Oct 2022 10:11:09 +0000 (12:11 +0200)]
Merge branch 'master' of github.com:poolifier/poolifier
Jérôme Benoit [Fri, 7 Oct 2022 10:10:35 +0000 (12:10 +0200)]
Fix eslint configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
dependabot[bot] [Thu, 6 Oct 2022 21:43:08 +0000 (23:43 +0200)]
Bump @types/node from 18.8.2 to 18.8.3 (#576)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Tue, 4 Oct 2022 20:58:53 +0000 (22:58 +0200)]
Bump @types/node from 18.8.0 to 18.8.2 (#575)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Tue, 4 Oct 2022 20:27:23 +0000 (22:27 +0200)]
Bump @typescript-eslint/eslint-plugin from 5.38.1 to 5.39.0 (#573)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Tue, 4 Oct 2022 20:24:54 +0000 (22:24 +0200)]
Bump @typescript-eslint/parser from 5.38.1 to 5.39.0 (#574)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 3 Oct 2022 22:21:41 +0000 (00:21 +0200)]
Remove deprecated code configuration
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Jérôme Benoit [Mon, 3 Oct 2022 18:47:48 +0000 (20:47 +0200)]
Sync package-lock.json
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
dependabot[bot] [Mon, 3 Oct 2022 18:45:33 +0000 (20:45 +0200)]
Bump expect from 29.1.0 to 29.1.2 (#572)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Jérôme Benoit [Mon, 3 Oct 2022 14:40:56 +0000 (16:40 +0200)]
Merge branch 'master' of github.com:poolifier/poolifier
Jérôme Benoit [Mon, 3 Oct 2022 14:39:50 +0000 (16:39 +0200)]
Fix source map support in UTs
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>