Skip to content

Commit 5c6f66d

Browse files
renovate[bot]daohoangsonclaude
authored
Update dependency patrol to v4 (#1539)
Also: * Update dependency patrol_finders to v3 * pin patrol_cli version in CI * chore: Use shiba for Android@34 and iPhone 14 Pro for iOS@16.6 * fix: increase aspect ratio comparison tolerance to avoid floating point flakiness --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Đào Hoàng Sơn <daohoangson@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 493391a commit 5c6f66d

5 files changed

Lines changed: 37 additions & 45 deletions

File tree

.github/workflows/integration_test.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333
run: |
3434
set -e
3535
36-
dart pub global activate patrol_cli
36+
dart pub global activate patrol_cli 4.1.0
3737
3838
cd demo_app
3939
flutter build apk --config-only
40-
patrol build android --verbose --target integration_test/auto_resize_test.dart
40+
patrol build android --verbose --target patrol_test/auto_resize_test.dart
4141
4242
- uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
4343
with:
@@ -47,11 +47,11 @@ jobs:
4747
run: |
4848
set -e
4949
50-
cd demo_app
51-
export ANDROID_DEVICE_MODEL=redfin
52-
export ANDROID_DEVICE_VERSION=30
50+
# https://github.com/leancodepl/patrol/blob/1e24994/.github/workflows/test-android-device.yaml#L28
51+
export ANDROID_DEVICE_MODEL=shiba
52+
export ANDROID_DEVICE_VERSION=34
5353
54-
# https://github.com/leancodepl/patrol/blob/master/dev/e2e_app/run_android_testlab
54+
cd demo_app
5555
gcloud firebase test android run \
5656
--app build/app/outputs/apk/debug/app-debug.apk \
5757
--client-details matrixLabel="GitHub #${{ github.run_id }}" \
@@ -84,7 +84,7 @@ jobs:
8484
run: |
8585
set -e
8686
87-
dart pub global activate patrol_cli
87+
dart pub global activate patrol_cli 4.1.0
8888
8989
cd demo_app/ios
9090
fastlane patrol_build
@@ -97,10 +97,10 @@ jobs:
9797
run: |
9898
set -e
9999
100-
export IOS_DEVICE_MODEL=iphone13pro
100+
# https://github.com/leancodepl/patrol/blob/1e24994/.github/workflows/test-ios-device.yaml#L24
101+
export IOS_DEVICE_MODEL=iphone14pro
101102
export IOS_DEVICE_VERSION=16.6
102103
103-
# https://github.com/leancodepl/patrol/blob/master/dev/e2e_app/run_ios_testlab
104104
cd demo_app/build/ios_integ/Build/Products
105105
zip -r ios_tests.zip Release-iphoneos/*.app *.xctestrun
106106

demo_app/ios/fastlane/Fastfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ platform :ios do
3434
readonly: true
3535
)
3636

37-
sh('cd ../.. && patrol build ios --release --verbose --target integration_test/auto_resize_test.dart')
37+
sh('cd ../.. && patrol build ios --release --verbose --target patrol_test/auto_resize_test.dart')
3838
end
3939
end

demo_app/integration_test/auto_resize_test.dart renamed to demo_app/patrol_test/auto_resize_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class _AspectRatioTest extends StatelessWidget {
157157
final delta = (actual - expected).abs();
158158
expect(
159159
delta,
160-
lessThanOrEqualTo(0.01),
160+
lessThanOrEqualTo(0.02),
161161
reason: 'actual $actual0 != expected $expected0',
162162
);
163163
}

demo_app/pubspec.lock

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ packages:
55
dependency: transitive
66
description:
77
name: _fe_analyzer_shared
8-
sha256: da0d9209ca76bde579f2da330aeb9df62b6319c834fa7baae052021b0462401f
8+
sha256: "8d7ff3948166b8ec5da0fbb5962000926b8e02f2ed9b3e51d1738905fbd4c98d"
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "85.0.0"
11+
version: "93.0.0"
1212
analyzer:
1313
dependency: transitive
1414
description:
1515
name: analyzer
16-
sha256: "974859dc0ff5f37bc4313244b3218c791810d03ab3470a579580279ba971a48d"
16+
sha256: de7148ed2fcec579b19f122c1800933dfa028f6d9fd38a152b04b1516cec120b
1717
url: "https://pub.dev"
1818
source: hosted
19-
version: "7.7.1"
19+
version: "10.0.1"
2020
archive:
2121
dependency: transitive
2222
description:
@@ -93,10 +93,10 @@ packages:
9393
dependency: transitive
9494
description:
9595
name: characters
96-
sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
96+
sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b
9797
url: "https://pub.dev"
9898
source: hosted
99-
version: "1.4.0"
99+
version: "1.4.1"
100100
checked_yaml:
101101
dependency: transitive
102102
description:
@@ -424,14 +424,6 @@ packages:
424424
url: "https://pub.dev"
425425
source: hosted
426426
version: "1.0.5"
427-
js:
428-
dependency: transitive
429-
description:
430-
name: js
431-
sha256: "53385261521cc4a0c4658fd0ad07a7d14591cf8fc33abbceae306ddb974888dc"
432-
url: "https://pub.dev"
433-
source: hosted
434-
version: "0.7.2"
435427
json_annotation:
436428
dependency: transitive
437429
description:
@@ -508,18 +500,18 @@ packages:
508500
dependency: transitive
509501
description:
510502
name: matcher
511-
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
503+
sha256: "12956d0ad8390bbcc63ca2e1469c0619946ccb52809807067a7020d57e647aa6"
512504
url: "https://pub.dev"
513505
source: hosted
514-
version: "0.12.17"
506+
version: "0.12.18"
515507
material_color_utilities:
516508
dependency: transitive
517509
description:
518510
name: material_color_utilities
519-
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
511+
sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b"
520512
url: "https://pub.dev"
521513
source: hosted
522-
version: "0.11.1"
514+
version: "0.13.0"
523515
measurer:
524516
dependency: "direct dev"
525517
description:
@@ -532,10 +524,10 @@ packages:
532524
dependency: transitive
533525
description:
534526
name: meta
535-
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
527+
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
536528
url: "https://pub.dev"
537529
source: hosted
538-
version: "1.16.0"
530+
version: "1.17.0"
539531
mime:
540532
dependency: transitive
541533
description:
@@ -660,26 +652,26 @@ packages:
660652
dependency: "direct dev"
661653
description:
662654
name: patrol
663-
sha256: "32fd0709f3871fa56eb9cd88410e3ca816bfa757122bae806a0f842188acb820"
655+
sha256: "0688a00e0fda2e42f102863bbac969b7b5ea836d4dc365b750e0e5aed59d34b0"
664656
url: "https://pub.dev"
665657
source: hosted
666-
version: "3.20.0"
658+
version: "4.1.1"
667659
patrol_finders:
668660
dependency: "direct dev"
669661
description:
670662
name: patrol_finders
671-
sha256: "4a658d7d560de523f92deb3fa3326c78747ca0bf7e7f4b8788c012463138b628"
663+
sha256: ac0bfaf3eaaa6cc3d49c8a365329cc7f4361a5f486f1adb45edc96dbfc854da9
672664
url: "https://pub.dev"
673665
source: hosted
674-
version: "2.9.0"
666+
version: "3.1.0"
675667
patrol_log:
676668
dependency: transitive
677669
description:
678670
name: patrol_log
679-
sha256: "9fed4143980df1e3bbcfa00d0b443c7d68f04f9132317b7698bbc37f8a5a58c5"
671+
sha256: "26af8e1a8bbea313c82664d4eff1cace4fc8acbc2893799dd67fe4c5d3fa47df"
680672
url: "https://pub.dev"
681673
source: hosted
682-
version: "0.5.0"
674+
version: "0.7.0"
683675
petitparser:
684676
dependency: transitive
685677
description:
@@ -897,26 +889,26 @@ packages:
897889
dependency: "direct dev"
898890
description:
899891
name: test
900-
sha256: "65e29d831719be0591f7b3b1a32a3cda258ec98c58c7b25f7b84241bc31215bb"
892+
sha256: "54c516bbb7cee2754d327ad4fca637f78abfc3cbcc5ace83b3eda117e42cd71a"
901893
url: "https://pub.dev"
902894
source: hosted
903-
version: "1.26.2"
895+
version: "1.29.0"
904896
test_api:
905897
dependency: transitive
906898
description:
907899
name: test_api
908-
sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00"
900+
sha256: "93167629bfc610f71560ab9312acdda4959de4df6fac7492c89ff0d3886f6636"
909901
url: "https://pub.dev"
910902
source: hosted
911-
version: "0.7.6"
903+
version: "0.7.9"
912904
test_core:
913905
dependency: transitive
914906
description:
915907
name: test_core
916-
sha256: "80bf5a02b60af04b09e14f6fe68b921aad119493e26e490deaca5993fef1b05a"
908+
sha256: "394f07d21f0f2255ec9e3989f21e54d3c7dc0e6e9dbce160e5a9c1a6be0e2943"
917909
url: "https://pub.dev"
918910
source: hosted
919-
version: "0.6.11"
911+
version: "0.6.15"
920912
typed_data:
921913
dependency: transitive
922914
description:

demo_app/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ dev_dependencies:
4949
golden_toolkit: ^0.15.0
5050
lint: any
5151
measurer: ^2.1.1
52-
patrol: ^3.20.0
53-
patrol_finders: ^2.9.0
52+
patrol: ^4.1.1
53+
patrol_finders: ^3.1.0
5454
test: any
5555

5656
flutter:

0 commit comments

Comments
 (0)