fix: log model download URL and destination - #1564
Conversation
Signed-off-by: RSKKSOFFICIAL <rsksofficial02@gmail.com>
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Pull request overview
Adds optional, user-visible logging to the model download flow so recognize:download-models prints the archive URL and relevant filesystem paths (Fixes #1403).
Changes:
- Extend
DownloadModelsService::download()to accept an optional logger callback. - Emit log messages for model directory removal, archive download URL/path, and extraction path.
- Wire the callback to
occ recognize:download-modelsconsole output.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| lib/Service/DownloadModelsService.php | Adds optional callback-based logging around model download/extract steps. |
| lib/Command/DownloadModels.php | Passes a console logger callback so messages are printed during the CLI command. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| * @return void | ||
| * @throws \Exception | ||
| */ | ||
| public function download() : void { | ||
| public function download(?callable $log = null) : void { | ||
| $log ??= static function (string $message): void { | ||
| }; |
There was a problem hiding this comment.
Thanks @marcelklehr! Added the @PARAM annotation for $log to the docblock.
|
Thank you! 💙 |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
|
Hi team ,
There was an error while submitting the form
…On Mon, 14 Sept, 2026, 12:14 pm github-actions[bot], < ***@***.***> wrote:
*github-actions[bot]* left a comment (nextcloud/recognize#1564)
<#1564 (comment)>
Hello there,
Thank you so much for taking the time and effort to create a pull request
to our Nextcloud project.
We hope that the review process is going smooth and is helpful for you. We
want to ensure your pull request is reviewed to your satisfaction. If you
have a moment, our community management team would very much appreciate
your feedback on your experience with this PR review process.
Your feedback is valuable to us as we continuously strive to improve our
community developer experience. Please take a moment to complete our short
survey by clicking on the following link:
https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6
Thank you for contributing to Nextcloud and we hope to hear from you soon!
(If you believe you should not receive this message, you can add yourself
to the blocklist
<https://github.com/nextcloud/.github/blob/master/non-community-usernames.txt>
.)
—
Reply to this email directly, view it on GitHub
<#1564?email_source=notifications&email_token=BEXKIPT5MEKIYDNOHDOLGUL5O6HVRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRWGAYDQNRVGAZ2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5660086503>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEXKIPRY7OJWIW3XCUW3FLD5O6HVRAVCNFSNUABFKJSXA33TNF2G64TZHMZTMMBVGQZDGNZSHNEXG43VMU5TKMRZGA4TINZUGEZKC5QC>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BEXKIPR7U4PTKGCAS53PSPD5O6HVRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRWGAYDQNRVGAZ2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/BEXKIPVFPLJO6R4DUMVX4MD5O6HVRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRWGAYDQNRVGAZ2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Oh, darn, thanks for notifying us! |
|
No worries.
By the way, I have applied for the Backend Engineer – Integration & AI role
from the same mail id. Could you please let me know how long it typically
takes to receive a response regarding the application?
…On Tue, 15 Sept, 2026, 1:48 pm Marcel Klehr, ***@***.***> wrote:
*marcelklehr* left a comment (nextcloud/recognize#1564)
<#1564 (comment)>
There was an error while submitting the form
Oh, darn, thanks for notifying us!
—
Reply to this email directly, view it on GitHub
<#1564?email_source=notifications&email_token=BEXKIPVPFGQ6AKAFUTRSW435PD3NLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRXG4YDEMJWHA42M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5677021689>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEXKIPVFQEMMG23Q3ICTB7T5PD3NLAVCNFSNUABFKJSXA33TNF2G64TZHMZTMMBVGQZDGNZSHNEXG43VMU5TKMRZGA4TINZUGEZKC5QC>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BEXKIPXKY5AZOCSQSHHCEED5PD3NLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRXG4YDEMJWHA42M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/BEXKIPUSPKFWOFCIMVNI3PT5PD3NLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRXG4YDEMJWHA42M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Wow, super cool, Ravi! Our HR department is currently severly understaffed, sadly, so it can take some time, I'm afraid. But you definitely should get a response in the next two weeks, I'd assume. |
|
Thanks, Marcel, for the update! I really appreciate you letting me know.
I’ll wait for the response and look forward to hearing from the team.
Any important things that I should be preparing of in the meantime?
…On Tue, 15 Sept, 2026, 2:23 pm Marcel Klehr, ***@***.***> wrote:
*marcelklehr* left a comment (nextcloud/recognize#1564)
<#1564 (comment)>
I have applied for the Backend Engineer – Integration & AI role
Wow, super cool, Ravi! Our HR department is currently severly
understaffed, sadly, so it can take some time, I'm afraid. But you
definitely should get a response in the next two weeks, I'd assume.
—
Reply to this email directly, view it on GitHub
<#1564?email_source=notifications&email_token=BEXKIPWGWYQ33ZPUH5PO2AT5PD7QNA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRXG42DGOBUG4ZKM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5677438472>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEXKIPRQIYKXMNVROH5FC5T5PD7QNAVCNFSNUABFKJSXA33TNF2G64TZHMZTMMBVGQZDGNZSHNEXG43VMU5TKMRZGA4TINZUGEZKC5QC>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BEXKIPS5SMB4DAS7YA7Y7WL5PD7QNA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRXG42DGOBUG4ZKM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/BEXKIPV4KSYGD5SUCGAEME35PD7QNA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRXG42DGOBUG4ZKM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I don't think so, you will likely get a coding challenge at some point, but with your experience in contributing to our apps, that should not be a problem :) |
|
Awesome, thank you so much!
…On Tue, 15 Sept, 2026, 2:32 pm Marcel Klehr, ***@***.***> wrote:
*marcelklehr* left a comment (nextcloud/recognize#1564)
<#1564 (comment)>
Any important things that I should be preparing of in the meantime?
I don't think so, you will likely get a coding challenge at some point,
but with your experience in contributing to our apps, that should not be a
problem :)
—
Reply to this email directly, view it on GitHub
<#1564?email_source=notifications&email_token=BEXKIPQNQ25G2BKX2XTURZL5PEARZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRXG42TIOJTGUY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5677549351>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEXKIPXUGWHGDZFWT2N6GXD5PEARZAVCNFSNUABFKJSXA33TNF2G64TZHMZTMMBVGQZDGNZSHNEXG43VMU5TKMRZGA4TINZUGEZKC5QC>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BEXKIPULTLAIN4RES23ECG35PEARZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRXG42TIOJTGUY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/BEXKIPRAMIJ3UFHTQ6IXOOL5PEARZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRXG42TIOJTGUY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi @marcelklehr , this got fixed. |
Summary
Fixes #1403.
The
recognize:download-modelscommand previously did not show the model download URL and destination path.This change adds optional logging to
DownloadModelsService::download()and wires it to the console command output.The command now reports:
This makes it possible to identify the exact URL and paths when the Nextcloud instance does not have direct Internet access.
Testing
Tested locally with:
docker compose exec --user www-data nextcloud php occ recognize:download-models