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 cloud test #131

Open
wants to merge 83 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 79 commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
542211e
chore: intro of local cloud tests
mabels Nov 15, 2024
dc4b3de
chore: almost done
mabels Nov 28, 2024
70c4f07
chore(deps): bump better-sqlite3 from 11.5.0 to 11.6.0
dependabot[bot] Dec 2, 2024
91bd86f
chore(deps): bump @fireproof/core from 0.19.113 to 0.19.114
dependabot[bot] Dec 2, 2024
dbcc616
chore(deps): bump @web3-storage/w3up-client from 16.5.1 to 16.5.2
dependabot[bot] Dec 2, 2024
4bd8567
chore(deps-dev): bump vite from 5.4.11 to 6.0.2
dependabot[bot] Dec 2, 2024
c4f8bed
chore: intro of local cloud tests
mabels Nov 15, 2024
0a64bfe
chore: almost done
mabels Nov 28, 2024
b230ea4
chore: wip
mabels Dec 2, 2024
efeaa86
chore: runs the tsc
mabels Dec 2, 2024
a0e649e
chore: make tsc happy
mabels Dec 6, 2024
f919140
chore(deps-dev): bump vitest from 2.1.6 to 2.1.8
dependabot[bot] Dec 9, 2024
98f7a51
chore(deps): bump better-sqlite3 from 11.6.0 to 11.7.0
dependabot[bot] Dec 9, 2024
41152de
chore(deps-dev): bump @typescript-eslint/typescript-estree
dependabot[bot] Dec 9, 2024
ec30e83
chore(deps): bump @adviser/cement from 0.2.40 to 0.2.41
dependabot[bot] Dec 9, 2024
264193d
chore(deps-dev): bump typescript-eslint from 8.16.0 to 8.17.0
dependabot[bot] Dec 9, 2024
1b6c61e
chore(deps): bump @aws-sdk/client-s3 from 3.703.0 to 3.705.0
dependabot[bot] Dec 9, 2024
2c93d7d
chore(deps): bump cborg from 4.2.6 to 4.2.7
dependabot[bot] Dec 9, 2024
48cbaee
chore(deps-dev): bump prettier from 3.4.1 to 3.4.2
dependabot[bot] Dec 9, 2024
ea2c404
chore(deps-dev): bump vite-tsconfig-paths from 5.1.3 to 5.1.4
dependabot[bot] Dec 9, 2024
c5e0a96
chore(deps-dev): bump wrangler from 3.91.0 to 3.93.0
dependabot[bot] Dec 9, 2024
aaccdd2
chore: intro of local cloud tests
mabels Nov 15, 2024
03f4bae
chore: almost done
mabels Nov 28, 2024
0726f6c
chore(deps): bump @web3-storage/w3up-client from 16.5.1 to 16.5.2
dependabot[bot] Dec 2, 2024
849aab0
chore: intro of local cloud tests
mabels Nov 15, 2024
895c5c1
chore: wip
mabels Dec 2, 2024
4d38326
chore: runs the tsc
mabels Dec 2, 2024
0b2463d
WIP
mabels Dec 9, 2024
54ff872
WIP
mabels Dec 17, 2024
730b0aa
chore: MsgConnection
mabels Dec 22, 2024
1257040
chore: added coderabbit
mabels Dec 23, 2024
4cecd0e
wip
mabels Dec 23, 2024
503f352
chore: Msger with connection tests
mabels Dec 23, 2024
60c1a2f
chore: hono is our server platform
mabels Dec 23, 2024
b0838d9
chore: Get/Put/Delete.Data/WAL
mabels Dec 25, 2024
d413938
chore: refactor cloud test helper
mabels Dec 25, 2024
c850fae
chore: added data/wal store tests
mabels Dec 25, 2024
2a87674
chore(deps-dev): bump vitest from 2.1.6 to 2.1.8
dependabot[bot] Dec 9, 2024
c66dc62
chore(deps): bump @adviser/cement from 0.2.40 to 0.2.41
dependabot[bot] Dec 9, 2024
9aed44e
chore(deps): bump @aws-sdk/client-s3 from 3.703.0 to 3.705.0
dependabot[bot] Dec 9, 2024
aadc856
chore(deps-dev): bump vite from 6.0.2 to 6.0.3
dependabot[bot] Dec 9, 2024
a1eef1f
from single scripts to docker-compose (#177)
mabels Dec 9, 2024
347c46f
chore: bump version 0.19.117
mabels Dec 10, 2024
0e56a0e
chore: skip 0.19.117
mabels Dec 10, 2024
12023a7
chore(deps-dev): bump @types/node from 22.10.1 to 22.10.2
dependabot[bot] Dec 16, 2024
c410a2c
chore(deps): bump @web3-storage/capabilities from 17.4.1 to 18.0.0
dependabot[bot] Dec 16, 2024
87da04c
chore(deps-dev): bump eslint from 9.16.0 to 9.17.0
dependabot[bot] Dec 16, 2024
b379722
chore(deps-dev): bump wrangler from 3.93.0 to 3.95.0
dependabot[bot] Dec 16, 2024
99b314a
chore(deps-dev): bump @smithy/types from 3.7.1 to 3.7.2
dependabot[bot] Dec 16, 2024
1da22f3
chore(deps): bump node-sqlite3-wasm from 0.8.28 to 0.8.29
dependabot[bot] Dec 16, 2024
698291a
chore(deps): bump partysocket from 1.0.2 to 1.0.3
dependabot[bot] Dec 16, 2024
84bbc70
chore(deps): bump @web3-storage/access from 20.1.0 to 20.1.1
dependabot[bot] Dec 16, 2024
ab24880
chore(deps-dev): bump @eslint/js from 9.16.0 to 9.17.0
dependabot[bot] Dec 16, 2024
01a74e8
chore(deps-dev): bump typescript-eslint from 8.17.0 to 8.18.0
dependabot[bot] Dec 16, 2024
4520115
chore(deps): bump @aws-sdk/client-s3 from 3.705.0 to 3.712.0
dependabot[bot] Dec 16, 2024
a1dff82
chore(deps-dev): bump @typescript-eslint/typescript-estree
dependabot[bot] Dec 16, 2024
bff090e
feat: Add sharing, fix sync & finish ucan examples
icidasset Nov 21, 2024
3095a32
feat: Enable polling in browser ucan example + format code
icidasset Dec 10, 2024
47936f8
chore: Rename ucan browser example to control-panel
icidasset Dec 17, 2024
f696529
chore: Remove console.logs from ucan connector
icidasset Dec 17, 2024
53f88a4
chore(deps): bump cross-fetch from 4.0.0 to 4.1.0
dependabot[bot] Dec 23, 2024
4f1fa0a
chore(deps-dev): bump wrangler from 3.95.0 to 3.99.0
dependabot[bot] Dec 23, 2024
1cc1a34
chore(deps-dev): bump @typescript-eslint/typescript-estree
dependabot[bot] Dec 23, 2024
ab80b31
chore(deps): bump @web3-storage/w3up-client from 16.5.2 to 17.1.1
dependabot[bot] Dec 23, 2024
9bb92a2
chore(deps-dev): bump vite from 6.0.3 to 6.0.5
dependabot[bot] Dec 23, 2024
1bcd7d2
chore(deps-dev): bump esbuild from 0.24.0 to 0.24.2
dependabot[bot] Dec 23, 2024
11afda5
chore(deps): bump @aws-sdk/client-s3 from 3.712.0 to 3.717.0
dependabot[bot] Dec 23, 2024
ba7efeb
chore(deps): bump @adviser/cement from 0.2.41 to 0.2.44
dependabot[bot] Dec 23, 2024
5d727b3
chore(deps): bump @web3-storage/capabilities from 18.0.0 to 18.0.1
dependabot[bot] Dec 23, 2024
ade8403
chore(deps): bump node-sqlite3-wasm from 0.8.29 to 0.8.30
dependabot[bot] Dec 23, 2024
9112a83
chore(deps-dev): bump typescript-eslint from 8.18.0 to 8.18.1
dependabot[bot] Dec 23, 2024
675c347
chore: intro of local cloud tests
mabels Nov 15, 2024
aaa0cf4
chore: sql implementation of meta-merge
mabels Jan 2, 2025
b4398c8
chore: run tests on node and cf-worker
mabels Jan 3, 2025
a363556
chore: stablize the tests
mabels Jan 3, 2025
3e0be90
WIP
mabels Jan 6, 2025
952c002
WIP
mabels Jan 7, 2025
89de574
WIP
mabels Jan 7, 2025
ccd9d1d
chore: with Meta-Merge
mabels Jan 8, 2025
47fa88e
chore: implement sql driver for durable object
mabels Jan 8, 2025
47858a8
chore: added WSRoom for ws broadcast to all connected sockets
mabels Jan 9, 2025
d30ec87
try the ones that pass for me
jchris Jan 23, 2025
7ccaa69
WIP
mabels Jan 24, 2025
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
15 changes: 15 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
language: "en-US"
#early_access: false
reviews:
profile: "chill"
request_changes_workflow: false
high_level_summary: true
poem: false
review_status: false
collapse_walkthrough: false
auto_review:
enabled: true
drafts: true
chat:
auto_reply: true
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
**/node_modules/*
**/.wrangler/*
**/node_modules/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Files
.wrangler
.vscode
.idea
.DS_Store
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,13 @@ To run a single test by its full name, you can use the `-t` flag followed by the
```console
$ pnpm test-gateways --project partykit -t "should sync to an empty db"
```

Cloud Meta Merge Datastructure:

1. PK(reqId,resId,tenant,ledger) accessed(date) (delete after x of time)
2. PK(tenant,ledger,reqId,resId) meta deliveryCount (delete if deiveryCount > y)
if meta is updated deliveryCount = 0

getMeta updates deliveryCount
getMeta on stream starts updates stream of resGetMeta
avoid subscribe method
Comment on lines +27 to +35
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Improve formatting and clarity of Cloud Meta Merge documentation

The Cloud Meta Merge documentation needs better formatting and clarity:

  1. There's a typo: "deiveryCount" should be "deliveryCount"
  2. The structure is hard to read and understand

Consider this improved format:

## Cloud Meta Merge Data Structure

### Primary Key Formats

1. **Time-based Access Record**

PK(reqId, resId, tenant, ledger)

  • Includes: accessed(date)
  • Cleanup: Entries deleted after time period X

2. **Delivery Tracking Record**

PK(tenant, ledger, reqId, resId)

  • Includes: meta deliveryCount
  • Cleanup: Entries deleted if deliveryCount > Y
  • Note: deliveryCount resets to 0 when meta is updated

### Operations

- **getMeta**:
- Updates the deliveryCount
- When used with stream, initiates updates stream of resGetMeta
- ⚠️ Warning: Avoid using the subscribe method

96 changes: 0 additions & 96 deletions examples/ucan/browser/src/state.js

This file was deleted.

18 changes: 0 additions & 18 deletions examples/ucan/browser/src/types.d.ts

This file was deleted.

196 changes: 0 additions & 196 deletions examples/ucan/browser/src/view.js

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"preview": "rsbuild preview"
},
"dependencies": {
"@fireproof/connect": "../../../",
"@fireproof/core": "0.19.116",
"@fireproof/ucan": "../../../dist/ucan",
"@picocss/pico": "^2.0.6",
"spellcaster": "^5.0.2"
},
Expand Down
Loading
Loading