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 #38

Merged
merged 39 commits into from
Jul 14, 2022
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
946a01e
Preparing for native leveldb build
CMCDragonkai May 31, 2022
a972390
Added leveldb native dependencies
CMCDragonkai May 31, 2022
e7229bf
Direct to C++ leveldb works
CMCDragonkai Jun 7, 2022
da767cc
Switching over to rocksdb
CMCDragonkai Jun 10, 2022
e42f01e
Removed StringOrBufferLength check from rocksdb.cpp
CMCDragonkai Jun 8, 2022
dc4db39
Modularized rocksdb.cpp into a rocksdb/napi directory
CMCDragonkai Jun 8, 2022
ba968b0
Added `infoLogLevel` to `RocksDBDatabaseOptions`
CMCDragonkai Jun 10, 2022
f521ab0
Added in basic `transaction_*` methods, and modularised `src/rocksdb/…
CMCDragonkai Jun 10, 2022
92edd7f
Native addon exported functions now match naming convention standard …
CMCDragonkai Jun 10, 2022
7b55563
Fixed Transaction* workers in C++ to instantiate the `Transaction`
CMCDragonkai Jun 10, 2022
6862983
Lint fixing native C/C++ code
CMCDragonkai Jun 11, 2022
dd1cec1
Tested write-skew anomaly and solved with transactionGetForUpdate
CMCDragonkai Jun 11, 2022
8e1135c
First class snapshots
CMCDragonkai Jun 11, 2022
0dc0b96
Transactions support iterators and refactoring C++ object lifecycle
CMCDragonkai Jun 14, 2022
c909c02
GC finalizers may run after `env_cleanup_hook`, so `Detach` methods can
CMCDragonkai Jun 17, 2022
04c5448
Fix database->isClosing_ and Transaction::DecrementPendingWork should…
CMCDragonkai Jun 17, 2022
434ef4a
Testing iterator consistency
CMCDragonkai Jun 17, 2022
23d3405
Adding transactionClear
CMCDragonkai Jun 17, 2022
f9cecbc
Adding transactionMultiGet and transactionMultiGetForUpdate
CMCDragonkai Jun 18, 2022
b8a6083
Re-enabled DBTransaction and integrated it with rocksdb's optimistic …
CMCDragonkai Jun 7, 2022
58a62f2
Added DBTransaction.getForUpdate to address write skew, and added tes…
CMCDragonkai Jun 26, 2022
a06ccdf
Introducing PCC locking for `DBTransaction`
CMCDragonkai Jun 27, 2022
cb25e1f
Export `RocksDB` and `RocksDBP` interfaces
CMCDragonkai Jun 30, 2022
567526b
Updated docs
CMCDragonkai Jun 30, 2022
879c5e2
Updated benchmarks
CMCDragonkai Jun 30, 2022
8fd0c9a
Merge pull request #19 from MatrixAI/feature-control
CMCDragonkai Jun 30, 2022
6d37873
5.0.0-alpha.0
CMCDragonkai Jun 30, 2022
fd749a1
ci: use `.npmrc` to specify `npm_config_prefix` and `npm_config_jobs`
CMCDragonkai Jul 12, 2022
7ba21bb
rocksdb: changed back to using `#include <node_api.h>` because the de…
CMCDragonkai Jul 12, 2022
0bf62e3
nix: updated to 22.05 revision
CMCDragonkai Jul 12, 2022
df7bf85
nix: acquire package name with `npm pkg get name`
CMCDragonkai Jul 12, 2022
ff8f525
ci: explicitly installing node headers and static libraries into `./t…
CMCDragonkai Jul 12, 2022
6411c8d
ci: lint native code in `check:lint` job
CMCDragonkai Jul 12, 2022
6bcb953
ci: always preserve the cache even for failing jobs
CMCDragonkai Jul 12, 2022
37978ac
ci: moved `GIT_SUBMODULE_STRATEGY at the top of `variables`
CMCDragonkai Jul 12, 2022
5b43d96
ci: mkdir `./tmp` during all jobs, and override for windows
CMCDragonkai Jul 12, 2022
31d71b4
windows: fixed native build for windows
CMCDragonkai Jul 12, 2022
1f6299d
chore: lintfixed scripts/prebuild.js
CMCDragonkai Jul 13, 2022
886f7cb
binding.gyp: missing comma typo for macos builds
CMCDragonkai Jul 14, 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
Prev Previous commit
Next Next commit
Re-enabled DBTransaction and integrated it with rocksdb's optimistic …
…transactions
CMCDragonkai committed Jun 26, 2022
commit b8a60837101deef985faa1abbafef453ca0e7ad8
9 changes: 9 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -50,6 +50,11 @@
"ignoreConsecutiveComments": true
}
],
"curly": [
"error",
"multi-line",
"consistent"
],
"import/order": [
"error",
{
@@ -137,6 +142,10 @@
"format": ["PascalCase"],
"trailingUnderscore": "allowSingleOrDouble"
},
{
"selector": "enumMember",
"format": ["PascalCase", "UPPER_CASE"]
},
{
"selector": "objectLiteralProperty",
"format": null
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -177,6 +177,7 @@ build:macos:
HOMEBREW_NO_INSTALL_UPGRADE: "true"
HOMEBREW_NO_INSTALL_CLEANUP: "true"
before_script:
- eval "$(brew shellenv)"
- brew install node@16
- brew link --overwrite node@16
- brew install python@3.9
60 changes: 33 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -21,16 +21,16 @@
"test": "jest",
"lint": "eslint '{src,tests,benches}/**/*.{js,ts}'",
"lintfix": "eslint '{src,tests,benches}/**/*.{js,ts}' --fix",
"lintnative": "find ./src -type f -regextype posix-extended -regex '.*\\.(c|cc|cpp|h|hh|hpp)' -exec clang-format --dry-run -Werror {} +",
"lintnativefix": "find ./src -type f -regextype posix-extended -regex '.*\\.(c|cc|cpp|h|hh|hpp)' -exec clang-format -i {} +",
"lint-native": "find ./src -type f -regextype posix-extended -regex '.*\\.(c|cc|cpp|h|hh|hpp)' -exec clang-format --dry-run -Werror {} +",
"lintfix-native": "find ./src -type f -regextype posix-extended -regex '.*\\.(c|cc|cpp|h|hh|hpp)' -exec clang-format -i {} +",
"docs": "rimraf ./docs && typedoc --gitRevision master --tsconfig ./tsconfig.build.json --out ./docs src",
"bench": "rimraf ./benches/results && ts-node -r tsconfig-paths/register ./benches"
},
"dependencies": {
"@matrixai/async-init": "^1.7.3",
"@matrixai/async-locks": "^2.2.0",
"@matrixai/errors": "^1.1.1",
"@matrixai/logger": "^2.1.1",
"@matrixai/async-init": "^1.8.1",
"@matrixai/async-locks": "^2.3.1",
"@matrixai/errors": "^1.1.2",
"@matrixai/logger": "^2.2.2",
"@matrixai/resources": "^1.1.3",
"@matrixai/workers": "^1.3.3",
"node-gyp-build": "4.4.0",
Loading