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

feat(bson-bench): add bson-bench library #1

Merged
merged 55 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
5e36a74
add bson-bench package
W-A-James Oct 17, 2023
98c6f1b
further test development and fixes
W-A-James Oct 17, 2023
91b084b
Address previous comments and fill out tests
W-A-James Oct 18, 2023
3991f82
move to packages subdir
W-A-James Oct 18, 2023
67fa16f
Update workflows and configure workspace
W-A-James Oct 18, 2023
58053a1
update README and add LICENSE
W-A-James Oct 18, 2023
27a3f5a
Update workflow
W-A-James Oct 18, 2023
d949f9e
add inline documentation
W-A-James Oct 19, 2023
fe3887f
update package file
W-A-James Oct 19, 2023
e3a3d05
fix inline docs
W-A-James Oct 19, 2023
42d41c7
Update tests
W-A-James Oct 19, 2023
393231b
fix utils
W-A-James Oct 19, 2023
9d43b75
Update suite inline docs
W-A-James Oct 19, 2023
8ee7658
update workflow
W-A-James Oct 19, 2023
679bf42
Update workflows and add PR template
W-A-James Oct 19, 2023
73e48bd
remove pull request template
W-A-James Oct 19, 2023
836ab9a
Merge branch 'main' into NODE-5693/create_bson_bench
W-A-James Oct 19, 2023
1f538e8
Empty to trigger workflow
W-A-James Oct 19, 2023
b14be13
Merge branch 'main' into NODE-5693/create_bson_bench
W-A-James Oct 19, 2023
0a6ff47
Address review comments
W-A-James Oct 30, 2023
4b32a31
Merge branch 'NODE-5693/create_bson_bench' of github.com:mongodb-js/d…
W-A-James Oct 30, 2023
9a16f60
Add root tsconfig
W-A-James Oct 30, 2023
269bfaf
Merge branch 'main' into NODE-5693/create_bson_bench
W-A-James Oct 30, 2023
58c41df
Merge branch 'main' into NODE-5693/create_bson_bench
W-A-James Oct 30, 2023
f40dde7
Update lockfile
W-A-James Oct 30, 2023
69368c6
convert base.mjs to base.ts
W-A-James Oct 30, 2023
91a21c6
Update package lock
W-A-James Oct 30, 2023
25698e4
update lockfile
W-A-James Oct 30, 2023
b2948a7
Regen lockfile and delete bson-bench lockfile
W-A-James Oct 30, 2023
2d80946
add typescript as bson-bench dev dependency
W-A-James Oct 30, 2023
9b3b045
update workspace
W-A-James Oct 30, 2023
c1af72b
Pare down .eslintrc
W-A-James Oct 30, 2023
0b9b9bb
update package files
W-A-James Oct 30, 2023
e7864ef
fix npm install bug
W-A-James Oct 31, 2023
1b6304d
Address primary review comments
W-A-James Nov 2, 2023
9b6132a
Fix numeric sort
W-A-James Nov 2, 2023
56f0886
Fix workflows
W-A-James Nov 2, 2023
9ea0b11
update lockfile
W-A-James Nov 2, 2023
cd1b3f3
Add stddev to metrics
W-A-James Nov 2, 2023
9ff660f
use npm 9
W-A-James Nov 6, 2023
51350ab
account for cross-bson type incompatibility
W-A-James Nov 6, 2023
b35f455
update github workflow
W-A-James Nov 6, 2023
c38e92c
should run all jobs to completion
W-A-James Nov 6, 2023
448902d
reorder versions
W-A-James Nov 6, 2023
f8ce3f0
install bson 6.2 install of 6.0
W-A-James Nov 6, 2023
2623b29
change to discriminated union
W-A-James Nov 7, 2023
4764bc2
always emit declaration files
W-A-James Nov 7, 2023
b66489a
update lint workflow
W-A-James Nov 7, 2023
4a3e545
fix lint workflow
W-A-James Nov 7, 2023
714382a
add prepare script
W-A-James Nov 7, 2023
24cdfde
skip installing bson-ext via git tag on Node20
W-A-James Nov 7, 2023
ff282dc
give metrics different names
W-A-James Nov 7, 2023
6cb0861
fix for serialize issues
W-A-James Nov 7, 2023
77285f9
fix test
W-A-James Nov 7, 2023
6453331
fix benchmark error test
W-A-James Nov 7, 2023
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
35 changes: 35 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: run package tests

on:
push:
paths: packages/**
branches: [ "main" ]
pull_request:
paths: packages/**
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
working-directory: ./bson-bench
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: npm clean install
run: npm clean-install --workspaces
- name: Run tests
run: npm run test --workspaces --if-present
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# dbx-js-tools
Shared JavaScript tools and libraries

Shared JavaScript tools and libraries for use across the DBX org.

> [!IMPORTANT]
> Note that the libraries and tools in this repository are **NOT** official MongoDB products.
Loading