Skip to content

Build insight UI #339

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

Open
wants to merge 2,978 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2978 commits
Select commit Hold shift + click to select a range
6ab6b48
Install JSDoc plugin for ESLint
mbouaziz Aug 29, 2024
c6a905d
Fix jsdoc/check-param-names and jsdoc/require-param
mbouaziz Aug 29, 2024
da82fad
Fix jsdoc/check-tag-names and jsdoc/require-returns
mbouaziz Aug 29, 2024
52e2744
Lint jsdoc comments in skstore/ts (#304)
mbouaziz Sep 3, 2024
cb3a8f6
Remove unreferenced SKIP_getExceptionId
mbouaziz Aug 30, 2024
5c1b712
Make ptr incompatible with number
mbouaziz Aug 30, 2024
a1c314b
Make ptr parametric
mbouaziz Aug 30, 2024
6a2b307
Partially type pointers in prelude/ts
mbouaziz Aug 30, 2024
1d7c762
Type call and etry
mbouaziz Aug 30, 2024
de2913b
Type SKIP_Obstack_alloc
mbouaziz Aug 30, 2024
38f52fa
Type all pointers in sql/ts
mbouaziz Aug 30, 2024
7448bdd
Type all pointers in skdate/ts
mbouaziz Aug 30, 2024
a98e408
Type pointers in skstore/ts
mbouaziz Aug 30, 2024
249391c
Strengthen ptr
mbouaziz Aug 30, 2024
53858f6
No default parameter for ptr
mbouaziz Aug 30, 2024
a1096ec
Drop specialized Vector types, define aliases at FromWasm use site
bennostein Sep 2, 2024
4d744a1
[RFC] Stronger type for ptr (#299)
mbouaziz Sep 3, 2024
b1d8ba4
[sknpm] Manage missing export module management
skiplabsdaniel Sep 3, 2024
66dc307
Add a check-all target to typecheck both src and examples and lint src
mbouaziz Sep 4, 2024
0c51b17
Add make check-all to the CI
mbouaziz Sep 4, 2024
e14dfd8
[skstore] Add typechecking and linting to the CI (#307)
mbouaziz Sep 4, 2024
87dfebc
Consistently use "collection" over "handle" in types and variables
bennostein Aug 29, 2024
8c4ad31
Rename TableMapper/EntryMapper -> InputMapper
bennostein Aug 29, 2024
fe60a27
Kill last references to SKFS
bennostein Aug 29, 2024
d610e20
Rename skstore directory to skruntime-ts; chase references in Makefile
bennostein Aug 29, 2024
0812c15
add package-lock.json to gitignore
bennostein Aug 29, 2024
6a0634e
Change FFI naming scheme at TS/skip boundary: s/SKIP_SKStore/SkipRunt…
bennostein Aug 29, 2024
7b9d47c
Move and rename "skstore*" TS sources to "skruntime-ts"
bennostein Aug 30, 2024
b1d571c
Chase build artifacts and packages to name consistently as "skip_runt…
bennostein Aug 30, 2024
b76eb6b
Update CircleCI config with new paths
bennostein Sep 2, 2024
3f956f3
Switch to hyphenated NPM package name to match idioms
bennostein Sep 2, 2024
c6fe38f
s/skruntime/skipruntime
bennostein Sep 4, 2024
6f68ae2
Clean up naming conflicts after rebase
bennostein Sep 4, 2024
d7a82b4
Update compiler bootstrapping bitcode artifacts
bennostein Sep 4, 2024
5add6b7
[TS skip runtime] Rename source files, directories, package artifacts…
bennostein Sep 4, 2024
4fff743
[skstore] Map to table as Iterable
skiplabsdaniel Aug 5, 2024
d9e198a
[skstore] Manage miroring
skiplabsdaniel Aug 27, 2024
e3b1324
[skstore] Manage Indexes on Schema
skiplabsdaniel Aug 27, 2024
0e634e2
[skstore] Use Records
skiplabsdaniel Aug 29, 2024
02785f1
[skstore] Add NonEmptyIteratorImpl utils methods
skiplabsdaniel Aug 28, 2024
ba5147d
[skstore] Add runner
skiplabsdaniel Aug 28, 2024
27bec19
[skstore] Manage Timed tokens
skiplabsdaniel Aug 27, 2024
791f9b1
[skstore] Add extractJSON methode
skiplabsdaniel Sep 4, 2024
32613cf
[sql:ts] Fix type check
skiplabsdaniel Jul 24, 2024
7352522
Fix eslint
skiplabsdaniel Sep 4, 2024
ef2d83c
[nfc] s/locale/local/ for local skip data
bennostein Sep 5, 2024
4d1d8a9
[skstore] runner (#306)
bennostein Sep 6, 2024
7643e57
Install bun in docker
jberdine Aug 28, 2024
a41471e
Add dev-dep on node types
jberdine Sep 4, 2024
524d687
Rename npm.json to package.json
jberdine Sep 4, 2024
5b3b305
Add initial skeleton based on docusaurus template
jberdine Sep 4, 2024
327aa57
Add typedoc and docusaurus-plugin-typedoc
jberdine Sep 4, 2024
5a7d043
Add make targets for api docs workflow
jberdine Sep 4, 2024
8e747f1
Add some overview content
jberdine Sep 5, 2024
0513f88
First iteration of API docs workflow (#308)
jberdine Sep 6, 2024
1026b2e
Move TestSum used in testMap3 only
mbouaziz Sep 5, 2024
320fcba
Move test definitions closer to their functions
mbouaziz Sep 5, 2024
2c35962
Stronger type for Test
mbouaziz Sep 5, 2024
96d5340
Allow non-async run
mbouaziz Sep 6, 2024
2b67c1a
Remove async from non-async functions
mbouaziz Sep 6, 2024
fccae85
Error for unused functions
mbouaziz Sep 6, 2024
a2cca86
Add tsc to the CI
mbouaziz Sep 6, 2024
b2b93f1
[skruntime-ts/tests] Minor cleanups (#312)
mbouaziz Sep 6, 2024
ad95c2b
fix linter failure
jberdine Sep 6, 2024
904bd04
fix linter failure (#314)
mbouaziz Sep 6, 2024
cbf0368
Update @types/node
mbouaziz Sep 6, 2024
426f9bd
There is no ESLint set up in skjson
mbouaziz Sep 6, 2024
8dab51a
Stricter typing for skjson
mbouaziz Sep 6, 2024
ee65f3e
Forbid unused disable directives
mbouaziz Sep 6, 2024
75a6d82
Handle symbols in Proxy handlers
mbouaziz Sep 3, 2024
1ca5352
Types for proxies
mbouaziz Sep 3, 2024
c167635
cloneIfProxy
mbouaziz Sep 4, 2024
7662ef2
Use symbols for __isArrayProxy/__isObjectProxy
mbouaziz Sep 4, 2024
e3b48f2
isObjectProxy/isArrayProxy
mbouaziz Sep 4, 2024
2060fdb
Simplify clone
mbouaziz Sep 4, 2024
bf83e10
Type WasmHandle
mbouaziz Sep 4, 2024
446385d
Fix type of HandlesImpl.register
mbouaziz Sep 4, 2024
32d0c91
Fix type of Handles.apply
mbouaziz Sep 4, 2024
b505e83
Type Handles, especially function pointers
mbouaziz Sep 4, 2024
88b66dd
Type importJSON
mbouaziz Sep 4, 2024
b2c4350
Type exportJSON
mbouaziz Sep 4, 2024
3686535
Overloads for exportJSON
mbouaziz Sep 4, 2024
e169449
Factor interpreterPointer in getValue and getValueAt
mbouaziz Sep 5, 2024
6331807
Split getValueAt into getFieldAt and getItemAt
mbouaziz Sep 5, 2024
f771c2a
More precise ObjectProxy
mbouaziz Sep 5, 2024
9d575dc
Fix type of SKIP_SKJSON_get/at
mbouaziz Sep 5, 2024
b4ba5a2
Make CJArray parametric
mbouaziz Sep 5, 2024
3af8d0b
More precise type for multimap mappings
mbouaziz Sep 5, 2024
0e2bd9e
More precise type for getArray
mbouaziz Sep 5, 2024
bde726c
[skipruntime-ts] More types (#309)
mbouaziz Sep 6, 2024
f595f5c
[nfc] Combine conditionals instead of splitting/negating
bennostein Sep 6, 2024
aebc4c5
Rename skip token-producing function from token to getToken
bennostein Sep 6, 2024
45cddfb
Move `Token` type used for TimeQueue to internal skipruntime_module
bennostein Sep 6, 2024
60bd742
Minor syntactic tweaks/cleanups
bennostein Sep 6, 2024
d993d0b
Introduce branded RefreshToken type instead of using `number`
bennostein Sep 6, 2024
53130a2
Export and use Opaque type for RefreshTokens
bennostein Sep 9, 2024
4ff2930
Rename/refactor TimedQueue and corresponding types for clarity
bennostein Sep 9, 2024
61bdb39
Exclude prelude/ts changes from compiler tests in circleci
bennostein Sep 9, 2024
ed0f576
Run wasm tests in CircleCI when prelude/ts changes
bennostein Sep 9, 2024
cf3ada6
Improve CI test selection for `prelude/ts` (#316)
bennostein Sep 9, 2024
cd3ca33
Improve types and tweak some names for refresh tokens (#313)
bennostein Sep 9, 2024
f5f3a2d
Add optional ranges to EHandle::map and mapReduce
mbouaziz Sep 5, 2024
280fc48
Add optional ranges to map and mapReduce in SKRuntime-module
mbouaziz Sep 5, 2024
c77f89b
Add optional options to map and mapReduce in SKRuntime API
mbouaziz Sep 5, 2024
d4b189f
Add a test for mapping with ranges
mbouaziz Sep 5, 2024
ea512f4
Add optional ranges to maps from/to SKDB tables
mbouaziz Sep 6, 2024
1d6c448
Add optional ranges to maps from/to SKDB tables in SKRuntime-module
mbouaziz Sep 6, 2024
d8f34e0
Add optional options to mapTo and Table.map in SKRuntime API
mbouaziz Sep 6, 2024
5b25485
map with options as overloads
mbouaziz Sep 6, 2024
3efd1c4
Use ranges in mapTo test
mbouaziz Sep 6, 2024
47eb04f
Add ranges to SKRuntime map/mapReduce (#311)
mbouaziz Sep 9, 2024
8ad7039
Fix lint
mbouaziz Sep 9, 2024
275c8ae
[skipruntime-ts] Fix lint (and CI) (#320)
mbouaziz Sep 9, 2024
a0af544
[skipruntime-ts] Add init function for local tables
skiplabsdaniel Sep 9, 2024
428468a
Fix tsc on tests
mbouaziz Sep 9, 2024
22217db
[skipruntime-ts] Add init function for local tables (#318)
mbouaziz Sep 9, 2024
d314b5b
Rename asKeyRanges
mbouaziz Sep 10, 2024
e060e94
Split asKeyRangesOpt
mbouaziz Sep 10, 2024
033c1b6
Add SkipRuntime_sliced (skip part)
mbouaziz Sep 10, 2024
50bd740
Add SkipRuntime_sliced (js part)
mbouaziz Sep 10, 2024
115ab85
Add sliced (module part)
mbouaziz Sep 10, 2024
f0e3144
Rewrite ContextImpl constructor
mbouaziz Sep 10, 2024
6ed4019
Add environment to ContextImpl
mbouaziz Sep 10, 2024
8feca00
Add keyOfJSON to Context
mbouaziz Sep 10, 2024
8ba800b
Add sliced to EagerCollection
mbouaziz Sep 10, 2024
da9a5c9
Use sliced in tests
mbouaziz Sep 10, 2024
4b6ffa8
Get rid of MapOptions (part 1)
mbouaziz Sep 10, 2024
42874b8
Get rid of MapOptions (part 2)
mbouaziz Sep 10, 2024
1df27b1
[skipruntime-ts] Sliced instead of MapOptions (#321)
mbouaziz Sep 11, 2024
54c3234
Add "union" operation and expose across skip/TS FFI
bennostein Sep 9, 2024
b5ad4c2
Plumb union through to public skipruntime API
bennostein Sep 9, 2024
888fe47
Remove multimap and multimapReduce from public TS API
bennostein Sep 9, 2024
1e7fe53
Move `union` from static on skstore to instance on eager collections
bennostein Sep 11, 2024
82cdc3b
Refactor multimap tests to use union instead
bennostein Sep 10, 2024
8a92a57
Fix test mapper that assumed exactly one value per key
bennostein Sep 10, 2024
c85327a
Move directory name construction from TS to Skiplang
bennostein Sep 10, 2024
0447d4b
Address minor review comments
bennostein Sep 11, 2024
ef6c1ab
s/union/merge/
bennostein Sep 11, 2024
af80317
Use shared identity mapper function for merge
bennostein Sep 11, 2024
aeb889f
[skipruntime-ts] Drop `multimap` from public API in favor of `merge` …
bennostein Sep 12, 2024
68c9dfd
[docs] Skeleton layout based on Charles' proposal
jberdine Sep 12, 2024
40dc6b5
[docs] Skeleton layout based on Charles' proposal (#323)
jberdine Sep 12, 2024
6a88e7f
Import glossary page to docusaurus site
bennostein Sep 12, 2024
64acc4f
Specify sidebar structure explicitly instead of autogenerating
bennostein Sep 12, 2024
99ad3f2
Drop sidebar_position metadata
bennostein Sep 12, 2024
3b61b2e
git-ignore www/yarn.lock
bennostein Sep 12, 2024
8a72c00
Add Skip API to sidebar
jberdine Sep 12, 2024
131f5bb
Explicitly define sidebar instead of autogenerating (#325)
bennostein Sep 12, 2024
75b0847
Remove dead types
jberdine Sep 10, 2024
839288b
Remove dead types (#327)
mbouaziz Sep 13, 2024
5030655
Improve Makefile to enable jump-to-error
jberdine Sep 12, 2024
ba86464
Fix existing doc comments
jberdine Sep 10, 2024
2fa7c46
Disable jsdoc/tag-lines lint rule
jberdine Sep 10, 2024
ff5d9d9
Document `freeze`
jberdine Sep 4, 2024
307f1ea
Enable jsdoc/require-param
jberdine Sep 12, 2024
86eac69
Export types that are involved in the external API
jberdine Sep 12, 2024
d25455f
Improve rendering of type parameters
jberdine Sep 12, 2024
a49447f
An iteration of docs improvement (#326)
jberdine Sep 13, 2024
c9ec5d3
Cookbook: database example
pikatchu Sep 13, 2024
ccefe6f
Import glossary page to docusaurus site (#324)
bennostein Sep 13, 2024
b5629f1
Fixed formatting
pikatchu Sep 13, 2024
77b5e53
Fix type of exportJSON of number
mbouaziz Sep 9, 2024
cb66c0d
Add SkipRuntime_take (skip part)
mbouaziz Sep 10, 2024
a922710
Add SkipRuntime_take (js part)
mbouaziz Sep 11, 2024
73f9e9c
Add take (module part)
mbouaziz Sep 11, 2024
f0c02c3
Add take (api part)
mbouaziz Sep 11, 2024
12caa4a
Add test for limit
mbouaziz Sep 9, 2024
7c0b5d8
[skipruntime-ts] Add take (limit) (#319)
mbouaziz Sep 13, 2024
9ea87cb
Improve distinction between refresh-frequency and token values
bennostein Sep 16, 2024
ce93617
Add basic documentation for external data sources/refresh tokens
bennostein Sep 16, 2024
fa61c70
s/frequency|duration/interval/ for the length between refreshes
bennostein Sep 16, 2024
7c4ebb1
switch to named parameters
jberdine Sep 16, 2024
4238138
move Command type definition
jberdine Sep 16, 2024
e08bdcb
tighten Command type
jberdine Sep 16, 2024
a17a5ff
add type for getUser command
jberdine Sep 16, 2024
c7ab471
define Command payload types as type of entire payload
jberdine Sep 16, 2024
9f3d0d7
tighten return type of mapElement
jberdine Sep 16, 2024
6f78355
simplify mapElement
jberdine Sep 16, 2024
03a8332
tighten type annotation in mapElement
jberdine Sep 16, 2024
712cc37
simplify db init
jberdine Sep 16, 2024
39c6d82
tighten type of mapElement arg
jberdine Sep 16, 2024
658ec57
Clarify prose in re: review comments
bennostein Sep 17, 2024
8ede5f6
Some docs & minor fixes for refresh tokens (#330)
bennostein Sep 17, 2024
ab84704
Cookbook: database example (#329)
pikatchu Sep 18, 2024
98efa18
Appease Dockerfile linter
jberdine Sep 16, 2024
3f9a968
Appease Dockerfile linter (#331)
mbouaziz Sep 20, 2024
13cd6fc
No need to export ptr and float
mbouaziz Sep 10, 2024
2a84285
Replace TTableCollection by TableCollection<TJSON[]>
mbouaziz Sep 10, 2024
3e4f65a
Fix type of SkipRuntime_mapReduce
mbouaziz Sep 11, 2024
efe8e85
No need to export Result
mbouaziz Sep 11, 2024
c6da67a
Move freeze to internals
mbouaziz Sep 10, 2024
ea435e7
Typescript prefers typeof predicates
mbouaziz Sep 10, 2024
1f05a28
Allow null params
mbouaziz Sep 10, 2024
f614a32
Simplify check
mbouaziz Sep 10, 2024
c727f73
Constant interface, SkFrozen class, sk_freeze
mbouaziz Sep 10, 2024
0de7ce2
isSkFrozen
mbouaziz Sep 10, 2024
611f5e9
Use symbol for the sk_frozen property
mbouaziz Sep 10, 2024
5a83341
Mark some interfaces as Constant
mbouaziz Sep 11, 2024
26c3815
Make Param type more precise
mbouaziz Sep 11, 2024
6dd4761
Simplify constructors
mbouaziz Sep 20, 2024
e210927
Freeze SkFrozen objects at construction
mbouaziz Sep 20, 2024
2da2552
Use methods rather than properties
mbouaziz Sep 20, 2024
bcdc814
[skipruntime-ts] A few cleanups on the API (#328)
mbouaziz Sep 20, 2024
2eb9a85
Allow SkipService init and update functions to return void
jberdine Sep 20, 2024
eb40b44
Allow SkipService init and update functions to return void (#333)
jberdine Sep 20, 2024
f2011c7
Type isGenericSkipService
mbouaziz Sep 13, 2024
804326b
Simplify localInputs
mbouaziz Sep 13, 2024
42e1ae1
ws types were needed
mbouaziz Sep 20, 2024
3bed278
Use lambdas
mbouaziz Sep 20, 2024
aac6488
No need for custom WS type
mbouaziz Sep 20, 2024
279dd56
[skipruntime-ts] Simplifications on runner/process (#335)
mbouaziz Sep 20, 2024
492f434
Add external call operation (specializing lazy async collections)
bennostein Sep 20, 2024
2af7405
Implement external call api
bennostein Sep 20, 2024
b5f7e3e
Use AsyncLazyCollection type alias for asyncLazy
bennostein Sep 20, 2024
5aa2dad
Add test with refreshing external calls
bennostein Sep 20, 2024
1cb1fec
Demonstrate using previous value when loading after refresh
bennostein Sep 23, 2024
1585bdc
[ts runtime] External calls API (#336)
bennostein Sep 23, 2024
ec87e4f
Ignore example db file
jberdine Sep 20, 2024
128086f
Update js deps and add missing linting ones
jberdine Sep 23, 2024
f2d66d6
Sort rule configs in eslint.config
jberdine Sep 19, 2024
2a9f7f3
Hush expected warnings
jberdine Sep 19, 2024
e44bef6
Disable lint against testing first char of a string
jberdine Sep 19, 2024
1c28478
Disable typescript-eslint/no-confusing-void-expression
jberdine Sep 19, 2024
267839e
Type-check with noUncheckedIndexedAccess when linting
jberdine Sep 20, 2024
e461337
Remove extra examples deps
jberdine Sep 23, 2024
9d3c53e
Config eslint on examples
jberdine Sep 19, 2024
99d0e5f
Disable lint on dist dir
jberdine Sep 20, 2024
b6f68ea
Add check-examples target to type-check and lint examples
jberdine Sep 20, 2024
6b82deb
Add missing examples dep
jberdine Sep 19, 2024
a570ded
Use ValueMapper instead of Mapper in database example
jberdine Sep 18, 2024
a23ab5b
Use a closer approximation of variant type for Commands
jberdine Sep 18, 2024
ebb5f2a
Tighten type of Writer
jberdine Sep 18, 2024
1758cea
Fix async/await usage
jberdine Sep 19, 2024
6d77255
Appease linter
jberdine Sep 19, 2024
65598e4
Fix operator precedence bug
jberdine Sep 19, 2024
9496030
Fix type error due to 'as' in sum example mapper
jberdine Sep 19, 2024
723b906
Tighten types in sum Mapper
jberdine Sep 20, 2024
5766d3f
Tighten types in sum example
jberdine Sep 20, 2024
b454aa4
Fix type error missed by tsc in database service init
jberdine Sep 19, 2024
6dd80e5
Tighten type of JSON.parse and fix type error in utils run.
jberdine Sep 19, 2024
b611d13
Use . for field access and [] for dictionary lookup
jberdine Sep 20, 2024
8268878
Prefix unused parameter
jberdine Sep 20, 2024
41fd7a8
Reorganize tsconfig files
jberdine Sep 20, 2024
fdd42c7
Sync type-checking options between examples and src
jberdine Sep 20, 2024
899ef44
Simplifications and improvements to examples (#332)
jberdine Sep 23, 2024
c0c607a
Add target to update JS dependencies
jberdine Sep 20, 2024
ea315de
Update JS deps
jberdine Sep 20, 2024
1028baf
Add target to update JS dependencies, and run it (#337)
jberdine Sep 23, 2024
295f2d4
Build insight UI
gregsexton Sep 25, 2024
5378c18
Change page title to 'Insight'
gregsexton Sep 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
113 changes: 113 additions & 0 deletions .circleci/base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
version: 2.1

commands:
setup:
description: "Setup skip toolchain"
steps:
- run:
name: Fetch submodules
command: |
git submodule update --init --recursive

jobs:
check-format:
docker:
- image: skiplabs/skdb-base:latest
steps:
- checkout
- run:
name: Check code is formatted
command: |
make check-fmt

compiler:
docker:
- image: skiplabs/skdb-base:latest
resource_class: xlarge
steps:
- checkout
- setup
- run:
name: Run compiler tests
no_output_timeout: 30m
command: |
mkdir -p ~/test-results
cd compiler && make STAGE=1
PATH=$(realpath ./stage1/bin):$PATH skargo test --jobs 8 --junitxml ~/test-results/skc.xml
- store_test_results:
path: ~/test-results/skc.xml

skstore:
docker:
- image: skiplabs/skdb-base:latest
steps:
- checkout
- setup
- run:
name: Run skstore tests
command: |
mkdir -p ~/test-results
cd prelude && skargo test --jobs 8 --junitxml ~/test-results/skstore.xml
- store_test_results:
path: ~/test-results/skstore.xml

skdb:
docker:
- image: skiplabs/skdb-base:latest
steps:
- checkout
- setup
- run:
name: Run native skdb tests
command: |
make test-native
skdb-wasm:
docker:
- image: skiplabs/skdb-base:latest
steps:
- checkout
- setup
- run:
name: Run wasm skdb tests
no_output_timeout: 15m
environment:
PLAYWRIGHT_REPORTER: junit
PLAYWRIGHT_JUNIT_OUTPUT_NAME: ~/test-results/skdb-wasm.xml
command: |
mkdir -p ~/test-results
make test-wasm
- store_test_results:
path: ~/test-results/skdb-wasm.xml
skjson:
docker:
- image: skiplabs/skdb-base:latest
steps:
- checkout
- setup
- run:
name: Run skjson tests
command: |
mkdir -p ~/test-results
cd skjson && skargo test --junitxml ~/test-results/skjson.xml
- store_test_results:
path: ~/test-results/skjson.xml
skipruntime-wasm:
docker:
- image: skiplabs/skdb-base:latest
steps:
- checkout
- setup
- run:
name: Typecheck and lint skip runtime
command: cd skipruntime-ts && make check-all
- run:
name: Run wasm skip runtime tests
no_output_timeout: 10m
environment:
PLAYWRIGHT_REPORTER: junit
PLAYWRIGHT_JUNIT_OUTPUT_NAME: ~/test-results/skipruntime-wasm.xml
command: |
mkdir -p ~/test-results
make tstest-skipruntime-ts
- store_test_results:
path: ~/test-results/skipruntime-wasm.xml
23 changes: 23 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2.1

setup: true

orbs:
continuation: circleci/[email protected]

jobs:
setup:
executor: continuation/default
steps:
- checkout
- run:
name: Generate config
command: |
.circleci/generate_config.sh > generated_config.yml
- continuation/continue:
configuration_path: generated_config.yml

workflows:
setup:
jobs:
- setup
70 changes: 70 additions & 0 deletions .circleci/generate_config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#!/bin/bash

# TODO: This is flaky as it relies on coarse directory-level diffs.
git diff --quiet HEAD $(git merge-base main HEAD) -- compiler/ prelude/ :^prelude/ts
skc=$?
git diff --quiet HEAD $(git merge-base main HEAD) -- prelude/src/skstore/ compiler/runtime/
skstore=$?
git diff --quiet HEAD $(git merge-base main HEAD) -- sql/ sqlparser/ skbuild/
skdb=$?
git diff --quiet HEAD $(git merge-base main HEAD) -- sknpm/
sknpm=$?
git diff --quiet HEAD $(git merge-base main HEAD) -- skipruntime-ts/
skipruntime_wasm=$?
git diff --quiet HEAD $(git merge-base main HEAD) -- prelude/ts/
ts_prelude=$?

cat .circleci/base.yml

echo "workflows:"

cat <<EOF
check-format:
jobs:
- check-format
EOF

if (( $skc != 0 ))
then
cat <<EOF
compiler:
jobs:
- compiler
EOF
fi

if (( $skstore != 0 ))
then
cat <<EOF
skstore:
jobs:
- skstore
EOF
fi

if (( $skdb != 0 || $skstore != 0 ))
then
cat <<EOF
skdb:
jobs:
- skdb
EOF
fi

if (( $skdb != 0 || $skstore != 0 || $sknpm != 0 || $ts_prelude != 0 ))
then
cat <<EOF
skdb-wasm:
jobs:
- skdb-wasm
EOF
fi

if (( $skdb != 0 || $skstore != 0 || $skipruntime_wasm != 0 || $sknpm != 0 || $ts_prelude != 0 ))
then
cat <<EOF
skipruntime-wasm:
jobs:
- skipruntime-wasm
EOF
fi
Loading