Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: merge staging to master #411

Merged
merged 195 commits into from
Sep 26, 2022
Merged
Show file tree
Hide file tree
Changes from 90 commits
Commits
Show all changes
195 commits
Select commit Hold shift + click to select a range
7218b7f
ci: improved junit output
emmacasolin Jun 30, 2022
4a2f366
ci: test load balancing
emmacasolin Jun 30, 2022
d95e516
ci: optimising Homebrew setup
emmacasolin Jul 4, 2022
0909fff
ci: chocolatey caching
emmacasolin Jul 6, 2022
b7fc2f9
ci: `build:dist` is now before `build:platforms-generate`
emmacasolin Jul 12, 2022
76918b6
fix: executable permissions for `choco-install.ps1`
emmacasolin Jul 12, 2022
fe4b0b5
ci: moving package installations into main script for mac/windows
emmacasolin Jul 12, 2022
e5682e8
fix: parameter fixes for chocolatey install script
emmacasolin Jul 12, 2022
2dd3fa3
ci: cache set to always (even if a job fails) for all paths
emmacasolin Jul 12, 2022
ceaebe6
Merge pull request #394 from MatrixAI/feature-test-load-balancing
emmacasolin Jul 12, 2022
0894eab
fix: `findNode` and `getClosestGlobalNodes` no longer throws `ErrorNo…
tegefaulkes Jul 8, 2022
2b79b48
npm: set `pkg` script to run with `node` explicitly to help with windows
CMCDragonkai Jul 13, 2022
37f03d9
build: upgrading NodeJS to 16.15.0
emmacasolin Jul 15, 2022
a46abbb
chore: added `.npmrc` to reify npm link configuration, and using `npm…
CMCDragonkai Jul 18, 2022
522ef59
chore: synchronised `.npmignore` with TypeScript-Demo-Lib
CMCDragonkai Jul 18, 2022
76df31f
style: lint now allowed PascalCase and UPPER_CASE for enum members, a…
CMCDragonkai Jul 18, 2022
6dbc636
ci: swapped to using `scripts/brew-install.sh`
CMCDragonkai Jul 18, 2022
ece950b
style: moved default below variables for `scripts/check-test-generate…
CMCDragonkai Jul 18, 2022
456dd16
style: moved `CI_PARALLEL` to the top for `scripts/build-platforms-ge…
CMCDragonkai Jul 18, 2022
888181e
style: lintfixed `scripts/pkg.js`
CMCDragonkai Jul 18, 2022
78d17ca
ci: only bundle prebuilds in `scripts/pkg.js`
CMCDragonkai Jul 18, 2022
e4d3083
nix: `npm run build` will use `npm_config_nodedir` as an environment …
CMCDragonkai Jul 18, 2022
490683d
chore: lint and lintfix scripts apply to `scripts` directory too
CMCDragonkai Jul 18, 2022
ef1f2af
feat: swapped `ts-node` to using `swc` and removed `typescript-cached…
CMCDragonkai Jul 18, 2022
1ee0054
ci: no need to install python as no native addons are being built
CMCDragonkai Jul 18, 2022
4748b0a
ci: no need to use `--runInBand` for linux tests
CMCDragonkai Jul 18, 2022
3e11b15
fix: typo in `.gitlab-ci.yml` about running in staging, should be run…
CMCDragonkai Jul 18, 2022
0684b82
ci: inherit `$PARENT_PIPELINE_ID` for child pipelines to refer to in …
CMCDragonkai Jul 18, 2022
b9d7f38
chore: added entry about `GITHUB_TOKEN` in `.env.example`
CMCDragonkai Jul 18, 2022
3dce493
docs: updated README.md with information from Polykey.old
CMCDragonkai Jul 23, 2022
5d9a788
chore: changed `js-polykey` to `Polykey` and using `polykey` as the n…
CMCDragonkai Jul 23, 2022
07b5fe6
refactor: changed from IIFE to `void main();` [ci skip]
CMCDragonkai Jul 25, 2022
dd4a38e
fix: bug with `swc` and decorators
tegefaulkes Jul 26, 2022
ce07c78
Merge pull request #430 from MatrixAI/feature-swc_fix
CMCDragonkai Jul 26, 2022
4f75202
test: adding docker integration test
tegefaulkes Jul 11, 2022
49b9178
feat: added bin utils functions for running target commands
tegefaulkes Jul 12, 2022
d8339df
feat: added switching utility functions
tegefaulkes Jul 12, 2022
05ad6df
fix: updated `start.test.ts` to use #410 changes
tegefaulkes Jul 12, 2022
51d7196
fix: updated `bootstrap.test.ts` to use #410 changes
tegefaulkes Jul 12, 2022
d9862d7
feat: adding tmdDir to globals
tegefaulkes Jul 12, 2022
8c2a7ef
test: converting tests for docker target
tegefaulkes Jul 14, 2022
ec8e438
feat: added ability to override keypair generation with `privateKeyOv…
tegefaulkes Jul 15, 2022
d380ed2
feat: added `--private-key-file` option to `CommandStart.ts` and `Com…
tegefaulkes Jul 15, 2022
7a4cdde
test: added `setupTestAgent` for creating test agents
tegefaulkes Jul 18, 2022
cb17957
test: removing global agent usage
tegefaulkes Jul 18, 2022
ec59e41
fix: edge case bug for discovery queue
tegefaulkes Jul 19, 2022
abd884c
test: converted tests
tegefaulkes Jul 19, 2022
505b26f
test: overriding keypair generation for most tests
tegefaulkes Jul 19, 2022
0de304e
tests: fixing tests for docker target
tegefaulkes Jul 20, 2022
50bfa85
chore: updating the `.env.example` file
tegefaulkes Jul 20, 2022
19f0d95
fix: tests use `global.tmpDir` directory
tegefaulkes Jul 21, 2022
7b9f985
fix: adding `--rm` to `docker-run.sh` script.
tegefaulkes Jul 25, 2022
d3cf722
tests: disabling tests
tegefaulkes Jul 25, 2022
eab80e2
ci: cleaning up CI jobs
tegefaulkes Jul 25, 2022
a19b82d
fix: removing `pkXSwitch` in favor of `pkX`
tegefaulkes Jul 26, 2022
6e3594d
fix: moved `globalRootKeyPems.ts` to fixtures
tegefaulkes Jul 26, 2022
55fed79
fix: removing `docker-run.sh` script
tegefaulkes Jul 26, 2022
8d0ef44
feat: `pkXTarget` works with any shell command
tegefaulkes Jul 27, 2022
d9af7c4
fix: changing `PK_TEST_DATA_DIR` to `PK_TEST_TMPDIR`
tegefaulkes Jul 27, 2022
d35ce0b
fix: `PK_TEST_COMMAND` and PK_TEST_PLATFORM` must be set at the same …
tegefaulkes Jul 27, 2022
ff64f5e
fix: updating nat tests to use `runDescribeIf`
tegefaulkes Jul 27, 2022
9aa78a3
fix: consolidated all spawning functions in `tests/utils/exec.ts`
tegefaulkes Jul 27, 2022
3affbca
fix: escaping args when using `shell: true`
tegefaulkes Jul 27, 2022
88b37bc
fix: `pkExecTarget` now uses `child_process.spawn`
tegefaulkes Jul 27, 2022
4117a04
Merge pull request #391 from MatrixAI/feature-pkg_integration_tests
CMCDragonkai Jul 27, 2022
c21c546
feat: CLI format option affects logger output
emmacasolin Jul 22, 2022
ad162bd
chore: synchronised ci changes with TypeScript-Demo-Lib
emmacasolin Jul 22, 2022
dca4cca
fix: ts-ignoring logger type incompatibilities
emmacasolin Jul 27, 2022
21aca8a
Merge pull request #421 from MatrixAI/feature-json-logger
CMCDragonkai Jul 28, 2022
626f03e
chore: disable windows and macos build stage and integration stage jobs
CMCDragonkai Jul 31, 2022
8b8f653
style: changed to lowercase `npm_config_*` env variables
CMCDragonkai Jul 31, 2022
4e2563b
ci: change to using `--arg ci true` for all jobs using `nix-shell`
CMCDragonkai Jul 31, 2022
53b0f75
ci: switch back to using 16.15.1 nodejs for windows jobs
CMCDragonkai Jul 31, 2022
450d656
ci: `integration:docker` should be using gitlab variables and fixed s…
CMCDragonkai Jul 31, 2022
5105ec9
chore: update `encryptedfs` to 3.5.5
CMCDragonkai Jul 31, 2022
3c206c5
style: disallow newlines between import groups
CMCDragonkai Aug 5, 2022
7121d80
test: Moving `utils.ts` into `tests/utils`
tegefaulkes Aug 8, 2022
d5c3e2a
test: creating reified booleans for conditionally enabling tests
tegefaulkes Aug 8, 2022
2d59230
test: removing usage of `runTestIfPlatforms` and `runDescribeIfPlatfo…
tegefaulkes Aug 8, 2022
cfb0f99
fix: replacing `global` with `globalThis` and adding linting rule
tegefaulkes Aug 8, 2022
8ae818b
test: importing test utils as `testUtils`
tegefaulkes Aug 8, 2022
94ec1d2
Merge pull request #437 from MatrixAI/feature-conditional_testing_fix
CMCDragonkai Aug 8, 2022
3da7b53
feat: process execution standardisation
emmacasolin Aug 8, 2022
976f913
Merge pull request #436 from MatrixAI/feature-process-exec
CMCDragonkai Aug 10, 2022
e425469
ci: coverage reports should be ignoring `src/proto/**`
CMCDragonkai Aug 10, 2022
a0f2193
fix: using `Entrypoint` instead of `Cmd` in `release.nix`
emmacasolin Aug 9, 2022
275e47f
fix: removed `/bin/polykey` from `PK_TEST_COMMAND`
emmacasolin Aug 10, 2022
e80624e
Merge pull request #439 from MatrixAI/feature-docker-exec
CMCDragonkai Aug 11, 2022
7b1edbd
docs: updated AWS ECR manual deployment instructions
CMCDragonkai Aug 11, 2022
27df70f
fix: default node path should be using `path.join` for cross platform…
CMCDragonkai Aug 11, 2022
699028b
build: bringing in `fast-check`, `jest-extended` and updating `@matri…
tegefaulkes Aug 9, 2022
efa15d8
build: adding `benches` to linting targets
tegefaulkes Aug 9, 2022
731c761
fix: moving `PromiseDeconstructed` to types
tegefaulkes Aug 9, 2022
98f3013
fix: updating `setupFilesAfterEnv`
tegefaulkes Aug 9, 2022
2103713
ci: disabling some check tests
tegefaulkes Aug 9, 2022
16c0279
fix: vaults locking and transactional locking
tegefaulkes Aug 9, 2022
48a6ea4
fix: cleaning up unnecessary locks
tegefaulkes Aug 11, 2022
8ea2e15
fix: some get/set operations just use DB if transaction not given.
tegefaulkes Aug 11, 2022
0f4d5c2
ci: reenabling check tests
tegefaulkes Aug 15, 2022
39ceada
build: updating `@matrixai/db` to `^5.0.3` and `encryptedfs` to `^3.5.6`
tegefaulkes Aug 22, 2022
4fe9492
fix: removed `ts-ignore`s for logger version mismatch
tegefaulkes Aug 22, 2022
1b109d9
fix: using `tran.getForUpdate` for vaults renaming and sigchain claim…
tegefaulkes Aug 22, 2022
1bc948b
fix: added transaction lock on vaultId for vault renaming
tegefaulkes Aug 22, 2022
c75a402
fix: `VaultManager` `vaultId` locking path and using `join('')` on paths
tegefaulkes Aug 23, 2022
5d90a03
Merge pull request #419 from MatrixAI/feature-concurrent-state
tegefaulkes Aug 23, 2022
c183ba1
fix: `utils.sleep` now returns `Promise<void>`
CMCDragonkai Aug 29, 2022
dfd9eb2
fix: `globalTeardown.ts` now forces the removal of `globalDataDir`
CMCDragonkai Aug 31, 2022
dd88963
npm: added `ts-node-inspect` in order to start the debugging port
CMCDragonkai Sep 3, 2022
6a16034
build: target ES2022
CMCDragonkai Sep 11, 2022
2ef9a88
feat: introducing `Timer` as an object for tracking `setTimeout`, to …
CMCDragonkai Sep 11, 2022
9cd5c25
feat: introducing `timed` and `cancellable` decorators to automate as…
CMCDragonkai Sep 11, 2022
fb5189b
fix: integrating `Timer` with `PromiseCancellable` from `@matrixai/as…
CMCDragonkai Aug 25, 2022
3ee78bf
fix: `Timer` is clipped to maximum timeout if given finite delay
CMCDragonkai Sep 9, 2022
4c63ac8
feat(contexts): `timed` and `cancellable` higher order function opera…
CMCDragonkai Sep 7, 2022
82eb029
fix(contexts): changed timeout exception to `ErrorContextsTimedTimeout`
CMCDragonkai Sep 9, 2022
e0d7182
chore: updated `@types/node` and typescript
CMCDragonkai Sep 7, 2022
4f8e834
feat: introducing `tasks` domain for managing background asynchronous…
CMCDragonkai Sep 11, 2022
ad8bffd
fix: `Queue` using `EventTarget` for task promises
tegefaulkes Sep 2, 2022
ca4fee3
fix(tasks): adding `Task` getter functions `getTask` `getTasks` and `…
tegefaulkes Sep 2, 2022
462c4f8
fix(tasks): changing `TaskGroup` to `TaskPath` as a alias for `LevelP…
tegefaulkes Sep 2, 2022
8772157
fix(tasks): making `Task` type a POJO of certain task data and a promise
tegefaulkes Sep 2, 2022
af44659
fix(timer): Timer now maintains event loop reference, and can have in…
CMCDragonkai Sep 11, 2022
5ffa6dd
fix(contexts): decorators should check for generators, not iterables
CMCDragonkai Sep 11, 2022
e2852df
feat(tasks): centralising Queue and Scheduler into a single `TaskMana…
CMCDragonkai Sep 11, 2022
19fbf14
style: updated eslint dependencies
CMCDragonkai Sep 11, 2022
f62035b
style: allow throwing literals due to abort signal reasons
CMCDragonkai Sep 11, 2022
9a0424d
style: linting timer and contexts
CMCDragonkai Sep 11, 2022
fb28a53
tests: fixing concurrency limit test
tegefaulkes Sep 12, 2022
6a63ac5
style: linting `Tasks` tests
tegefaulkes Sep 12, 2022
03c973f
tests: removing old `Queue` and `Scheduler` tests
tegefaulkes Sep 12, 2022
d3ec10a
tests: expanding encode/decode tests
tegefaulkes Sep 12, 2022
2d57737
fix: set `TaskManager` test logger level to `WARN`
tegefaulkes Sep 12, 2022
37733c4
build(timer): removing `timer` domain and adding `@matrixai/timer` de…
tegefaulkes Sep 12, 2022
d20fb50
fix(contexts): when timed decorator inherits timer and signal, it sho…
CMCDragonkai Sep 12, 2022
eb4e287
feat(contexts): introducing `timedCancellable` decorator and HOF and …
CMCDragonkai Sep 12, 2022
cc9920e
tests: cleaing up `TaskManager.test.ts`
tegefaulkes Sep 13, 2022
5647b39
fix: fixing type bug in `Discovery`
tegefaulkes Sep 13, 2022
a722510
Merge pull request #438 from MatrixAI/feature-queue
tegefaulkes Sep 13, 2022
33b4660
npm: removed un-used `uuid` dependency
CMCDragonkai Sep 18, 2022
54f0c2b
npm: update ts-custom-error transitive dependency to 3.2.2 to fix bui…
CMCDragonkai Sep 20, 2022
a69f513
feat: `PolykeyAgent.ts` using `TaskManager`
tegefaulkes Sep 12, 2022
66ee630
feat: updated `NodeManager` to use `TaskManager`
tegefaulkes Sep 12, 2022
41d3a00
feat: updated `NodeConnectionManager` to use `TaskManager`
tegefaulkes Sep 12, 2022
eb1b557
feat: adding cancellability to `NodeManager` handlers
tegefaulkes Sep 13, 2022
6e4322b
fix: small bug with `pingNode`
tegefaulkes Sep 14, 2022
27316f9
fix: bugs with `nodeConnectionManager.syncNodeGraph`
tegefaulkes Sep 14, 2022
f1ab40b
tests: cleaning up dependencies in tests
tegefaulkes Sep 14, 2022
a4470ad
fix: `getRemoteNodeClosestNodes` shouldn't throw connection errors
tegefaulkes Sep 14, 2022
ca5e675
fix: excessive connections from `refreshBuckets`
tegefaulkes Sep 15, 2022
206dceb
feat: `nodeConnectionManager.getClosestGlobalNodes` can optionally sk…
tegefaulkes Sep 16, 2022
c65e758
feat: added handler to detect promise deadlocks to `ExitHandlers.ts`
tegefaulkes Sep 16, 2022
f9b1dbe
fix: handerIds are derived from class and handler function names
tegefaulkes Sep 16, 2022
20ea395
fix: fixing up `setNode` garbage collection.
tegefaulkes Sep 16, 2022
26695b5
fix: refactored `nodeManager.setNode` garbage collection
tegefaulkes Sep 19, 2022
ca9af18
tests: proper stopping of `taskManager` in tests
tegefaulkes Sep 19, 2022
3be12d7
fix: updating task paths
tegefaulkes Sep 19, 2022
19bce20
feat: task handlers are now `timedCancellable`
tegefaulkes Sep 19, 2022
ad7c751
fix: depending on return from `updateTask` to check existence
tegefaulkes Sep 19, 2022
81dbac6
fix: replacing `private` with `protected`
tegefaulkes Sep 19, 2022
66181b4
fix: removing `Queue.ts`
tegefaulkes Sep 19, 2022
cd47c74
fix: removing `@ready` from `TaskManager.cancelTask`
tegefaulkes Sep 19, 2022
34c658e
docs: adding description to `isConnectionError`
tegefaulkes Sep 19, 2022
b9d248b
fix: added cancellability and blocking to `nodeManager.setNode`
tegefaulkes Sep 20, 2022
fe817a2
fix: extracted `refreshBucketsDelayJitter` into nodes utils
tegefaulkes Sep 20, 2022
ca2c966
fix: fixes to errors and adding un-recoverable error handlers
tegefaulkes Sep 20, 2022
97ce1d8
fix: moved 'syncNodeGraph` from `NodeConnectionManager` to `NodeManager`
tegefaulkes Sep 20, 2022
1229695
fix: `pingNode`s inside of `garbageCollectBucket` now have timeouts s…
tegefaulkes Sep 20, 2022
48298f8
fix: cleaning up ephemeral tasks when stopping `NodeManager`
tegefaulkes Sep 21, 2022
9f3d2c0
fix: cleaning up errors
tegefaulkes Sep 21, 2022
45360d4
fix: small fix to `updateRefreshBucketDelay`
tegefaulkes Sep 21, 2022
81e5532
fix: rollback of proxy changes, was out of scope for this PR
tegefaulkes Sep 21, 2022
a33ea26
fix: small fix to `garbageCollectBucket` concurrent pinging
tegefaulkes Sep 21, 2022
f11197c
fix: updated default timeout for `NodeConnectionManager.pingNode`
tegefaulkes Sep 21, 2022
0f729b1
fix: using Symbols for cancelling tasks
tegefaulkes Sep 21, 2022
607095b
fix: `TaskManager` should extend the `CreateDestroyStartStop` interface
tegefaulkes Sep 21, 2022
43027e7
fix: test wasn't overriding key-pair generation
tegefaulkes Sep 21, 2022
0267d3b
fix: `TaskManager`'s `stopProcessing` and `stopTasks` are now properl…
tegefaulkes Sep 21, 2022
ccc61a8
tests: slightly increasing timeouts for two tests
tegefaulkes Sep 21, 2022
b29ba9e
tests: general fixes for tests failing in CI
tegefaulkes Sep 21, 2022
23f470b
syntax: formatting change for `ExitHandlers.ts`
tegefaulkes Sep 21, 2022
586750e
Merge pull request #445 from MatrixAI/feature-tasks_implementation
CMCDragonkai Sep 21, 2022
cc7ee37
npm: updated `@matrixai/errors` to `1.1.5` so `ts-custom-error` won't…
CMCDragonkai Sep 22, 2022
e45261c
tests: extending timeouts for nat tests
tegefaulkes Sep 23, 2022
2e4fe59
fix: small fixes and extending ping timeouts
tegefaulkes Sep 23, 2022
0e24e53
fix: CI handler id bug
tegefaulkes Sep 23, 2022
52e04aa
fix: extending jest timeouts for bin ping tests
tegefaulkes Sep 23, 2022
801f79f
fix: small fix for `garbageCollectBucket`
tegefaulkes Sep 23, 2022
18cd6bb
ci: adding a scratch job and test file
tegefaulkes Sep 23, 2022
724fd12
ci: fixing docker tests
tegefaulkes Sep 26, 2022
9a58452
ci: temp disabling of most jest tests
tegefaulkes Sep 26, 2022
3023b8b
ci: disabling discovery tests
tegefaulkes Sep 26, 2022
ec5aa57
wip: Checking bug
tegefaulkes Sep 26, 2022
c918000
wip: fix for docker test
tegefaulkes Sep 26, 2022
d00dd15
ci: move `image` into `default` and ignore `image` for windows jobs
CMCDragonkai Sep 26, 2022
de75773
ci: `check:scatch` job should always be manual, and fixed syntax error
CMCDragonkai Sep 26, 2022
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
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,12 @@ AWS_SECRET_ACCESS_KEY=
# --authfile=./tmp/auth.json
# ```
# REGISTRY_AUTH_FILE=

# Authenticate to GitHub with `gh`
# GITHUB_TOKEN=

# To allow testing different executables in the bin tests
# Both PK_TEST_COMMAND and PK_TEST_PLATFORM must be set at the same time
# PK_TEST_COMMAND= #Specify the shell command we want to test against
# PK_TEST_PLATFORM=docker #Overrides the auto set `testPlatform` variable used for enabling platform specific tests
# PK_TEST_TMPDIR= #Sets the `global.tmpDir` variable to allow overriding the temp directory used for tests
25 changes: 23 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@
"no-constant-condition": 0,
"no-useless-escape": 0,
"no-console": "error",
"no-restricted-globals": [
"error",
{
"name": "global",
"message": "Use `globalThis` instead"
},
{
"name": "window",
"message": "Use `globalThis` instead"
}
],
"require-yield": 0,
"eqeqeq": ["error", "smart"],
"spaced-comment": [
Expand Down Expand Up @@ -80,7 +91,8 @@
],
"pathGroupsExcludedImportTypes": [
"type"
]
],
"newlines-between": "never"
}
],
"@typescript-eslint/no-namespace": 0,
Expand All @@ -97,7 +109,6 @@
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/consistent-type-imports": ["error"],
Expand Down Expand Up @@ -143,6 +154,10 @@
"format": ["PascalCase"],
"trailingUnderscore": "allowSingleOrDouble"
},
{
"selector": "enumMember",
"format": ["PascalCase", "UPPER_CASE"]
},
{
"selector": "objectLiteralProperty",
"format": null
Expand All @@ -151,6 +166,12 @@
"selector": "typeProperty",
"format": null
}
],
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-ignore": "allow-with-description"
}
]
}
}
Loading