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

Feature/more tests #10

Merged
merged 40 commits into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
9fe88d1
feat: Add CORS middleware to handle cross-origin requests
PlugFox Jul 19, 2024
31a42a6
feat: Update launch.json and SpinifyInterface to improve WebSocket ha…
PlugFox Jul 19, 2024
60afae9
feat: Improve WebSocket handling and add Protobuf transport support
PlugFox Jul 20, 2024
5352517
Example of rpc disconnect
PlugFox Jul 20, 2024
844ddd3
feat: Add support for reconnecting in RPC disconnect method
PlugFox Jul 20, 2024
03a6cac
feat: Add support for reconnecting in RPC disconnect method
PlugFox Jul 20, 2024
65de031
feat: Update timeouts in smoke_test.dart to improve RPC testing
PlugFox Jul 20, 2024
8fd27a9
feat: Improve WebSocket handling and add Protobuf transport support
PlugFox Jul 20, 2024
9a2fa88
refactor: Update WebSocket handling and Protobuf transport in smoke_t…
PlugFox Jul 20, 2024
4a08a9f
refactor: Create event queue for socket events
PlugFox Jul 20, 2024
c9c3004
feat: Add support for reconnecting in RPC disconnect method
PlugFox Jul 20, 2024
c642d99
refactor: Update WebSocket handling and Protobuf transport in transpo…
PlugFox Jul 20, 2024
bbde4c4
refactor: Create event queue for socket events
PlugFox Jul 24, 2024
784166e
refactor: Update WebSocket handling and Protobuf transport in transpo…
PlugFox Jul 24, 2024
b9dfb4c
refactor: Update WebSocket handling and Protobuf transport in transpo…
PlugFox Jul 24, 2024
05a709e
refactor: Update WebSocket handling and Protobuf transport in transpo…
PlugFox Jul 24, 2024
c9d0af9
refactor: Update async_test.dart to improve caching performance
PlugFox Jul 31, 2024
55d1992
refactor: Update screenshot description in pubspec.yaml
PlugFox Aug 16, 2024
e026537
Fix dart tests
PlugFox Aug 16, 2024
7a96c7f
Add benchmark app
PlugFox Aug 16, 2024
015a4d0
refactor: Update launch configuration for benchmark in VSCode
PlugFox Aug 16, 2024
ebbc5d2
refactor: Update payload size and message count UI in benchmark app
PlugFox Aug 16, 2024
ecdff0d
refactor: Update BenchmarkController to use abstract base class
PlugFox Aug 16, 2024
fc64b4e
refactor: Update payload size and message count UI in benchmark app
PlugFox Aug 16, 2024
0bd4e0b
refactor: Update payload size and message count UI in benchmark app
PlugFox Aug 16, 2024
6c62057
refactor: Update benchmark app UI and status handling
PlugFox Aug 16, 2024
1f55191
refactor: Update benchmark app UI and status handling
PlugFox Aug 17, 2024
837daed
```text
PlugFox Aug 17, 2024
76d7d22
refactor: Add HelpTab to benchmark app UI
PlugFox Aug 17, 2024
69dfccf
refactor: Update benchmark app UI and status handling
PlugFox Aug 17, 2024
0345ac3
refactor: Update launch configuration for benchmark in VSCode
PlugFox Aug 17, 2024
25e9ecb
refactor: Update benchmark app UI and status handling
PlugFox Aug 17, 2024
8e1dc51
refactor: Update firebase.json hosting ignore rules
PlugFox Aug 17, 2024
8513b08
refactor: Update app titles to include "Spinify"
PlugFox Aug 17, 2024
44f210c
refactor: Update app titles to include "Spinify"
PlugFox Aug 17, 2024
468cd0c
refactor: Update timestamp in pubspec.yaml.g.dart
PlugFox Aug 17, 2024
01a6916
refactor: Update version to 0.0.2 in pubspec.yaml
PlugFox Aug 18, 2024
ce62318
refactor: Update pubspec.yaml to add Protobuf support for WebSockets
PlugFox Aug 18, 2024
023fdce
refactor: Update description in pubspec.yaml for Dart and Flutter com…
PlugFox Aug 18, 2024
8d821a0
Update version
PlugFox Aug 18, 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
3 changes: 2 additions & 1 deletion .github/workflows/checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
id: verify-versions
timeout-minutes: 1
run: |
test -f pubspec.yaml && test -f lib/src/model/pubspec.yaml.g.dart
test -f pubspec.yaml && test -f lib/src/model/pubspec.yaml.g.dart && test -f CHANGELOG.md
version_pubspec=$(grep '^version:' pubspec.yaml | awk '{print $2}' | sed 's/[^[:print:]]//g')
version_dart=$(grep 'representation: r' lib/src/model/pubspec.yaml.g.dart | awk -F"'" '{print $2}' | sed 's/[^[:print:]]//g')
test -n "$version_pubspec" && test -n "$version_dart"
Expand All @@ -95,6 +95,7 @@ jobs:
echo "$version_pubspec" > /tmp/version_pubspec
echo "$version_dart" > /tmp/version_dart
diff /tmp/version_pubspec /tmp/version_dart
grep -q "# $version_pubspec" CHANGELOG.md || (echo "Version not found in CHANGELOG.md" >&2; exit 1)
- name: 🧪 Run unit tests
id: run-unit-tests
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,7 @@ config.json

# Binaries for programs and plugins
*.exe
*.exe~
*.exe~

# Firebase
.firebase/
41 changes: 29 additions & 12 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
{
"version": "0.2.0",
"configurations": [
/* {
"name": "[Flutter] Example (Local)",
{
"name": "[Flutter] Benchmark (debug)",
"request": "launch",
"type": "dart",
"flutterMode": "debug",
"cwd": "${workspaceFolder}/example",
"cwd": "${workspaceFolder}/benchmark",
"program": "lib/main.dart",
"env": {
"ENVIRONMENT": "local"
},
"console": "debugConsole",
"runTestsOnDevice": false,
"toolArgs": [],
"args": [
"--dart-define-from-file=config/local.json"
]
}, */
"args": []
},
{
"name": "[Flutter] Benchmark (release)",
"request": "launch",
"type": "dart",
"flutterMode": "release",
"cwd": "${workspaceFolder}/benchmark",
"program": "lib/main.dart",
"env": {
"ENVIRONMENT": "local"
},
"console": "debugConsole",
"runTestsOnDevice": false,
"toolArgs": [],
"args": []
},
/* {
"name": "[Flutter] Example (Development)",
"request": "launch",
Expand Down Expand Up @@ -84,7 +97,7 @@
"--file-reporter=json:coverage/tests.json",
"--timeout=30s",
"--concurrency=12",
/* "--name=can send binary data" */
/* "--name=Disconnect_permanent" */
],
"args": []
},
Expand Down Expand Up @@ -132,8 +145,10 @@
"--reporter=expanded",
"--platform=vm", // chrome
"--file-reporter=json:coverage/tests.json",
"--timeout=30s",
"--concurrency=12"
"--timeout=5m",
"--concurrency=12",
"--chain-stack-traces",
/* "--name=Disconnect_temporarily" */
],
"args": [],
/* "preLaunchTask": "echo:start",
Expand All @@ -158,8 +173,10 @@
"--platform=chrome",
"--compiler=dart2js",
"--file-reporter=json:coverage/tests.json",
"--timeout=30s",
"--concurrency=12"
"--timeout=5m",
"--concurrency=12",
"--chain-stack-traces",
/* "--name=Connect_and_disconnect" */
],
"args": [],
/* "preLaunchTask": "echo:start",
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.2

- Basic functionality implemented

## 0.0.1-pre.9

- **ADDED**: Initial release
5 changes: 5 additions & 0 deletions benchmark/.firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "spinify-benchmark"
}
}
43 changes: 43 additions & 0 deletions benchmark/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
45 changes: 45 additions & 0 deletions benchmark/.metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: "80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819"
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
- platform: android
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
- platform: ios
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
- platform: linux
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
- platform: macos
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
- platform: web
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
- platform: windows
create_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819
base_revision: 80c2e84975bbd28ecf5f8d4bd4ca5a2490bfc819

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
13 changes: 13 additions & 0 deletions benchmark/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Spinify: benchmark

## Build

```bash
flutter build web --release --no-source-maps --pwa-strategy offline-first --web-renderer canvaskit --web-resources-cdn --base-href /
```

## Deploy

```bash
firebase deploy --only hosting
```
Loading
Loading