-
-
Notifications
You must be signed in to change notification settings - Fork 257
APM for isar #1726
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
Merged
APM for isar #1726
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
fb09b38
setup
denrase 8cefb7e
introduce wrappers for isar and isar_collection, wrap all async methods
denrase cc31e4b
Merge branch 'main' into feat/isar
denrase 2420ec9
correctly setup tests
denrase d780a41
test isar & isar collection
denrase 452015f
test throwing isar collection methods
denrase 4ba63b6
add workflow for tests
denrase 988ca81
also bump isar version
denrase 2385a2e
add commented oout entry to craft.yml
denrase 7910e51
Update example app
denrase 5ee8639
Update examples
denrase b390fae
Add changelog entry
denrase fe19113
run format
denrase 0b81c7f
Merge branch 'main' into feat/isar
denrase 1caeb4a
fix readme
denrase 9bf5a6d
remove separate isar import
denrase 30e6254
add back isar dependency (used in tests)
denrase 7961474
add generated person.g
denrase 770a4e3
update workflows
denrase a47a830
add coverage to gitignore
denrase 61cf436
ignore warning in generated mock code
denrase ead1481
change min coverage to 55
denrase 30fdfa4
Add workaround for issue where UserSchema leads to compile issue on web
denrase 2d4e12e
Merge branch 'main' into feat/isar
denrase 23abf7e
fix changelog
denrase a4b42fa
update readme files
denrase 34920d4
Merge branch 'main' into feat/isar
denrase 65b6531
Merge branch 'main' into feat/isar
denrase 20e3f8c
fix changelog
denrase 525d3f8
Merge branch 'main' into feat/isar
denrase cbbaae8
fix changelog
denrase 20d53f5
remove isar generator because of test failure on macOS (missing isar …
denrase File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ on: | |
- "sqflite/**" | ||
- "hive/**" | ||
- "drift/**" | ||
- "isar/**" | ||
|
||
jobs: | ||
cancel-previous-workflow: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ on: | |
- "sqflite/**" | ||
- "hive/**" | ||
- "drift/**" | ||
- "isar/**" | ||
|
||
jobs: | ||
cancel-previous-workflow: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ on: | |
- "dio/**" | ||
- "file/**" | ||
- "sqflite/**" | ||
- "hive/**" | ||
- "isar/**" | ||
|
||
jobs: | ||
cancel-previous-workflow: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ on: | |
- "sqflite/**" | ||
- "hive/**" | ||
- "drift/**" | ||
- "isar/**" | ||
|
||
jobs: | ||
cancel-previous-workflow: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ on: | |
- "sqflite/**" | ||
- "hive/**" | ||
- "drift/**" | ||
- "isar/**" | ||
|
||
jobs: | ||
cancel-previous-workflow: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ on: | |
- "dio/**" | ||
- "file/**" | ||
- "sqflite/**" | ||
- "drift/**" | ||
- "isar/**" | ||
|
||
jobs: | ||
cancel-previous-workflow: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
name: sentry-isar | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- release/** | ||
pull_request: | ||
paths-ignore: | ||
- "**/*.md" | ||
- "logging/**" | ||
- "flutter/**" | ||
- "dio/**" | ||
- "file/**" | ||
- "sqflite/**" | ||
- "hive/**" | ||
- "drift/**" | ||
|
||
jobs: | ||
cancel-previous-workflow: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/cancel-workflow-action@01ce38bf961b4e243a6342cbade0dbc8ba3f0432 # [email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
build: | ||
name: ${{ matrix.target }} | ${{ matrix.os }} | ${{ matrix.sdk }} | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 30 | ||
defaults: | ||
run: | ||
shell: bash | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
target: ["ios", "android", "macos", "linux", "windows"] | ||
sdk: ["stable", "beta"] | ||
exclude: | ||
- os: ubuntu-latest | ||
target: ios | ||
- os: ubuntu-latest | ||
target: macos | ||
- os: ubuntu-latest | ||
target: windows | ||
- os: windows-latest | ||
target: ios | ||
- os: windows-latest | ||
target: android | ||
- os: windows-latest | ||
target: macos | ||
- os: windows-latest | ||
target: linux | ||
# macos-latest is taking hours due to limited resources | ||
- os: macos-latest | ||
target: android | ||
- os: macos-latest | ||
target: linux | ||
- os: macos-latest | ||
target: windows | ||
# Bad CPU type in executable | ||
- os: macos-latest | ||
sdk: beta | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-java@v3 | ||
if: ${{ matrix.target == 'android' }} | ||
with: | ||
java-version: "11" | ||
distribution: "adopt" | ||
|
||
# Install required dependencies for Flutter on Linux on Ubuntu | ||
- name: "Setup Linux" | ||
run: | | ||
sudo apt update | ||
sudo apt install -y cmake dbus libblkid-dev libgtk-3-dev liblzma-dev ninja-build pkg-config xvfb | ||
sudo apt install -y network-manager upower | ||
if: matrix.os == 'ubuntu-latest' && matrix.target == 'linux' | ||
|
||
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # [email protected] | ||
with: | ||
channel: ${{ matrix.sdk }} | ||
|
||
- run: flutter upgrade | ||
|
||
- name: Pub Get | ||
run: | | ||
cd isar | ||
flutter pub get | ||
|
||
- name: Test VM with coverage | ||
run: | | ||
cd isar | ||
flutter test -j 1 --coverage --test-randomize-ordering-seed=random | ||
|
||
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # pin@v3 | ||
if: runner.os == 'Linux' && matrix.sdk == 'stable' && matrix.target == 'linux' | ||
with: | ||
name: sentry_isar | ||
file: ./isar/coverage/lcov.info | ||
functionalities: "search" # remove after https://github.com/codecov/codecov-action/issues/600 | ||
|
||
- uses: VeryGoodOpenSource/very_good_coverage@e5c91bc7ce9843e87c800b3bcafdfb86fbe28491 # [email protected] | ||
if: runner.os == 'Linux' && matrix.sdk == 'stable' && matrix.target == 'linux' | ||
with: | ||
path: "./isar/coverage/lcov.info" | ||
min_coverage: 55 | ||
|
||
analyze: | ||
uses: ./.github/workflows/analyze.yml | ||
with: | ||
package: isar | ||
sdk: flutter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ on: | |
- "sqflite/**" | ||
- "hive/**" | ||
- "drift/**" | ||
- "isar/**" | ||
|
||
jobs: | ||
cancel-previous-workflow: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ on: | |
- "sqflite/**" | ||
- "hive/**" | ||
- "drift/**" | ||
- "isar/**" | ||
|
||
jobs: | ||
cancel-previous-workflow: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ on: | |
- "file/**" | ||
- "hive/**" | ||
- "drift/**" | ||
- "isar/**" | ||
|
||
jobs: | ||
cancel-previous-workflow: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import 'package:isar/isar.dart'; | ||
|
||
part 'user.g.dart'; | ||
|
||
@collection | ||
class User { | ||
Id id = Isar.autoIncrement; | ||
|
||
String? name; | ||
|
||
int? age; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.