Commit Graph

1293 Commits

Author SHA1 Message Date
Hiroshi Miura
1d0be589be Release v2.0.5
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
v2.0.5
2021-12-11 10:34:38 +09:00
Hiroshi Miura
ba9001f771 Merge pull request #465 from ddalcino/cache-powershell-modules
Cache PowerShell Modules in Azure Pipelines
2021-12-11 10:27:19 +09:00
David Dalcino
fbbf0cb239 no restore keys 2021-12-10 09:55:06 -08:00
David Dalcino
b72891f139 cache powershell modules
This change saves PowerShell modules used in the Azure Pipelines to a
cache, and loads them when required. This is intended to prevent random
failures when the PowerShell Gallery fails to provide the requested
modules. These failures occur at random, possibly as a result of a
backpressure mechanism.

This change will also speed up all Windows Azure Pipelines jobs, since
downloads from the PowerShell Gallery will no longer be necessary.
2021-12-10 09:45:45 -08:00
Hiroshi Miura
ae1fe649a3 Update changelog
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-12-08 13:28:23 +09:00
Hiroshi Miura
846e0beca0 Merge pull request #464 from miurahr/topic/miurahr/detect-memory-leak
Reduce memory consumption on 32bit python
2021-12-08 13:21:51 +09:00
Hiroshi Miura
a98bb8dbeb Tox: add fil memory profiler
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-12-08 12:38:34 +09:00
Hiroshi Miura
f86f6aa321 Explicit triggering garbage collection
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-12-07 20:32:09 +09:00
Hiroshi Miura
38cf9cbcef Limit maxtasksperchild=1 for pool on 32bit python
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-12-07 20:11:16 +09:00
Hiroshi Miura
9833124237 Set maxtasksperchild=1 for download and extraction pool
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-12-07 17:08:34 +09:00
Hiroshi Miura
f8ed054af0 test: update mprof command line
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-12-06 15:01:48 +09:00
Hiroshi Miura
a7e3424c13 test: Add memory profiler to hunt leaks
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-12-06 14:40:24 +09:00
Hiroshi Miura
fc84306abd Add leak check testenv
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-12-06 10:43:38 +09:00
Hiroshi Miura
1975d80ea3 Update changelog
Add missing description of #453
2021-12-06 07:33:53 +09:00
Hiroshi Miura
169b13192e Release v2.0.4
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
v2.0.4
2021-12-05 22:08:43 +09:00
Hiroshi Miura
77e20f3cf2 Merge branch 'master' into releases/2.0 2021-12-05 22:05:07 +09:00
Hiroshi Miura
b327085809 Merge pull request #462 from miurahr/topic-resolve-symlink-error
Bump dependency py7zr@0.17.0
2021-12-05 08:20:31 +09:00
Hiroshi Miura
079325776c Bump dependency py7zr@0.17.0
- Resolve symbolic link error (#438)
- Resolve memory error on 32bit python (#436)

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-12-04 16:52:08 +09:00
Hiroshi Miura
b85be30afa Merge branch 'master' into releases/2.0 2021-12-02 09:00:31 +09:00
Hiroshi Miura
4af61831b1 Merge pull request #461 from miurahr/update-combinations
Update `aqt/combinations.json`
2021-12-02 08:57:07 +09:00
Qt Repo Watchbot
ed7a1db367 Update aqt/combinations.json 2021-12-01 22:35:00 +00:00
Hiroshi Miura
3f78bd1e84 Merge pull request #455 from ddalcino/topic-fix-453
Fix problems with `install-src/doc/examples`
2021-12-02 07:33:06 +09:00
Hiroshi Miura
e3d7610d2b Merge pull request #460 from miurahr/update-combinations
Update `aqt/combinations.json`
2021-12-01 12:04:21 +09:00
Qt Repo Watchbot
0871453709 Update aqt/combinations.json 2021-12-01 00:16:38 +00:00
David Dalcino
d6a6f79740 Prevent listing modules <= 40 bytes uncompressed
This prevents `list-*` from printing any module whose uncompressed size
is 40 bytes or less.

I have found a couple of modules that are exactly 40 bytes, and they
include no files, only empty directories. If any user tries to install
these modules, they will think that aqt failed to install the module
without printing any error message. I prefer to avoid this issue
by preventing `aqt list-*` from printing them.

`aqt install-*` is unaffected by this change, and it can still install
modules that contain no files. It is likely that we will need to print
a warning when this occurs.

If any user disagrees with the threshold value of 40 bytes, they are
free to adjust that value to their liking in `settings.ini`.
2021-11-26 14:04:10 -08:00
David Dalcino
b8ff63da2d Use non-empty example module in CI
Previously, the Azure Pipeline build for `install-example` tried to install the module 
`qtlottie`, which consists of an empty archive.

This change replaces the `qtlottie` module with `qtcharts`, which consists of a small
but non-empty archive.
2021-11-26 09:57:10 -08:00
Hiroshi Miura
d84c1626d1 Release v2.0.3
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
2021-11-25 15:09:02 +09:00
David Dalcino
05cc2347c7 Merge branch 'master' into topic-fix-453 2021-11-24 22:01:27 -08:00
Hiroshi Miura
b514f79bc8 Merge branch 'releases/2.0'
Sync with releases/2.0 branch
2021-11-25 14:57:57 +09:00
Hiroshi Miura
f2c7ca147e Merge pull request #458 from ddalcino/set-temp-download-dir
Feature: allow user to specify the download location of 7z archives
2021-11-25 14:51:37 +09:00
David Dalcino
7d5ee32ac3 Add settings entries for --keep & --archive-dest
This allows a user to turn on `--keep` every time they run the program,
and to set the default archive destination when `--keep` is turned on.
Using `--archive-dest` overrides the archive destination in setting.ini.
2021-11-24 14:01:26 -08:00
David Dalcino
db4db6c9a4 Implement --archive-dest feature 2021-11-24 13:30:48 -08:00
David Dalcino
3af9c97ba0 Refactor: Allow modifiable download dest path
This adds the parameter `archive_dest` to `run_installer`, which will
control where `helper.downloadBinaryFile` will download files, and sets
it to "." by default.

For convenience/readability, this will also turn any reference to the
downloaded file into a `pathlib.Path` object. This makes it easier to
ensure that the file ends up in the right location.
2021-11-24 13:29:20 -08:00
Hiroshi Miura
d63bbd146c Merge pull request #456 from ddalcino/patch-1
Update deprecated MacOS build in CI
2021-11-24 17:36:06 +09:00
David Dalcino
678387ccad Fix help text for list-see 2021-11-23 15:17:36 -08:00
David Dalcino
cfc241002d Fix suggestions for src/doc/ex missing modules 2021-11-23 12:17:03 -08:00
David Dalcino
ddf8eddc85 Update MacOS in Azure Pipelines
Azure Pipelines has deprecated macOS-10.14 builds.

See: https://devblogs.microsoft.com/devops/hosted-pipelines-image-deprecation/
2021-11-23 11:52:47 -08:00
David Dalcino
31bcbe945b [CI]: Only build example if qt is installed 2021-11-23 11:47:04 -08:00
David Dalcino
b736130f90 flake 2021-11-23 11:42:06 -08:00
David Dalcino
d9733363bc remove --modules flag from install-src 2021-11-23 11:10:14 -08:00
David Dalcino
6d1ff77cd4 Change target param for install-src/doc/example
This changes the CLI so that the `target` parameter for `install-src`,
`install-doc`, and `install-example` is now ignored, and "desktop" is
substituted for anything the user inputs. The only valid option here
is "desktop" anyway, so the user should be forgiven for trying to input
anything else.

It may be better to remove `target` from the parameter list, but that's
a big change to the interface that could break a lot of dependent code.
2021-11-23 11:10:10 -08:00
David Dalcino
c7320cb0f1 Improve CI & tests for install-src/doc/example
This updates CI and unit tests to monitor behavior of
`install-src/doc/example`, now that the `target` parameter has been
deprecated. This makes sure that the `target` parameter is optional,
and that the CLI warns the user that `target` is deprecated when a user
uses it.

[CI tests]:
This adds a test to `install-src/doc/example` Azure Pipeline jobs to
ensure that the desired files are installed, using `ls`.

This also changes some of the archives installed to `qtlottie`, which
is a particularly small file.

This also adds a build job for `install-example`.

[Unit tests]:
This adds tests for `install-src`, with and without the `target`
parameter.

It also fixes existing tests for `install-doc`, to account for
changes to the `target` parameter.
2021-11-23 11:10:06 -08:00
David Dalcino
e6cd276e20 Add impl of list-src/doc/examples 2021-11-23 11:08:11 -08:00
David Dalcino
092d4e8c02 Add tests for list-src, list-doc, list-example 2021-11-23 11:08:07 -08:00
David Dalcino
b929dc1f4b Add docs for list-src, list-doc, list-example 2021-11-23 11:08:02 -08:00
Hiroshi Miura
60018b3bf6 Merge pull request #452 from miurahr/update-combinations
Update `aqt/combinations.json`
2021-11-15 09:42:44 +09:00
Qt Repo Watchbot
a1227d61ee Update aqt/combinations.json 2021-11-15 00:28:32 +00:00
Hiroshi Miura
759145e1b4 Merge pull request #451 from ddalcino/patch-1
Fix test for QtIFW
2021-11-15 09:26:40 +09:00
David Dalcino
6fa133ad8c Fix test for QtIFW
The current CI test for QtIFW assumes that QtIFW will always be version 4.1. 
The last run of the Azure Pipeline demonstrated what happens when the Qt repo 
updates QtIFW to the next version: The test fails.

This change should make the CI test resilient to version updates.
2021-11-14 14:08:38 -08:00
Hiroshi Miura
893440cf3c Merge pull request #450 from ddalcino/patch-1
Fix cross-platform installation failure
2021-11-15 07:00:38 +09:00