Commit Graph

48254 Commits

Author SHA1 Message Date
73a1f27ce5 Merge branch 'master' into realm-integration/score-and-beatmaps 2022-01-18 17:31:37 +09:00
39c9c4985b Merge branch 'master' into textbox-AllowIme-false 2022-01-18 17:03:51 +09:00
3e9e7a8fb6 Fix PLaylistsResultsScreen tests falling over due to missing beatmap 2022-01-18 16:48:27 +09:00
488f044924 Remove one more outdated comment 2022-01-18 16:46:14 +09:00
8b8940439e Fix starting game with non-default ruleset failing 2022-01-18 16:22:15 +09:00
8978b88f69 Add test coverage of startup ruleset being non-default 2022-01-18 16:22:15 +09:00
246a4a4bfe Add support for starting with a fresh realm database if the existing one is not usable
The most common scenario is switching between schema versions when
testing. This should alleviate the manual overhead of that for the
majority of cases.

For users, this will show a notification on startup if their database
was purged, similar to what we had with EF.
2022-01-18 16:05:13 +09:00
b4fdd8a986 Merge pull request #16489 from peppy/aggregate-score-tests
Add test coverage of aggregate scores displaying correctly at multiplayer/playlists screens
2022-01-18 16:03:06 +09:00
a5862ca00d Improve reliability of mod deserialisation 2022-01-18 15:46:27 +09:00
7084183d6c Fix test beatmaps created without hash being populated 2022-01-18 15:43:02 +09:00
9a43ed742b Update automapper spec in line with v11
See https://docs.automapper.org/en/latest/11.0-Upgrade-Guide.html for
 more details.
2022-01-18 15:23:28 +09:00
1b62a685f3 Merge branch 'master' into realm-integration/score-and-beatmaps 2022-01-18 15:07:59 +09:00
f0e8572e42 Merge pull request #16487 from peppy/realm-note-location
Specify realm pipe path location
2022-01-18 14:58:36 +09:00
7ca80d2d86 Merge pull request #16486 from peppy/update-libraries
Update nuget packages and framework
2022-01-18 14:50:21 +09:00
3429fd8768 Fix transaction scope and add even more logging 2022-01-18 14:47:00 +09:00
bf50a9b8f8 Also backup the realm database before migration 2022-01-18 14:30:41 +09:00
2b1c15b6cc Allow BlockAllOperations to be called from a non-update thread if update has never run 2022-01-18 14:30:32 +09:00
cf30d48721 Add more logging during migration process 2022-01-18 14:21:33 +09:00
798482c941 Create backups before deleting scores and beatmaps from EF database 2022-01-18 14:21:33 +09:00
b1a75ce480 Permanently delete client.db after migration completes 2022-01-18 14:17:43 +09:00
a714941f93 Rename EF variable to make reading code easier 2022-01-18 14:06:22 +09:00
d26f4d50bd Add test coverage of aggregate room scores displaying correctly 2022-01-18 14:00:12 +09:00
c3d3c03f0f Fix TestScenePlaylistsScreen crashing on entering room 2022-01-18 13:42:41 +09:00
da9a60a695 Update broken test scenes to match new OsuTestScene logic 2022-01-18 13:41:50 +09:00
b9aae5569f Fix OsuTestScene potentially mutating global bindables 2022-01-18 13:29:24 +09:00
014c840d80 Fix incorrect thread usage of ruleset in tournament DataLoadTest 2022-01-18 13:29:24 +09:00
b9ec860cf2 Ensure global beatmap/ruleset are always mutated from the update thread
This came up while testing the new realm thread, where `MusicController`
would fall over when `OsuTestScene` changes the global beatmap from an
async load thread (causing a cross-thread realm access).

We don't want to have to schedule every usage of these bindables, so
this seems like a good constraint to put in place.
2022-01-18 13:29:24 +09:00
ebc9d3a613 Fix playlist aggregate scores not displaying (again) 2022-01-18 11:57:38 +09:00
a7db793d8c Specify realm pipe path location
I can't confirm this works yet, since I'm not sure what the
preconditions are for the `.note` file to be created. What I can confirm
is that a `.note` file hasn't appeared in my game data directory yet.
2022-01-18 11:43:23 +09:00
c725548b9e Update stray realm reference in mobile projects 2022-01-18 11:43:17 +09:00
f9c5000774 Remove obsoleted sentry disposal call and fix incorrectly unbound logger event 2022-01-18 11:27:28 +09:00
911a837f62 Update framework 2022-01-18 11:09:35 +09:00
125439d177 Update all (non-NET6) nuget packages 2022-01-18 11:09:26 +09:00
e9c96908d5 Merge pull request #16481 from peppy/fix-scores-container-tests
Rewrite `TestSceneScoresContainer` to work again
2022-01-17 20:39:14 +09:00
0ba0b5f11a Fix test step not being until when it needs to be 2022-01-17 19:45:32 +09:00
2ad0ea35be Merge pull request #16482 from peppy/test-custom-key-bindings-in-gameplay
Add test to check full flow of rebinding gameplay key bindings
2022-01-17 17:37:29 +09:00
f6b9d36acf Remove unused using 2022-01-17 17:06:04 +09:00
a80e461000 Add better test coverage of user top scores 2022-01-17 16:23:58 +09:00
12fd279b7d Add test to check full flow of rebinding gameplay key bindings
Addresses a regression found in realm PR that was not covered by tests.
2022-01-17 16:00:17 +09:00
6436b6186f Rewrite TestScenScoresContainer to work again 2022-01-17 15:15:39 +09:00
51ade3251d Improve ScoresContainer loading overlay logic to work better with tests 2022-01-17 15:15:39 +09:00
5dc7425b2c Fix incorrect realm (non-isolated instance) being used in two test scenes 2022-01-17 14:55:23 +09:00
90166829c3 Update tests which were importing scores without a valid beatmap 2022-01-17 14:47:19 +09:00
e83c83a5e8 Merge pull request #16475 from bdach/taiko-not-completing
Fix gameplay not completing on some taiko maps
2022-01-17 14:45:57 +09:00
381174e482 Give the placeholder ruleset better defaults to allow tests to work again 2022-01-17 14:40:00 +09:00
34e99968d0 Resolve inspection 2022-01-17 14:06:50 +09:00
a0e2106468 Guard against null values getting inserted into database during score/beatmap imports 2022-01-17 14:05:08 +09:00
744084b418 Initialise all parameters is paramaterless constructor for now for added safety 2022-01-17 13:51:30 +09:00
11ca1b6e7b Remove one more usage of IsManaged which could potentially go wrong 2022-01-17 13:40:27 +09:00
d27ee2c9fb Remove incorrect IsManaged check in ScoreManager 2022-01-17 13:37:42 +09:00