Skip to content

Feature/update dependencies - #34

Merged
PBXg33k merged 6 commits into
developfrom
feature/update-dependencies
Aug 1, 2026
Merged

Feature/update dependencies#34
PBXg33k merged 6 commits into
developfrom
feature/update-dependencies

Conversation

@PBXg33k

@PBXg33k PBXg33k commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copilot AI review requested due to automatic review settings August 1, 2026 09:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates dependency management and project tooling to align the repo with newer Symfony/Doctrine/API Platform versions, and streamlines developer commands through the Makefile.

Changes:

  • Switch update-deps.sh to use make down/build/api/pwa instead of direct docker compose invocations.
  • Add a pwa Makefile target to run commands in the PWA container.
  • Upgrade PHP dependencies (Symfony to ^8.1, Doctrine/API Platform, etc.) and adjust Doctrine config/reference types accordingly.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
update-deps.sh Uses Make targets for dependency update workflow; updates test command hint.
Makefile Adds pwa target for running commands in the PWA container.
api/config/reference.php Updates Symfony config reference Psalm types to match newer component/bundle versions.
api/config/packages/doctrine.yaml Removes legacy ORM proxy settings; keeps native lazy objects config.
api/composer.json Bumps Symfony/Doctrine/API Platform and related dependencies to newer major/minor versions.

Comment thread update-deps.sh Outdated
Comment thread api/config/packages/doctrine.yaml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 1, 2026 09:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated no new comments.

Suppressed comments (2)

update-deps.sh:13

  • make api "/bin/sh -c ..." and make pwa ... pass the command as an extra Make goal, not as arguments to the api/pwa targets. This will try to build a target named /bin/sh -c '...' and will fail with “No rule to make target …”. Pass the container command via a variable (or switch back to docker compose run).
make api "/bin/sh -c 'composer update; composer outdated'"
make pwa "/bin/sh -c 'pnpm install; pnpm update; pnpm outdated'"

update-deps.sh:21

  • This echo line’s quoting is currently assembling the command by concatenating quoted segments, so the resulting output drops the quotes around the /bin/sh -c '...' argument. That makes the printed command misleading (and copy/paste likely won’t do what it intends). Use double quotes for the outer string and escape the literal backticks so the printed command includes the inner single quotes correctly.
echo 'Run `docker compose exec api /bin/sh -c ''bin/console -e test doctrine:database:create ; bin/console -e test doctrine:migrations:migrate --no-interaction ; bin/phpunit ; bin/console -e test doctrine:schema:validate''` to check that the tests are green.'

Copilot AI review requested due to automatic review settings August 1, 2026 10:05
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

badge

Code Coverage Summary

