-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from MatrixAI/feature-control
Introduce Snapshot Isolation OCC to DBTransaction
- Loading branch information
Showing
112 changed files
with
13,206 additions
and
2,431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
BasedOnStyle: Google | ||
SortIncludes: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,13 +65,17 @@ check:test: | |
- > | ||
nix-shell --run ' | ||
npm run build --verbose; | ||
npm test -- --ci; | ||
npm test -- --ci --coverage; | ||
' | ||
artifacts: | ||
when: always | ||
reports: | ||
junit: | ||
- ./tmp/junit.xml | ||
- ./tmp/junit/junit.xml | ||
coverage_report: | ||
coverage_format: cobertura | ||
path: ./tmp/coverage/cobertura-coverage.xml | ||
coverage: '/All files[^|]*\|[^|]*\s+([\d\.]+)/' | ||
rules: | ||
# Runs on staging commits and ignores version commits | ||
- if: $CI_COMMIT_BRANCH =~ /^feature.*$/ && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/ | ||
|
@@ -114,17 +118,21 @@ build:linux: | |
- > | ||
nix-shell --run ' | ||
npm run build --verbose; | ||
npm test -- --ci; | ||
npm test -- --ci --coverage; | ||
' | ||
artifacts: | ||
when: always | ||
reports: | ||
junit: | ||
- ./tmp/junit.xml | ||
- ./tmp/junit/junit.xml | ||
coverage_report: | ||
coverage_format: cobertura | ||
path: ./tmp/coverage/cobertura-coverage.xml | ||
paths: | ||
- ./prebuilds/ | ||
# Only the build:linux preserves the dist | ||
- ./dist | ||
coverage: '/All files[^|]*\|[^|]*\s+([\d\.]+)/' | ||
rules: | ||
# Runs on staging commits and ignores version commits | ||
- if: $CI_COMMIT_BRANCH == 'staging' && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/ | ||
|
@@ -150,7 +158,7 @@ build:windows: | |
when: always | ||
reports: | ||
junit: | ||
- ./tmp/junit.xml | ||
- ./tmp/junit/junit.xml | ||
paths: | ||
- ./prebuilds/ | ||
rules: | ||
|
@@ -169,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 [email protected] | ||
|
@@ -184,7 +193,7 @@ build:macos: | |
when: always | ||
reports: | ||
junit: | ||
- ./tmp/junit.xml | ||
- ./tmp/junit/junit.xml | ||
paths: | ||
- ./prebuilds/ | ||
rules: | ||
|
@@ -209,6 +218,26 @@ build:prerelease: | |
nix-shell --run ' | ||
npm publish --tag prerelease --access public; | ||
' | ||
- > | ||
for d in prebuilds/*; do | ||
tar \ | ||
--create \ | ||
--verbose \ | ||
--file="prebuilds/$(basename $d).tar" \ | ||
--directory=prebuilds \ | ||
"$(basename $d)"; | ||
done | ||
- > | ||
nix-shell -I nixpkgs=./pkgs.nix --packages gitAndTools.gh --run ' | ||
gh release \ | ||
create "$CI_COMMIT_TAG" \ | ||
prebuilds/*.tar \ | ||
--title "${CI_COMMIT_TAG}-$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \ | ||
--notes "" \ | ||
--prerelease \ | ||
--target staging \ | ||
--repo "$GH_PROJECT_PATH"; | ||
' | ||
after_script: | ||
- rm -f ./.npmrc | ||
rules: | ||
|
@@ -272,6 +301,25 @@ release:distribution: | |
nix-shell --run ' | ||
npm publish --access public; | ||
' | ||
- > | ||
for d in prebuilds/*; do | ||
tar \ | ||
--create \ | ||
--verbose \ | ||
--file="prebuilds/$(basename $d).tar" \ | ||
--directory=prebuilds \ | ||
"$(basename $d)"; | ||
done | ||
- > | ||
nix-shell -I nixpkgs=./pkgs.nix --packages gitAndTools.gh --run ' | ||
gh release \ | ||
create "$CI_COMMIT_TAG" \ | ||
prebuilds/*.tar \ | ||
--title "${CI_COMMIT_TAG}-$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \ | ||
--notes "" \ | ||
--target master \ | ||
--repo "$GH_PROJECT_PATH"; | ||
' | ||
after_script: | ||
- rm -f ./.npmrc | ||
rules: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[submodule "deps/snappy/snappy"] | ||
path = deps/snappy/snappy | ||
url = https://github.com/google/snappy.git | ||
[submodule "deps/rocksdb/rocksdb"] | ||
path = deps/rocksdb/rocksdb | ||
url = https://github.com/facebook/rocksdb.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.