b8b8c8d4ac
fix(tests): Fix abort of Task test on Linux
...
Not sure exactly what caused the issue, though I suppose using QThread's
exec instead of our own thingie is nice. I can't remember why I didn't
use that before, so I hope there's no issue with that! :^)
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-07-06 09:49:07 -07:00
71e73bb6f8
fix(tests): linux big task memory leak.
...
- move big_task into function scope
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-07-05 21:18:49 -07:00
8638076aa1
fix(test): tasks test memmory leak. don't store local task copy.
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-07-05 20:19:22 -07:00
965ee5687a
fix(test): task test memory leak *again*
...
- put Big thread on the stack so stack will clean it up.
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-07-05 20:05:18 -07:00
4dbcedd03f
fix: Task test memory leaks again
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-07-05 11:51:37 -07:00
a028894855
Apply suggestions from code review
...
Co-authored-by: seth <getchoo@tuta.io >
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-07-04 23:43:39 -07:00
3c96d5e0d5
fix: memory leaks in tests
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-07-03 20:28:03 -07:00
c5705705d5
fix: memory leaks in ResourceModel Test
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-07-03 18:35:42 -07:00
03a1d68b74
fix: memory leaks in filesystem test
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-07-03 18:18:48 -07:00
dffffc784e
Removed unused files
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-06-26 22:33:10 +03:00
1d354df1f8
Fix tests for window
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-06-15 16:51:58 +03:00
1b42b9a08e
Fixed tests
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-06-15 14:25:58 +03:00
e0b901169a
Added new migration for special characters
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-06-15 00:27:20 +03:00
b77fb05908
Added back the INIFile read function
...
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com >
2023-06-13 21:07:05 +03:00
a04a6f1e0d
fix(memory leak): don't give shared pointers out to foldermodels (causes cyclic refrence)
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-28 02:15:39 -07:00
aae892dfd1
fix(memory leak): IndexedPack too large to live inside a qlist without pointers ()
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-26 19:21:07 -07:00
884ac73078
Merge remote-tracking branch 'upstream/develop' into better-tasks
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-07 13:21:21 -07:00
9d2f0e4dc8
feat: Propogated subtask progress
...
Oh boy this is big.
> TaskStepProgress struct is now QMetaObject compatabile and can be sent through signals
> Task now has a method to propogates sub task progress it must be signal bound by each task containing a task wishing to report progress of it's children.
> Downloads report speed
> Tasks now have UUIDS to track them
- use when reporting
- use when logging
- use when storeing them or objects related to them
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-01 10:47:20 -07:00
f997529cd4
feat: better task tracking
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-05-01 10:45:34 -07:00
d80dee2a54
refactor: pass instance ptr to resource models. use it to find instance root.
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-04-29 19:55:37 -07:00
788fa40c2a
refactor: Move ini to use QSettings && drop get/setList functions
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-04-29 19:55:24 -07:00
538092b727
fix: typos, CamelCase to camelCase the new names
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-03-31 20:31:27 -07:00
ae289c923c
fix: clean up initial review comments (flowin)
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-03-20 14:56:33 -07:00
1ca2c59f2e
feat: track instance copies that use links
...
confirm deleations when other instances link to it
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-03-20 14:56:32 -07:00
3a0e4546c2
fix: windows test compat
...
fix: compiler warning on int qint32 compare
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-03-20 14:56:32 -07:00
cd2419137d
fix: better test compareison (also qt5 compat)
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-03-20 14:56:32 -07:00
2837236d81
fix: intelegent recursive links & symlink follow on export
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-03-20 14:56:32 -07:00
8ba51c7900
refactor: make complete list of links to make and send that.
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-03-20 14:56:32 -07:00
6d160a7b7e
feat: successful process elevation and comunication!
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-03-20 14:56:32 -07:00
2ceefea5f3
qt5 compatability
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-03-20 14:56:32 -07:00
485f156e57
working outside windows
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-03-20 14:56:32 -07:00
f794e49bb6
we want to make links!
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-03-20 14:56:27 -07:00
a47bf72b07
Merge pull request #751 from Edgars-Cirulis/develop
2023-02-05 17:48:26 +01:00
e593faf245
fix(tests): improve the reliability of the Task's stack test
...
This actually takes into account the amount of stuff put into the stack
in each iteration, and thus avoids having to change the stack size of
the thread, and using ad-hoc values for the other stuff. It also reduces
the time the test takes to run.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-02-01 16:58:33 -03:00
29f7ea752f
refactor: make shared_qobject_ptr ctor explicit
...
This turns issues like creating two shared ptrs from a single raw ptr
from popping up at runtime, instead making them a compile error.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-25 16:57:51 -03:00
16477a8f6c
Merge pull request #675 from flowln/generalize_mod_model
2023-01-23 23:58:52 +01:00
445f9e5f71
feat+fix(Version): make comparsion FlexVer-compatible
...
... and fixes a minor issue in the parsing.
This changes the expected behavior of Versions in one significant way:
Now, Versions like 1.2 or 1.5 evaluate to LESS THAN 1.2.0 and 1.5.0
respectively. This makes sense for sorting versions, since one expects
the versions without patch release to 'contain' the ones with, so the
ones without should be evaluated uniformily with the ones with the
patch.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-21 18:47:47 -03:00
ec1f73c827
fix(tests): add some comments on the stack overflow Task test
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-20 12:55:38 -03:00
5ae69c079a
feat(tests): add FlexVer test vector to the Version tests
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-20 11:15:26 -03:00
9934537e19
feat: add debug printing for Version
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2023-01-19 09:50:45 +02:00
ad74fedfba
feat(tests): add test for stack overflow in ConcurrentTask
...
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-18 16:23:30 -03:00
3a168ba6dd
feat(tests): add very basic ResourceModel test
...
______very_____ basic indeed, creating tests is super boring :c
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:09 -03:00
6a18079953
refactor: generalize mod models and APIs to resources
...
Firstly, this abstract away behavior in the mod download models that can
also be applied to other types of resources into a superclass, allowing
other resource types to be implemented without so much code duplication.
For that, this also generalizes the APIs used (currently, ModrinthAPI
and FlameAPI) to be able to make requests to other types of resources.
It also does a general cleanup of both of those. In particular, this
makes use of std::optional instead of invalid values for errors and,
well, optional values :p
This is a squash of some commits that were becoming too interlaced
together to be cleanly separated.
Signed-off-by: flow <flowlnlnln@gmail.com >
2023-01-13 16:23:00 -03:00
3691f3a296
fix: cleanup and suggested changes
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-26 14:50:15 -07:00
cfce54fe46
fix: update parse tests
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-24 20:43:17 -07:00
a7c9b2f172
feat: validate world saves
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-24 20:43:17 -07:00
25e23e50ca
fix: force add of ignored testdata files
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-24 09:42:02 -07:00
64c51a70a3
feat: add initial support for parseing datapacks
...
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com >
2022-12-24 09:42:02 -07:00
e048bce13e
refactor: allow copy operation with whitelist
...
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net >
2022-11-12 20:27:13 +01:00
fe347262e9
Fix: Using uint8_t in std::uniform_int_distribution is undefined
...
Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com >
2022-11-03 21:35:27 +00:00