Filename                                                         Stmts    Miss  Cover    Missing
-------------------------------------------------------------  -------  ------  -------  ----------------------------------------
Command/CoreDownloadersUpdateCommand.php                            19      19  0.00%    22-57
Command/DownloadRouterMigrationSetDownloadjobOwnerCommand.php       33      33  0.00%    32-93
Command/ScanDownloadedFilesCommand.php                              38      38  0.00%    30-98
Command/UrlDownloadCommand.php                                      36      36  0.00%    30-92
Controller/AuthController.php                                      238      12  94.96%   297-302, 356, 368-372
Controller/DownloadController.php                                   27      27  0.00%    18-78
Controller/WellKnownController.php                                  19       0  100.00%
DataFixtures/TestUserFixtures.php                                    4       0  100.00%
Doctrine/CurrentUserExtension.php                                   11      11  0.00%    21-49
Dto/CookieDTO.php                                                   36       5  86.11%   27, 32-37, 42
Dto/DownloadJobDTO.php                                               0       0  0.00%
Dto/JobAcceptedDTO.php                                              15       0  100.00%
Entity/DownloadJob.php                                              67       5  92.54%   155, 185, 303-305
Entity/DownloadJobEvent.php                                         33      30  9.09%    67-75, 92-179
Entity/DownloadedFile.php                                           24      18  25.00%   67-71, 92-149
Entity/Downloader.php                                                0       0  0.00%
Entity/OidcSubjectIdentifier.php                                    14       0  100.00%
Entity/SupportedSite.php                                            16      16  0.00%    48-108
Entity/Version.php                                                   1       0  100.00%
Enum/DownloadStateEnum.php                                           6       6  0.00%    15-20
Enum/DownloaderTypeEnum.php                                          3       0  100.00%
Enum/JobTypeEnum.php                                                 2       0  100.00%
Event/CliProcessErrOutputEvent.php                                   1       0  100.00%
Event/CliProcessOutputEvent.php                                      2       1  50.00%   21
Event/CliProcessStartEvent.php                                       1       1  0.00%    15
Event/CliProcessStdOutputEvent.php                                   1       0  100.00%
Event/CliProcessStopEvent.php                                        1       1  0.00%    18
Event/JobCompletedEvent.php                                          4       0  100.00%
Event/JobFailedEvent.php                                             5       0  100.00%
Event/JobPickedUpEvent.php                                           4       0  100.00%
Event/JobUpdateEvent.php                                             5       0  100.00%
Event/ProcessStartEvent.php                                          1       1  0.00%    13
Event/ProcessStopEvent.php                                           1       1  0.00%    15
EventListener/CleanupListener.php                                    9       0  100.00%
EventListener/CliProcessListener.php                                28       1  96.43%   76
EventListener/JobEventLogger.php                                    59      59  0.00%    24-113
EventListener/ProcessStoppedListener.php                            44      44  0.00%    24-92
Factory/DownloaderFactory.php                                       26       0  100.00%
Handler/DownloadJobDTOHandler.php                                    1       1  0.00%    14
Handler/DownloadJobHandler.php                                      51       0  100.00%
Message/UpdateDownloadersMessage.php                                 0       0  0.00%
MessageHandler/UpdateDownloadersMessageHandler.php                  10      10  0.00%    19-32
Repository/DownloadJobEventRepository.php                            1       1  0.00%    16
Repository/DownloadJobRepository.php                                12      11  8.33%    21-35
Repository/DownloadedFileRepository.php                              1       0  100.00%
Repository/OidcSubjectIdentifierRepository.php                       1       0  100.00%
Repository/SupportedSiteRepository.php                               1       1  0.00%    16
Response/ErrorResponse.php                                           5       0  100.00%
Security/Core/User/OidcUser.php                                      6       1  83.33%   32
Security/Core/User/OidcUserProvider.php                             38       0  100.00%
Service/Downloader/AbstractCliDownloader.php                       105      65  38.10%   37-102, 111, 131, 143-149, 185, 191, 200
Service/Downloader/GalleryDlCliDownloader.php                       99      90  9.09%    45-192, 199, 209, 222-225
Service/Downloader/MockDownloader.php                               10       0  100.00%
Service/Downloader/YoutubeDlCliDownloader.php                       94      84  10.64%   49-128, 135, 145, 153-229, 239-242
State/DownloadJobQueuedProcessor.php                                54       1  98.15%   53
State/DownloaderProvider.php                                        24      24  0.00%    17-68
State/VersionProvider.php                                           34       0  100.00%
Validator/SelectDownloader.php                                       1       0  100.00%
Validator/SelectDownloaderValidator.php                              8       0  100.00%
TOTAL                                                             1390     654  52.95%

Diff against develop

Filename                                Stmts    Miss  Cover
------------------------------------  -------  ------  --------
Enum/DownloadStateEnum.php                 -1      -1  +100.00%
Enum/DownloaderTypeEnum.php                -1       0  +100.00%
Enum/JobTypeEnum.php                       -1       0  +100.00%
EventListener/CliProcessListener.php       -1       0  -0.12%
TOTAL                                      -4      -1  +0.39%

Results for commit: fba3e27

Minimum allowed coverage is 35%

♻️ This comment has been updated with latest results

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated no new comments.

Suppressed comments (2)

update-deps.sh:13

  • make api "/bin/sh -c ..." / make pwa ... will be interpreted by make as additional targets, causing a "No rule to make target" error. If you want to pass a command to the api/pwa targets, pass it via the Arguments variable (which also avoids needing Makefile tricks to ignore extra goals).
make api Arguments="/bin/sh -c 'composer update; composer outdated'"
make pwa Arguments="/bin/sh -c 'pnpm install; pnpm update; pnpm outdated'"

api/composer.json:49

  • Composer version constraints typically omit the leading v. Using ^v2.9.1 is inconsistent with the rest of this file and can be confusing; prefer ^2.9.1.
        "php-coveralls/php-coveralls": "^v2.9.1",

Copilot AI review requested due to automatic review settings August 1, 2026 10:09
@PBXg33k
PBXg33k merged commit 1cb6c26 into develop Aug 1, 2026
5 checks passed
@PBXg33k
PBXg33k deleted the feature/update-dependencies branch August 1, 2026 10:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated no new comments.

Suppressed comments (2)

update-deps.sh:5

  • make down only runs docker compose down (no -v), so the script no longer removes volumes even though it previously did (down -v). For dependency updates/migrations this can leave stale Postgres/RabbitMQ state and produce misleading results; use make clean (down + volumes + orphans) to keep the script’s “clean slate” intent.
# Remove all running containers
make down
#docker compose down -v

Makefile:64

  • The pwa target (and similarly api/worker) forces -it, which breaks non-interactive usage (e.g. running update-deps.sh from CI or any shell without a TTY) with errors like “the input device is not a TTY”. Prefer disabling TTY allocation by default (-T) so automation works reliably; developers can still run interactive commands directly with docker compose run -it ... when needed.
.PHONY: pwa
pwa:
	$(DOCKER_COMPOSE_PREFIX) docker compose run --entrypoint="" --rm -it pwa $(Arguments)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants