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

Rework python river client and server #7

Merged
merged 57 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from 54 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
4f4733d
Add heartbeat
zhenthebuilder Apr 16, 2024
3ca927e
Test
zhenthebuilder Apr 16, 2024
063a28d
Merge remote-tracking branch 'origin/main' into zl/04_11_upgrade
zhenthebuilder Apr 16, 2024
375a6bc
Figure out
zhenthebuilder Apr 17, 2024
064eb4e
Add heartbeat to client
zhenthebuilder Apr 17, 2024
b784409
Remove some logging
zhenthebuilder Apr 17, 2024
1848cd9
Upgrade version
zhenthebuilder Apr 17, 2024
7e4f628
Add github test actions
zhenthebuilder Apr 17, 2024
de3a6f0
Fix test
zhenthebuilder Apr 17, 2024
2277078
make poetry work
zhenthebuilder Apr 17, 2024
3e4bc65
Refactor to do grace disconnect
zhenthebuilder Apr 18, 2024
33d707b
Checkpoint
zhenthebuilder Apr 18, 2024
0392e2d
Experimental version
zhenthebuilder Apr 18, 2024
2353861
Change test
zhenthebuilder Apr 18, 2024
4aca18b
Update buffer
zhenthebuilder Apr 18, 2024
4185203
Fix order
zhenthebuilder Apr 19, 2024
fa2555d
Refactor server logic
zhenthebuilder Apr 19, 2024
c2430fc
Retry logic
zhenthebuilder Apr 20, 2024
f2287c0
Make client + server working
zhenthebuilder Apr 20, 2024
24b4a0a
Fix
zhenthebuilder Apr 20, 2024
9b7f991
Fix heartbeat
zhenthebuilder Apr 20, 2024
a3e29d8
Update
zhenthebuilder Apr 21, 2024
2dc2a33
pass bun -> python 23/24
zhenthebuilder Apr 21, 2024
b96e2d6
Checkpoint for client logic
zhenthebuilder Apr 21, 2024
0f9ab48
pass all tests except for error notify and MismatchedClientInstanceDo…
zhenthebuilder Apr 21, 2024
849b8e2
Update
zhenthebuilder Apr 22, 2024
785ceb9
Cleanup refactor
zhenthebuilder Apr 22, 2024
2fc1c5d
Cleanup
zhenthebuilder Apr 23, 2024
b55d513
Everything work except for notify
zhenthebuilder Apr 23, 2024
2178a8b
Refactor
zhenthebuilder Apr 23, 2024
bf681ae
Still send heartbeat while grace period
zhenthebuilder Apr 23, 2024
e2ae46d
Fix bug
zhenthebuilder Apr 23, 2024
cebad6f
Fix
zhenthebuilder Apr 23, 2024
0294ed2
Update pull request template
zhenthebuilder Apr 23, 2024
e94cace
Remove all the calls to websocket.state
zhenthebuilder Apr 23, 2024
ba3ee03
beta 3
zhenthebuilder Apr 23, 2024
2553d16
beta4
zhenthebuilder Apr 23, 2024
93b5308
beta5
zhenthebuilder Apr 23, 2024
76fcadf
beta6
zhenthebuilder Apr 23, 2024
9f70eb5
Fix
zhenthebuilder Apr 23, 2024
5e329d0
beta7
zhenthebuilder Apr 23, 2024
7436a74
beta8 ignore out of order msg
zhenthebuilder Apr 23, 2024
fd319c5
Checkout point
zhenthebuilder Apr 23, 2024
b7cfa7c
fix test
zhenthebuilder Apr 24, 2024
ec8cdee
Resolve comment 1
zhenthebuilder Apr 24, 2024
d0bcf60
Fix
zhenthebuilder Apr 24, 2024
90870da
Resolve comment
zhenthebuilder Apr 24, 2024
f533197
Change logging.debug
zhenthebuilder Apr 24, 2024
bffd979
Resolve
zhenthebuilder Apr 24, 2024
9865e11
Resolve comments
zhenthebuilder Apr 24, 2024
8bac398
Fix
zhenthebuilder Apr 24, 2024
6a387c5
Some fix
zhenthebuilder Apr 24, 2024
1e37254
0.1.8
zhenthebuilder Apr 24, 2024
a886d11
Format
zhenthebuilder Apr 24, 2024
fa164b0
Add a timeout for client receive handshake response
zhenthebuilder Apr 25, 2024
5b3d961
Add timeout for session
zhenthebuilder Apr 25, 2024
3d4e2e8
1.0.9
zhenthebuilder Apr 25, 2024
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
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Why
===

_Describe what prompted you to make this change, link relevant resources: Linear issues, Slack discussions, etc._

What changed
============

_Describe what changed to a level of detail that someone with no context with your PR could be able to review it_

Test plan
=========

_Describe what you did to test this change to a level of detail that allows your reviewer to test it_
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Python package

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: cache poetry install
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-1.6.1-0
- uses: snok/install-poetry@v1
with:
version: 1.6.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: cache deps
id: cache-deps
uses: actions/cache@v2
with:
path: .venv
key: pydeps-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: |
poetry install --no-interaction
- name: Test with pytest
run: |
poetry run pytest tests
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name="replit-river"
version="0.1.5"
version="0.1.8"
description="Replit river toolkit for Python"
authors = ["Replit <eng@replit.com>"]
license = "LICENSE"
Expand Down
Loading
Loading