Update UI Tests to Run with Flutter 3 / In Drone #621

Merged
dan merged 25 commits from uitests into trunk 2 months ago
sarah commented 2 months ago
Owner
There is no content yet.
sarah added 3 commits 2 months ago
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/119
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/120
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/121
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/122
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/123
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/124
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/125
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/126
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/127
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/128
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/129
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/131
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/132
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/133
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/134
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/135
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/136
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/138
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/139
sarah force-pushed uitests from 418c773078 to bd3856fb27 2 months ago
sarah force-pushed uitests from bd3856fb27 to 154d1f1cfc 2 months ago
dan requested changes 2 months ago
.drone.yml Outdated
- name: deps
path: /root/.pub-cache
commands:
# - flutter config --enable-linux-desktop
dan commented 2 months ago
Owner

delete

delete
sarah marked this conversation as resolved
.drone.yml Outdated
commands:
# - flutter config --enable-linux-desktop
- sudo apt update
- sudo apt-get install -y xvfb
dan commented 2 months ago
Owner

add comment
#todo: add xvfb to openpriv/flutter-desktop:linux-fstable-3.3.9

add comment #todo: add xvfb to openpriv/flutter-desktop:linux-fstable-3.3.9
sarah marked this conversation as resolved
.drone.yml Outdated
- sudo apt-get install -y xvfb
- ./fetch-tor.sh
- export PATH=$PATH:$PWD/linux/Tor
- export LD_LIBRARY_PATH="$PWD/linux/Tor/"
dan commented 2 months ago
Owner

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./linux/:linux/Tor"
prolly?

`LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./linux/:linux/Tor"` prolly?
sarah marked this conversation as resolved
lib/main.dart Outdated
WidgetsFlutterBinding.ensureInitialized();
print("runApp()");
runApp(Flwtch());
print("Testing");
dan commented 2 months ago
Owner

default isn't testing this is main for running too

default isn't testing this is main for running too
sarah marked this conversation as resolved
lib/main.dart Outdated
Future<dynamic> shutdownDirect(MethodCall call) async {
print(call);
await cwtch.Shutdown();
await cwtch.Shutdown().timeout(Duration(seconds: 1));
dan commented 2 months ago
Owner

ah a cool way to bypass the fact we cant properly stop cwtch cus deep 2 min connection attempts...

On the other hand, part of me wants to ask if this will prevent anything in profiles being saved proply but a) prolly not and b) in practice i just force close it if it's being slow.... I don't totally love this tho

ah a cool way to bypass the fact we cant properly stop cwtch cus deep 2 min connection attempts... On the other hand, part of me wants to ask if this will prevent anything in profiles being saved proply but a) prolly not and b) in practice i just force close it if it's being slow.... I don't totally love this tho
sarah commented 2 months ago
Poster
Owner

removed timeout - it was a debugging artifact.

removed timeout - it was a debugging artifact.
sarah marked this conversation as resolved
lib/main.dart Outdated
Future<void> shutdown() async {
globalAppState.SetModalState(ModalState.shutdown);
await cwtch.Shutdown();
print("shutting down");
dan commented 2 months ago
Owner

debut println

debut println
sarah marked this conversation as resolved
lib/main.dart Outdated
await cwtch.Shutdown().timeout(Duration(seconds: 1));
// Wait a few seconds as shutting down things takes a little time..
Future.delayed(Duration(seconds: 1)).then((value) {
print("done");
dan commented 2 months ago
Owner

debug println

debug println
sarah marked this conversation as resolved
run-tests.sh Outdated
xdg-open integration_test/gherkin/reports/cucumber_report.html
fi
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./linux/"
dan commented 2 months ago
Owner

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./linux/:linux/Tor"

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./linux/:linux/Tor"
sarah marked this conversation as resolved
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/140
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/141
sarah added 1 commit 2 months ago
continuous-integration/drone/pr Build was killed Details
5232e13d95
Clean Up for UI Automated Testing
sarah added 1 commit 2 months ago
continuous-integration/drone/pr Build was killed Details
b2dc292771
Fix Shutdown Logging
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/145
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/146
sarah added 1 commit 2 months ago
continuous-integration/drone/pr Build is passing Details
0f1873259c
PATH and LD_LIBRARY path
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/149
dan merged commit 8417204a24 into trunk 2 months ago

Reviewers

dan requested changes 2 months ago
continuous-integration/drone/pr Build is passing
The pull request has been merged as 8417204a24.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch-ui#621
Loading…
There is no content yet.