Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
38218b2
client-replica: the first release
XiaochenCui Oct 21, 2025
899d111
client-replica: hide the debug widget
XiaochenCui Oct 10, 2025
4ef3d8b
client-replica: fix nil map
XiaochenCui Oct 10, 2025
d9a7974
update logs
XiaochenCui Oct 10, 2025
900f86c
client-replica: docker config
XiaochenCui Oct 14, 2025
45559ca
client-replica: add permission check (whitelist)
XiaochenCui Oct 14, 2025
edbafc4
client-replica: init playwright test (because of websocket)
XiaochenCui Oct 18, 2025
12a6e5f
client-replica: init multi-sesessions test
XiaochenCui Oct 15, 2025
9f4df5a
client-replica: remove local config, update gitignore
XiaochenCui Oct 16, 2025
81c8bc3
client-replica: update package.json
XiaochenCui Oct 16, 2025
3288eb5
client-replica: add e2e test to ci
XiaochenCui Oct 16, 2025
54a3289
ci: update work dir
XiaochenCui Oct 16, 2025
8f430b7
ci: add build action
XiaochenCui Oct 16, 2025
6d738a9
ci: pass playwright test
XiaochenCui Oct 16, 2025
89a0396
test: fix lint
XiaochenCui Oct 17, 2025
6b434e8
test: seperate sessions
XiaochenCui Oct 18, 2025
40764f1
ci: update
XiaochenCui Oct 18, 2025
094a327
ci: init server config
XiaochenCui Oct 18, 2025
d242657
ci: install deps
XiaochenCui Oct 18, 2025
ad49f36
ci: add tmp action
XiaochenCui Oct 18, 2025
99ff426
ci: update config
XiaochenCui Oct 20, 2025
b0fc37a
ci: loosen the time limit
XiaochenCui Oct 20, 2025
a19c1ef
ci: update config
XiaochenCui Oct 20, 2025
c051480
ci: fix config error
XiaochenCui Oct 20, 2025
0647fed
test: update client-replica test
XiaochenCui Oct 20, 2025
06a6728
client-replica: update test
XiaochenCui Oct 21, 2025
168a6fb
ci: give fs-tree-manager more time
XiaochenCui Oct 21, 2025
967527f
misc: test, ci, comments
XiaochenCui Oct 21, 2025
54bcbd5
client-replica: update docs
XiaochenCui Oct 28, 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
87 changes: 71 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: test

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
test:
Expand All @@ -15,19 +15,19 @@ jobs:
node-version: [20.x, 22.x]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
rm package-lock.json
npm install -g npm@latest
npm install
npm run test
- name: Build
run: |
rm package-lock.json
npm install -g npm@latest
npm install
npm run test

api-test:
runs-on: ubuntu-latest
Expand All @@ -44,8 +44,63 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: API Test
run: |
pip install -r ./tools/api-tester/ci/requirements.txt
./tools/api-tester/ci/run.py
pip install -r ./tests/ci/requirements.txt
./tests/ci/api-test.py

playwright-test:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
matrix:
node-version: [22.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm install
working-directory: ./tests/playwright

- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: ./tests/playwright

- name: Playwright Test
run: |
pip install -r ./tests/ci/requirements.txt
./tests/ci/playwright-test.py

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: server-logs
path: |
/tmp/backend.log
/tmp/fs-tree-manager.log
retention-days: 3

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: config-files
path: |
./volatile/config/config.json
./src/fs_tree_manager/config.yaml
./tests/client-config.yaml
retention-days: 3

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: tests/playwright/playwright-report/
retention-days: 3
20 changes: 19 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,28 @@ jsconfig.json
# the exact tree installed in the node_modules folder
package-lock.json

# ======================================================================
# fs tree manager
# ======================================================================
src/fs_tree_manager/config.yaml

# ======================================================================
# playwright test (currently only test the client-replica)
# ======================================================================
tests/client-config.yaml

# ======================================================================
# auto-generated js and js.map files
# ======================================================================
src/puter-js/src/modules/FileSystem/replica/manager.js
src/puter-js/src/modules/FileSystem/replica/manager.js.map

# ======================================================================
# other
# ======================================================================
# AI STUFF
AGENTS.md
.roo


# source maps
*.map
Loading