diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d2d5276f..ab5d8e086 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,16 @@ What's new in ps5upload, written for humans. ## Unreleased +**Uploads** +- **The check on the PS5 after an upload shows its progress (#873).** Before a big file counts as done, the PS5 reads it back from its drive to check it. When the drive can't keep up while the file is still arriving, part of that check is left for after the last byte, which on a 70–160 GB game can take several minutes, and the row said the PS5 had reported no progress. It now shows "Checking on the PS5: X of Y" with the time left, and the no-progress warning stays off while the check moves. +- **A stopped upload that you resume isn't checked twice (#873).** The part the PS5 had already checked before the Stop isn't read again, as long as the helper wasn't restarted in between and the file hasn't changed since. Tried on a PS5: a 20 GB upload stopped at 10 GB and resumed checked only the new 10 GB. + +**Other** +- **Clear all in the notification bell (#911).** Thanks @Dang3rZone. +- **Security:** updated the `url` library for a newly published advisory (RUSTSEC-2026-0592). + +## 12.6.21 + **Workshop** - **Clearer AMPR choices in Convert (#828).** The asset pack choice and the emulator now sit together under Asset packs, and only combinations that start are offered. A game that doesn't use AMPR shows no emulator options. zstd packs always get the emulator that reads zstd, and LZ4 packs always get ampr_emu 0.4.2.1, so a game can no longer end up with an emulator that can't read its packs (which made some converted games close at start). The engine corrects that mix too, including for "Add the AMPR emulator" on a game already in packs. "Rebuild AMPR index" is hidden for games in LZ4 packs, where it doesn't apply. diff --git a/VERSION b/VERSION index cbdc7beb8..8d98e4dc8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -12.6.20 +12.6.21 diff --git a/client/package-lock.json b/client/package-lock.json index 3625ce131..f9ae34ca9 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,12 +1,12 @@ { "name": "ps5upload-client", - "version": "12.6.20", + "version": "12.6.21", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ps5upload-client", - "version": "12.6.20", + "version": "12.6.21", "dependencies": { "@tauri-apps/api": "^2.12.5", "@tauri-apps/plugin-dialog": "^2.8.4", diff --git a/client/package.json b/client/package.json index 5bf02f0e6..a3a333793 100644 --- a/client/package.json +++ b/client/package.json @@ -2,7 +2,7 @@ "name": "ps5upload-client", "private": true, "type": "module", - "version": "12.6.20", + "version": "12.6.21", "description": "The all-in-one PS5 companion app.", "homepage": "https://github.com/phantomptr/ps5upload", "author": "PhantomPtr ", diff --git a/client/src-tauri/Cargo.lock b/client/src-tauri/Cargo.lock index c8bda1de4..85d6d1dd2 100644 --- a/client/src-tauri/Cargo.lock +++ b/client/src-tauri/Cargo.lock @@ -378,9 +378,9 @@ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" [[package]] name = "ava1" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69499426e8661604ef3c4f9747c1febc942832de3c89a8d13300a92ab3be0b65" +checksum = "a7f4d8733610e55bafc3778a02989a64598fa3b565147e1816099c939f996a88" dependencies = [ "blake2 0.11.0", "blake3", @@ -4752,7 +4752,7 @@ dependencies = [ [[package]] name = "ps5-dump-forge-exfat" -version = "12.6.20" +version = "12.6.21" dependencies = [ "ps5-dump-forge-patch", "ps5upload-fpkg", @@ -4761,14 +4761,14 @@ dependencies = [ [[package]] name = "ps5-dump-forge-patch" -version = "12.6.20" +version = "12.6.21" dependencies = [ "crc32fast", ] [[package]] name = "ps5-dump-forge-pfs" -version = "12.6.20" +version = "12.6.21" dependencies = [ "flate2", "ps5-dump-forge-patch", @@ -4777,7 +4777,7 @@ dependencies = [ [[package]] name = "ps5-dump-forge-ufs2" -version = "12.6.20" +version = "12.6.21" dependencies = [ "ps5-dump-forge-patch", "ps5upload-fpkg", @@ -4786,7 +4786,7 @@ dependencies = [ [[package]] name = "ps5-dump-forge-zstd" -version = "12.6.20" +version = "12.6.21" dependencies = [ "crc32fast", "getrandom 0.4.3", @@ -4797,7 +4797,7 @@ dependencies = [ [[package]] name = "ps5upload-archive" -version = "12.6.20" +version = "12.6.21" dependencies = [ "anyhow", "crc32fast", @@ -4807,7 +4807,7 @@ dependencies = [ [[package]] name = "ps5upload-ava1" -version = "12.6.20" +version = "12.6.21" dependencies = [ "anyhow", "ava1", @@ -4826,7 +4826,7 @@ dependencies = [ [[package]] name = "ps5upload-convert-core" -version = "12.6.20" +version = "12.6.21" dependencies = [ "blake3", "libc", @@ -4843,7 +4843,7 @@ dependencies = [ [[package]] name = "ps5upload-core" -version = "12.6.20" +version = "12.6.21" dependencies = [ "aes 0.9.2", "aes-gcm 0.11.0", @@ -4877,7 +4877,7 @@ dependencies = [ [[package]] name = "ps5upload-desktop" -version = "12.6.20" +version = "12.6.21" dependencies = [ "anyhow", "ava1", @@ -4918,7 +4918,7 @@ dependencies = [ [[package]] name = "ps5upload-engine" -version = "12.6.20" +version = "12.6.21" dependencies = [ "aes 0.9.2", "aes-gcm 0.11.0", @@ -4982,7 +4982,7 @@ dependencies = [ [[package]] name = "ps5upload-fpkg" -version = "12.6.20" +version = "12.6.21" dependencies = [ "aes 0.9.2", "crc32fast", @@ -5005,7 +5005,7 @@ dependencies = [ [[package]] name = "ps5upload-hub" -version = "12.6.20" +version = "12.6.21" dependencies = [ "axum", "base64 0.23.1", @@ -5019,7 +5019,7 @@ dependencies = [ [[package]] name = "ps5upload-pkg" -version = "12.6.20" +version = "12.6.21" dependencies = [ "aes 0.9.2", "blake3", @@ -5031,7 +5031,7 @@ dependencies = [ [[package]] name = "ps5upload-tailnet" -version = "12.6.20" +version = "12.6.21" dependencies = [ "cc", ] diff --git a/client/src-tauri/Cargo.toml b/client/src-tauri/Cargo.toml index 513bea2a5..ee703b23b 100644 --- a/client/src-tauri/Cargo.toml +++ b/client/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ps5upload-desktop" -version = "12.6.20" +version = "12.6.21" description = "The all-in-one PS5 companion app." license = "GPL-3.0-or-later" edition = "2021" @@ -17,7 +17,7 @@ blake3 = "1" [dependencies] # Same version as engine/Cargo.toml (the third_party/ava1 submodule's tag). -ava1 = "=1.0.11" +ava1 = "=1.0.12" # Tauri core + the native file dialogs. File reads/writes go through our # own commands (see commands/save_text_file.rs), and links open through # tauri-plugin-opener below. diff --git a/client/src-tauri/tauri.conf.json b/client/src-tauri/tauri.conf.json index 79c4266c2..450d1e323 100644 --- a/client/src-tauri/tauri.conf.json +++ b/client/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "PS5Upload", - "version": "12.6.20", + "version": "12.6.21", "identifier": "com.phantomptr.ps5upload", "build": { "beforeDevCommand": "npm run dev:vite", diff --git a/client/src/i18n/locales/ar.ts b/client/src/i18n/locales/ar.ts index cefb07b3c..50d23382d 100644 --- a/client/src/i18n/locales/ar.ts +++ b/client/src/i18n/locales/ar.ts @@ -3595,6 +3595,7 @@ bottleneck_workers: "عمليات الوحدة", bottleneck_memory: "ذاكرة الوحدة", upload_phase_settling: "جارٍ الإنهاء على الوحدة…", upload_phase_verifying: "جارٍ التحقق على PS5…", +upload_phase_verifying_count: "جارٍ التحقق على PS5: {done} من {total}", upload_console_quiet: "لم يُبلغ PS5 عن أي تقدم منذ {time}.", upload_warn_unsettled_title: "اكتمل الرفع، لكن الحفظ غير مؤكد بعد", upload_warn_unsettled: "وصلت كل البايتات إلى الجهاز، لكنه لم يؤكد بعد حفظ جميع الملفات. ستكتمل من تلقاء نفسها؛ وإذا انقطعت الطاقة عن الجهاز قبل ذلك فأعد إرسال المجلد.", diff --git a/client/src/i18n/locales/bn.ts b/client/src/i18n/locales/bn.ts index 06b92322a..f577afc33 100644 --- a/client/src/i18n/locales/bn.ts +++ b/client/src/i18n/locales/bn.ts @@ -3595,6 +3595,7 @@ bottleneck_workers: "কনসোলের ওয়ার্কার", bottleneck_memory: "কনসোলের মেমরি", upload_phase_settling: "কনসোলে শেষ করা হচ্ছে…", upload_phase_verifying: "PS5-এ যাচাই করা হচ্ছে…", +upload_phase_verifying_count: "PS5-এ যাচাই হচ্ছে: {total}-এর মধ্যে {done}", upload_console_quiet: "PS5 {time} ধরে কোনো অগ্রগতি জানায়নি।", upload_warn_unsettled_title: "আপলোড শেষ, কিন্তু সংরক্ষণ নিশ্চিত হয়নি", upload_warn_unsettled: "প্রতিটি বাইট কনসোলে পৌঁছেছে, কিন্তু সব ফাইল সংরক্ষণ হয়েছে বলে এখনও নিশ্চিত করেনি। সেগুলো নিজে থেকেই শেষ হবে; এর আগে কনসোলের বিদ্যুৎ চলে গেলে ফোল্ডারটি আবার পাঠান।", diff --git a/client/src/i18n/locales/de.ts b/client/src/i18n/locales/de.ts index 20b3074ec..fc175d24f 100644 --- a/client/src/i18n/locales/de.ts +++ b/client/src/i18n/locales/de.ts @@ -3603,6 +3603,7 @@ bottleneck_workers: "Konsolen-Worker", bottleneck_memory: "Konsolen-Speicher", upload_phase_settling: "Wird auf der Konsole abgeschlossen…", upload_phase_verifying: "Wird auf der PS5 geprüft…", +upload_phase_verifying_count: "Prüfung auf der PS5: {done} von {total}", upload_console_quiet: "Die PS5 hat seit {time} keinen Fortschritt gemeldet.", upload_warn_unsettled_title: "Upload beendet, Speichern aber nicht bestätigt", upload_warn_unsettled: "Jedes Byte ist auf der Konsole angekommen, sie hat aber noch nicht bestätigt, alle Dateien gespeichert zu haben. Sie werden von selbst fertig; fällt der Strom vorher aus, senden Sie den Ordner erneut.", diff --git a/client/src/i18n/locales/en.ts b/client/src/i18n/locales/en.ts index a453250d8..533c774ce 100644 --- a/client/src/i18n/locales/en.ts +++ b/client/src/i18n/locales/en.ts @@ -4287,6 +4287,7 @@ bottleneck_workers: "console workers", bottleneck_memory: "console memory", upload_phase_settling: "Finishing on the console…", upload_phase_verifying: "Verifying on the PS5…", +upload_phase_verifying_count: "Checking on the PS5: {done} of {total}", upload_console_quiet: "The PS5 has reported no progress for {time}.", upload_phase_settling_count: "{left} of {total} files left", upload_phase_settling_rate: "files/s", diff --git a/client/src/i18n/locales/es.ts b/client/src/i18n/locales/es.ts index 9b9d08ecc..d3ad85289 100644 --- a/client/src/i18n/locales/es.ts +++ b/client/src/i18n/locales/es.ts @@ -3548,6 +3548,7 @@ bottleneck_workers: "procesos de la consola", bottleneck_memory: "memoria de la consola", upload_phase_settling: "Finalizando en la consola…", upload_phase_verifying: "Comprobando en la PS5…", +upload_phase_verifying_count: "Comprobando en la PS5: {done} de {total}", upload_console_quiet: "La PS5 no ha informado de ningún avance desde hace {time}.", upload_warn_unsettled_title: "Subida terminada, pero sin confirmar el guardado", upload_warn_unsettled: "Todos los bytes llegaron a la consola, pero aún no ha confirmado haber guardado todos los archivos. Terminan solos; si la consola pierde la corriente antes, vuelve a enviar la carpeta.", diff --git a/client/src/i18n/locales/fa.ts b/client/src/i18n/locales/fa.ts index 132900668..bcaffef8f 100644 --- a/client/src/i18n/locales/fa.ts +++ b/client/src/i18n/locales/fa.ts @@ -3964,6 +3964,7 @@ notif_first_run_ready_body: "ps5upload روی {host} در حال اجراست.", "bottleneck_memory": "حافظه‌ی کنسول", "upload_phase_settling": "در حال نهایی‌سازی روی کنسول…", "upload_phase_verifying": "در حال بررسی روی PS5…", +"upload_phase_verifying_count": "در حال بررسی روی PS5: {done} از {total}", "upload_console_quiet": "PS5 از {time} پیش هیچ پیشرفتی گزارش نکرده است.", "upload_warn_unsettled_title": "بارگذاری تمام شد، اما ذخیره‌شدن تأیید نشده است", "upload_warn_unsettled": "همه‌ی بایت‌ها به کنسول رسیدند، اما کنسول هنوز ذخیره‌ی همه‌ی فایل‌ها را تأیید نکرده است. آن‌ها خودشان تمام می‌شوند؛ اگر کنسول پیش از آن برق را از دست بدهد، پوشه را دوباره بفرستید.", diff --git a/client/src/i18n/locales/fr.ts b/client/src/i18n/locales/fr.ts index 57c34b49e..af3dc584d 100644 --- a/client/src/i18n/locales/fr.ts +++ b/client/src/i18n/locales/fr.ts @@ -3611,6 +3611,7 @@ bottleneck_workers: "processus de la console", bottleneck_memory: "mémoire de la console", upload_phase_settling: "Finalisation sur la console…", upload_phase_verifying: "Vérification sur la PS5…", +upload_phase_verifying_count: "Vérification sur la PS5 : {done} sur {total}", upload_console_quiet: "La PS5 n'a signalé aucune progression depuis {time}.", upload_warn_unsettled_title: "Envoi terminé, mais l'enregistrement n'est pas confirmé", upload_warn_unsettled: "Tous les octets sont arrivés sur la console, mais elle n'a pas encore confirmé avoir enregistré tous les fichiers. Ils se terminent seuls ; si la console perd le courant avant, renvoyez le dossier.", diff --git a/client/src/i18n/locales/hi.ts b/client/src/i18n/locales/hi.ts index c40f1be78..fcec19b64 100644 --- a/client/src/i18n/locales/hi.ts +++ b/client/src/i18n/locales/hi.ts @@ -3609,6 +3609,7 @@ bottleneck_workers: "कंसोल के वर्कर", bottleneck_memory: "कंसोल की मेमोरी", upload_phase_settling: "कंसोल पर पूरा हो रहा है…", upload_phase_verifying: "PS5 पर जाँच हो रही है…", +upload_phase_verifying_count: "PS5 पर जाँच हो रही है: {total} में से {done}", upload_console_quiet: "PS5 ने {time} से कोई प्रगति नहीं बताई है।", upload_warn_unsettled_title: "अपलोड पूरा हुआ, पर सहेजना पुष्ट नहीं हुआ", upload_warn_unsettled: "हर बाइट कंसोल तक पहुँच गया, पर कंसोल ने अभी सभी फ़ाइलें सहेजने की पुष्टि नहीं की है। वे अपने आप पूरी हो जाएँगी; इससे पहले कंसोल की बिजली चली जाए तो फ़ोल्डर फिर से भेजें।", diff --git a/client/src/i18n/locales/hu.ts b/client/src/i18n/locales/hu.ts index ba58e7b86..06a339fef 100644 --- a/client/src/i18n/locales/hu.ts +++ b/client/src/i18n/locales/hu.ts @@ -3965,6 +3965,7 @@ bottleneck_workers: "konzol munkaszálai", bottleneck_memory: "konzol memóriája", upload_phase_settling: "Befejezés a konzolon…", upload_phase_verifying: "Ellenőrzés a PS5-ön…", +upload_phase_verifying_count: "Ellenőrzés a PS5-ön: {done} / {total}", upload_console_quiet: "A PS5 {time} óta nem jelzett előrehaladást.", upload_warn_unsettled_title: "A feltöltés kész, de a mentés nincs megerősítve", upload_warn_unsettled: "Minden bájt megérkezett a konzolra, de az még nem erősítette meg az összes fájl mentését. Maguktól befejeződnek; ha előtte elmegy az áram, küldd el újra a mappát.", diff --git a/client/src/i18n/locales/id.ts b/client/src/i18n/locales/id.ts index 234ad2e62..8d859fc3f 100644 --- a/client/src/i18n/locales/id.ts +++ b/client/src/i18n/locales/id.ts @@ -3604,6 +3604,7 @@ bottleneck_workers: "pekerja konsol", bottleneck_memory: "memori konsol", upload_phase_settling: "Menyelesaikan di konsol…", upload_phase_verifying: "Memeriksa di PS5…", +upload_phase_verifying_count: "Memeriksa di PS5: {done} dari {total}", upload_console_quiet: "PS5 belum melaporkan kemajuan selama {time}.", upload_warn_unsettled_title: "Unggahan selesai, tetapi penyimpanan belum dikonfirmasi", upload_warn_unsettled: "Setiap byte sudah sampai di konsol, tetapi konsol belum mengonfirmasi semua berkas tersimpan. Berkas akan selesai sendiri; jika listrik konsol mati lebih dulu, kirim ulang foldernya.", diff --git a/client/src/i18n/locales/it.ts b/client/src/i18n/locales/it.ts index b8fc0cff7..a07f1ba56 100644 --- a/client/src/i18n/locales/it.ts +++ b/client/src/i18n/locales/it.ts @@ -3548,6 +3548,7 @@ bottleneck_workers: "processi della console", bottleneck_memory: "memoria della console", upload_phase_settling: "Completamento sulla console…", upload_phase_verifying: "Verifica sulla PS5…", +upload_phase_verifying_count: "Verifica sulla PS5: {done} di {total}", upload_console_quiet: "La PS5 non segnala progressi da {time}.", upload_warn_unsettled_title: "Caricamento finito, ma salvataggio non confermato", upload_warn_unsettled: "Ogni byte è arrivato alla console, ma questa non ha ancora confermato di aver salvato tutti i file. Si completano da soli; se la console perde l'alimentazione prima, invia di nuovo la cartella.", diff --git a/client/src/i18n/locales/ja.ts b/client/src/i18n/locales/ja.ts index 0c682e9f2..612ba0113 100644 --- a/client/src/i18n/locales/ja.ts +++ b/client/src/i18n/locales/ja.ts @@ -3614,6 +3614,7 @@ bottleneck_workers: "本体のワーカー", bottleneck_memory: "本体のメモリ", upload_phase_settling: "本体で仕上げ中…", upload_phase_verifying: "PS5 上で確認中…", +upload_phase_verifying_count: "PS5 で確認中: {done} / {total}", upload_console_quiet: "PS5 から {time} の間、進行状況の報告がありません。", upload_warn_unsettled_title: "アップロードは完了しましたが、保存は未確認です", upload_warn_unsettled: "すべてのバイトは本体に届きましたが、すべてのファイルの保存はまだ確認されていません。自動的に完了します。その前に本体の電源が切れた場合は、フォルダーをもう一度送信してください。", diff --git a/client/src/i18n/locales/ko.ts b/client/src/i18n/locales/ko.ts index 759f4d943..5f55c3aea 100644 --- a/client/src/i18n/locales/ko.ts +++ b/client/src/i18n/locales/ko.ts @@ -3612,6 +3612,7 @@ bottleneck_workers: "본체 작업자", bottleneck_memory: "본체 메모리", upload_phase_settling: "본체에서 마무리하는 중…", upload_phase_verifying: "PS5에서 확인하는 중…", +upload_phase_verifying_count: "PS5에서 확인 중: {done} / {total}", upload_console_quiet: "PS5가 {time} 동안 진행 상황을 알리지 않았습니다.", upload_warn_unsettled_title: "업로드는 끝났지만 저장이 확인되지 않았습니다", upload_warn_unsettled: "모든 바이트가 본체에 도착했지만, 모든 파일의 저장은 아직 확인되지 않았습니다. 알아서 마무리됩니다. 그 전에 본체 전원이 꺼지면 폴더를 다시 보내세요.", diff --git a/client/src/i18n/locales/pl.ts b/client/src/i18n/locales/pl.ts index 4f9c21954..09d02ac31 100644 --- a/client/src/i18n/locales/pl.ts +++ b/client/src/i18n/locales/pl.ts @@ -3832,6 +3832,7 @@ bottleneck_workers: "wątki robocze konsoli", bottleneck_memory: "pamięć konsoli", upload_phase_settling: "Kończenie na konsoli…", upload_phase_verifying: "Sprawdzanie na PS5…", +upload_phase_verifying_count: "Sprawdzanie na PS5: {done} z {total}", upload_console_quiet: "PS5 od {time} nie zgłasza postępu.", upload_warn_unsettled_title: "Wysyłanie zakończone, ale zapis nie jest potwierdzony", upload_warn_unsettled: "Każdy bajt dotarł do konsoli, ale nie potwierdziła ona jeszcze zapisu wszystkich plików. Dokończą się same; jeśli konsola straci zasilanie wcześniej, wyślij folder ponownie.", diff --git a/client/src/i18n/locales/pt-BR.ts b/client/src/i18n/locales/pt-BR.ts index 049abafdd..3f9b937e8 100644 --- a/client/src/i18n/locales/pt-BR.ts +++ b/client/src/i18n/locales/pt-BR.ts @@ -3610,6 +3610,7 @@ bottleneck_workers: "processos do console", bottleneck_memory: "memória do console", upload_phase_settling: "Finalizando no console…", upload_phase_verifying: "Verificando no PS5…", +upload_phase_verifying_count: "Verificando no PS5: {done} de {total}", upload_console_quiet: "O PS5 não informou nenhum progresso há {time}.", upload_warn_unsettled_title: "Envio concluído, mas o salvamento não foi confirmado", upload_warn_unsettled: "Todos os bytes chegaram ao console, mas ele ainda não confirmou ter salvo todos os arquivos. Eles terminam sozinhos; se o console perder energia antes, envie a pasta de novo.", diff --git a/client/src/i18n/locales/ru.ts b/client/src/i18n/locales/ru.ts index c04ccb89e..c8b340339 100644 --- a/client/src/i18n/locales/ru.ts +++ b/client/src/i18n/locales/ru.ts @@ -3548,6 +3548,7 @@ bottleneck_workers: "рабочие потоки консоли", bottleneck_memory: "память консоли", upload_phase_settling: "Завершение на консоли…", upload_phase_verifying: "Проверка на PS5…", +upload_phase_verifying_count: "Проверка на PS5: {done} из {total}", upload_console_quiet: "PS5 не сообщает о прогрессе уже {time}.", upload_warn_unsettled_title: "Отправка завершена, но сохранение не подтверждено", upload_warn_unsettled: "Все байты дошли до консоли, но она ещё не подтвердила сохранение всех файлов. Они завершатся сами; если консоль потеряет питание раньше, отправьте папку снова.", diff --git a/client/src/i18n/locales/th.ts b/client/src/i18n/locales/th.ts index 16cceae55..7e7448380 100644 --- a/client/src/i18n/locales/th.ts +++ b/client/src/i18n/locales/th.ts @@ -3602,6 +3602,7 @@ bottleneck_workers: "เวิร์กเกอร์ของเครื่ bottleneck_memory: "หน่วยความจำของเครื่อง", upload_phase_settling: "กำลังเสร็จสิ้นบนเครื่อง…", upload_phase_verifying: "กำลังตรวจสอบบน PS5…", +upload_phase_verifying_count: "กำลังตรวจสอบบน PS5: {done} จาก {total}", upload_console_quiet: "PS5 ไม่ได้รายงานความคืบหน้ามา {time} แล้ว", upload_warn_unsettled_title: "อัปโหลดเสร็จแล้ว แต่ยังไม่ยืนยันว่าบันทึกครบ", upload_warn_unsettled: "ข้อมูลทุกไบต์ถึงเครื่องแล้ว แต่เครื่องยังไม่ยืนยันว่าบันทึกไฟล์ทั้งหมด ไฟล์จะเสร็จเอง หากเครื่องไฟดับก่อน ให้ส่งโฟลเดอร์อีกครั้ง", diff --git a/client/src/i18n/locales/tr.ts b/client/src/i18n/locales/tr.ts index b10bde275..5aaf44b54 100644 --- a/client/src/i18n/locales/tr.ts +++ b/client/src/i18n/locales/tr.ts @@ -3602,6 +3602,7 @@ bottleneck_workers: "konsol işçileri", bottleneck_memory: "konsol belleği", upload_phase_settling: "Konsolda tamamlanıyor…", upload_phase_verifying: "PS5'te denetleniyor…", +upload_phase_verifying_count: "PS5'te denetleniyor: {done} / {total}", upload_console_quiet: "PS5 {time} süredir ilerleme bildirmedi.", upload_warn_unsettled_title: "Yükleme bitti ama kayıt doğrulanmadı", upload_warn_unsettled: "Her bayt konsola ulaştı, ancak konsol tüm dosyaları kaydettiğini henüz doğrulamadı. Kendiliğinden tamamlanır; konsolun gücü daha önce giderse klasörü yeniden gönderin.", diff --git a/client/src/i18n/locales/vi.ts b/client/src/i18n/locales/vi.ts index 477fd9a0c..29523f8c2 100644 --- a/client/src/i18n/locales/vi.ts +++ b/client/src/i18n/locales/vi.ts @@ -3597,6 +3597,7 @@ bottleneck_workers: "luồng xử lý của máy", bottleneck_memory: "bộ nhớ của máy", upload_phase_settling: "Đang hoàn tất trên máy…", upload_phase_verifying: "Đang kiểm tra trên PS5…", +upload_phase_verifying_count: "Đang kiểm tra trên PS5: {done} / {total}", upload_console_quiet: "PS5 chưa báo tiến độ nào trong {time}.", upload_warn_unsettled_title: "Tải lên xong nhưng chưa xác nhận đã lưu", upload_warn_unsettled: "Mọi byte đã tới máy, nhưng máy chưa xác nhận đã lưu hết các tệp. Chúng sẽ tự hoàn tất; nếu máy mất điện trước đó, hãy gửi lại thư mục.", diff --git a/client/src/i18n/locales/zh-CN.ts b/client/src/i18n/locales/zh-CN.ts index b63259ab7..ec977085c 100644 --- a/client/src/i18n/locales/zh-CN.ts +++ b/client/src/i18n/locales/zh-CN.ts @@ -3554,6 +3554,7 @@ bottleneck_workers: "主机工作线程", bottleneck_memory: "主机内存", upload_phase_settling: "正在主机上收尾…", upload_phase_verifying: "正在 PS5 上校验…", +upload_phase_verifying_count: "正在 PS5 上检查:{done} / {total}", upload_console_quiet: "PS5 已有 {time} 没有报告进度。", upload_warn_unsettled_title: "上传已完成,但尚未确认保存", upload_warn_unsettled: "所有字节都已到达主机,但主机还没有确认保存全部文件。它们会自行完成;如果主机在此之前断电,请重新发送该文件夹。", diff --git a/client/src/i18n/locales/zh-TW.ts b/client/src/i18n/locales/zh-TW.ts index 6918e5e1a..54694993a 100644 --- a/client/src/i18n/locales/zh-TW.ts +++ b/client/src/i18n/locales/zh-TW.ts @@ -3548,6 +3548,7 @@ bottleneck_workers: "主機工作執行緒", bottleneck_memory: "主機記憶體", upload_phase_settling: "正在主機上收尾…", upload_phase_verifying: "正在 PS5 上校驗…", +upload_phase_verifying_count: "正在 PS5 上檢查:{done} / {total}", upload_console_quiet: "PS5 已有 {time} 沒有回報進度。", upload_warn_unsettled_title: "上傳已完成,但尚未確認儲存", upload_warn_unsettled: "所有位元組都已抵達主機,但主機尚未確認儲存全部檔案。它們會自行完成;若主機在此之前斷電,請重新傳送該資料夾。", diff --git a/client/src/lib/jobLive.test.ts b/client/src/lib/jobLive.test.ts index 692a0eb5e..f25e5aade 100644 --- a/client/src/lib/jobLive.test.ts +++ b/client/src/lib/jobLive.test.ts @@ -74,6 +74,26 @@ describe("job live notes", () => { expect(both?.verifying).toBeUndefined(); }); + it("carries what the read-back has left only while verifying, within its total (#873)", () => { + expect( + jobLiveFromSnapshot({ verifying: true, verify_left_bytes: 30, verify_total_bytes: 100 }), + ).toMatchObject({ verifying: true, verifyLeft: 30, verifyTotal: 100 }); + expect( + jobLiveFromSnapshot({ verifying: true, verify_left_bytes: 300, verify_total_bytes: 100 }), + ).toMatchObject({ verifyLeft: 100, verifyTotal: 100 }); + // an older helper sends no figures + expect(jobLiveFromSnapshot({ verifying: true })).not.toHaveProperty("verifyTotal"); + // never outside the read-back + expect( + jobLiveFromSnapshot({ + settling: true, + verifying: true, + verify_left_bytes: 30, + verify_total_bytes: 100, + }), + ).not.toHaveProperty("verifyTotal"); + }); + it("says the console is quiet only from a minute on (#873)", () => { expect(jobLiveFromSnapshot({ console_quiet_ms: 5_000 })).toBeUndefined(); expect(jobLiveFromSnapshot({ verifying: true, console_quiet_ms: 59_999 })).not.toHaveProperty( diff --git a/client/src/lib/jobLive.ts b/client/src/lib/jobLive.ts index 6d1af32e1..7e07a3d77 100644 --- a/client/src/lib/jobLive.ts +++ b/client/src/lib/jobLive.ts @@ -20,6 +20,9 @@ // verifying every byte is on the console and it is reading the last large // files back from its drive to check them (#783): "Verifying on the // console" +// verify_left_bytes/_total_bytes with `verifying`, from a helper that says (#873): bytes it still +// has to read back, and the most it had since the last byte: "Checking +// on the PS5: X of Y" and a time left // console_quiet_ms once the console has every byte (#873): how long since it last // confirmed anything new. Small while it gets on with the files; // past a minute the row says so ("The PS5 has reported no @@ -46,6 +49,10 @@ export interface JobLive { settling: boolean; /** Every byte is on the console and it is reading the last large files back to check them. */ verifying?: boolean; + /** While verifying: bytes the console still has to read back, and the most it had since the + * last byte. Absent when the helper does not say (the line then shows no figures). */ + verifyLeft?: number; + verifyTotal?: number; /** While settling: files the console still has to make permanent, and the most it had. Absent * when the engine does not send the counts (the line then shows no number). */ settleLeft?: number; @@ -71,6 +78,8 @@ export interface JobLiveFields { bottleneck?: string | null; settling?: boolean | null; verifying?: boolean | null; + verify_left_bytes?: number | null; + verify_total_bytes?: number | null; settle_files_left?: number | null; settle_files_total?: number | null; console_quiet_ms?: number | null; @@ -141,6 +150,8 @@ export function jobLiveFromSnapshot( const settleTotal = counted ? Math.max(settleLeft, Number(snap.settle_files_total) || 0) : 0; + const verifyTotal = verifying ? Math.max(0, Number(snap.verify_total_bytes) || 0) : 0; + const verifyLeft = Math.min(verifyTotal, Math.max(0, Number(snap.verify_left_bytes) || 0)); return { skipping, skipDoneBytes, @@ -155,6 +166,7 @@ export function jobLiveFromSnapshot( bottleneck, settling, ...(verifying ? { verifying } : {}), + ...(verifyTotal > 0 ? { verifyLeft, verifyTotal } : {}), ...(counted ? { settleLeft, settleTotal } : {}), ...(quietMs ? { quietMs } : {}), ...(unsettled ? { unsettled } : {}), diff --git a/client/src/screens/Upload/Bottleneck.test.tsx b/client/src/screens/Upload/Bottleneck.test.tsx index 38249d090..135e6d36f 100644 --- a/client/src/screens/Upload/Bottleneck.test.tsx +++ b/client/src/screens/Upload/Bottleneck.test.tsx @@ -83,6 +83,18 @@ describe("a console that has every byte and reports nothing new (#873)", () => { expect(html).toContain('data-testid="console-quiet-line"'); expect(html).toContain("The PS5 has reported no progress for 14 min."); }); + it("says how much of the read-back is done when the helper reports it", () => { + const GiB = 1024 ** 3; + const html = renderToStaticMarkup( + , + ); + expect(html).toContain('data-testid="verifying-count"'); + expect(html).toContain("Checking on the PS5: 56.0 GiB of 156 GiB"); + expect(html).not.toContain("Verifying on the PS5…"); + expect(html).not.toContain("console-quiet-line"); + }); it("says nothing while the console is getting on with it", () => { expect( renderToStaticMarkup(), diff --git a/client/src/screens/Upload/Bottleneck.tsx b/client/src/screens/Upload/Bottleneck.tsx index f968d404e..1665e37ed 100644 --- a/client/src/screens/Upload/Bottleneck.tsx +++ b/client/src/screens/Upload/Bottleneck.tsx @@ -122,17 +122,42 @@ export function SettlingLine({ live }: { live: JobLive }) { } /** Every byte is on the console and it is reading the last large files back from its drive to - * check them (#783). */ + * check them (#783). A helper that says how much it has left (#873) gets "X of Y" and, once the + * pace is known, the time left: on a large game this takes minutes. */ export function VerifyingLine({ live }: { live: JobLive }) { const tr = useTr(); + const total = live.verifyTotal ?? 0; + const checked = Math.max(0, total - (live.verifyLeft ?? 0)); + const { etaSeconds } = useRateEta("verify", checked, total); if (!live.verifying || live.settling) return null; + if (total <= 0) { + return ( +
+ + {tr("upload_phase_verifying", undefined, "Verifying on the PS5…")} +
+ ); + } + const done = formatBytes(checked); + const all = formatBytes(total); return (
- {tr("upload_phase_verifying", undefined, "Verifying on the PS5…")} + + {tr( + "upload_phase_verifying_count", + { done, total: all }, + `Checking on the PS5: ${done} of ${all}`, + )} + {etaSeconds !== null && + ` · ${tr("upload_phase_settling_eta", { time: formatEtaSeconds(etaSeconds) }, `about ${formatEtaSeconds(etaSeconds)} left`)}`} +
); } diff --git a/engine/Cargo.lock b/engine/Cargo.lock index ff06e70f7..a7f236774 100644 --- a/engine/Cargo.lock +++ b/engine/Cargo.lock @@ -198,9 +198,9 @@ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" [[package]] name = "ava1" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69499426e8661604ef3c4f9747c1febc942832de3c89a8d13300a92ab3be0b65" +checksum = "a7f4d8733610e55bafc3778a02989a64598fa3b565147e1816099c939f996a88" dependencies = [ "blake2 0.11.0", "blake3", @@ -216,7 +216,7 @@ dependencies = [ [[package]] name = "ava1-chaos" -version = "1.0.11" +version = "1.0.12" dependencies = [ "tokio", ] @@ -2570,7 +2570,7 @@ dependencies = [ [[package]] name = "ps5-dump-forge-exfat" -version = "12.6.20" +version = "12.6.21" dependencies = [ "ps5-dump-forge-patch", "ps5upload-fpkg", @@ -2579,14 +2579,14 @@ dependencies = [ [[package]] name = "ps5-dump-forge-patch" -version = "12.6.20" +version = "12.6.21" dependencies = [ "crc32fast", ] [[package]] name = "ps5-dump-forge-pfs" -version = "12.6.20" +version = "12.6.21" dependencies = [ "flate2", "ps5-dump-forge-patch", @@ -2596,7 +2596,7 @@ dependencies = [ [[package]] name = "ps5-dump-forge-ufs2" -version = "12.6.20" +version = "12.6.21" dependencies = [ "ps5-dump-forge-patch", "ps5upload-fpkg", @@ -2606,7 +2606,7 @@ dependencies = [ [[package]] name = "ps5-dump-forge-zstd" -version = "12.6.20" +version = "12.6.21" dependencies = [ "crc32fast", "getrandom 0.4.3", @@ -2617,7 +2617,7 @@ dependencies = [ [[package]] name = "ps5upload-apidoc" -version = "12.6.20" +version = "12.6.21" dependencies = [ "proc-macro2", "quote", @@ -2627,7 +2627,7 @@ dependencies = [ [[package]] name = "ps5upload-archive" -version = "12.6.20" +version = "12.6.21" dependencies = [ "anyhow", "crc32fast", @@ -2637,7 +2637,7 @@ dependencies = [ [[package]] name = "ps5upload-ava1" -version = "12.6.20" +version = "12.6.21" dependencies = [ "anyhow", "ava1", @@ -2660,7 +2660,7 @@ dependencies = [ [[package]] name = "ps5upload-convert" -version = "12.6.20" +version = "12.6.21" dependencies = [ "libc", "ps5upload-archive", @@ -2675,7 +2675,7 @@ dependencies = [ [[package]] name = "ps5upload-convert-core" -version = "12.6.20" +version = "12.6.21" dependencies = [ "blake3", "flate2", @@ -2695,7 +2695,7 @@ dependencies = [ [[package]] name = "ps5upload-core" -version = "12.6.20" +version = "12.6.21" dependencies = [ "aes 0.9.4", "aes-gcm 0.11.1", @@ -2729,7 +2729,7 @@ dependencies = [ [[package]] name = "ps5upload-ctest" -version = "12.6.20" +version = "12.6.21" dependencies = [ "anyhow", "ava1", @@ -2745,7 +2745,7 @@ dependencies = [ [[package]] name = "ps5upload-engine" -version = "12.6.20" +version = "12.6.21" dependencies = [ "aes 0.9.4", "aes-gcm 0.11.1", @@ -2813,7 +2813,7 @@ dependencies = [ [[package]] name = "ps5upload-fpkg" -version = "12.6.20" +version = "12.6.21" dependencies = [ "aes 0.9.4", "blake3", @@ -2837,7 +2837,7 @@ dependencies = [ [[package]] name = "ps5upload-hub" -version = "12.6.20" +version = "12.6.21" dependencies = [ "axum", "base64 0.23.1", @@ -2852,7 +2852,7 @@ dependencies = [ [[package]] name = "ps5upload-lab" -version = "12.6.20" +version = "12.6.21" dependencies = [ "anyhow", "ava1", @@ -2870,7 +2870,7 @@ dependencies = [ [[package]] name = "ps5upload-pkg" -version = "12.6.20" +version = "12.6.21" dependencies = [ "aes 0.9.4", "blake3", @@ -2882,14 +2882,14 @@ dependencies = [ [[package]] name = "ps5upload-tailnet" -version = "12.6.20" +version = "12.6.21" dependencies = [ "cc", ] [[package]] name = "ps5upload-tests" -version = "12.6.20" +version = "12.6.21" dependencies = [ "anyhow", "ava1", @@ -2907,7 +2907,7 @@ dependencies = [ [[package]] name = "ps5upload-unrar" -version = "12.6.20" +version = "12.6.21" dependencies = [ "serde", "serde_json", diff --git a/engine/Cargo.toml b/engine/Cargo.toml index a0e3d4d40..c789cc321 100644 --- a/engine/Cargo.toml +++ b/engine/Cargo.toml @@ -32,7 +32,7 @@ resolver = "2" [workspace.package] edition = "2021" license = "GPL-3.0-or-later" -version = "12.6.20" +version = "12.6.21" [workspace.dependencies] # AVA1 (github.com/phantomptr/ava1): the Rust crate from crates.io; the payload builds the C side @@ -40,7 +40,7 @@ version = "12.6.20" # (`make ava1-version-check` fails when they differ). ava1-chaos (a fault-injecting TCP proxy for # the lab and tests) is not published and does not depend on ava1, so the path dep adds no # second ava1 to the graph. -ava1 = "=1.0.11" +ava1 = "=1.0.12" ava1-chaos = { path = "../third_party/ava1/crates/ava1-chaos" } anyhow = "1.0" # "multipart" is for the backport library import (fakelibs_api.rs): users pick diff --git a/engine/crates/ps5upload-ava1/src/progress.rs b/engine/crates/ps5upload-ava1/src/progress.rs index 1ac90e727..0f0c644f2 100644 --- a/engine/crates/ps5upload-ava1/src/progress.rs +++ b/engine/crates/ps5upload-ava1/src/progress.rs @@ -121,8 +121,10 @@ pub fn bytes_done(p: &Progress, opened: &Opened) -> u64 { pub const QUIET_AFTER: Duration = Duration::from_secs(60); /// What the console has confirmed of a job: durable bytes, finished files, files still to -/// save in place, and whether it is saving them. Any change is the console getting on with it. -pub type Confirmed = (u64, u64, u32, bool); +/// save in place, whether it is saving them, and the bytes it has still to read back (its +/// `Status.readback_left`, AVA1 1.0.12; 0 from an older helper). Any change is the console +/// getting on with it: a read-back that advances is not a quiet console. +pub type Confirmed = (u64, u64, u32, bool, u64); /// The stretch after the last byte: how long ago the console acknowledged it, and how long /// since it last confirmed anything new. Pure (the caller brings the clock). @@ -212,6 +214,9 @@ struct Counters { rates: Mutex, /// The job asked the console to read its large files back (JF_READBACK, #783). readback: AtomicBool, + /// While the console reads back after the last byte: the most it said it had left to + /// read (the "of" in "X of Y checked"); 0 outside that stretch. + verify_peak: AtomicU64, /// The job's name for the log lines about the stretch after its last byte ("": none). label: String, quiet: Mutex, @@ -314,6 +319,7 @@ impl Bridge { resumed_out: cfg.progress_bytes_resumed.clone(), rates: Mutex::new(RateHistory::new(Instant::now())), readback: AtomicBool::new(false), + verify_peak: AtomicU64::new(0), label, quiet: Mutex::default(), session: Mutex::new(Weak::new()), @@ -346,6 +352,19 @@ impl Bridge { } } +/// The read-back after the last byte as (bytes left, bytes in all) for the row's "X of Y": what +/// the console last said it has left (`Status.readback_left`) and the most it said since the +/// stretch began, kept in `peak`. (0, 0) outside the stretch and from a helper that does not say +/// (AVA1 before 1.0.12), so the row shows no figures. +pub fn verify_counts(verifying: bool, left: u64, peak: &AtomicU64) -> (u64, u64) { + if !verifying || left == 0 && peak.load(Ordering::Relaxed) == 0 { + peak.store(0, Ordering::Relaxed); + return (0, 0); + } + let total = peak.fetch_max(left, Ordering::Relaxed).max(left); + (left, total) +} + /// Every byte of the job is durable on the console but not every file is done: with the /// read-back on, the console is reading the last large files back from its drive. pub fn verifying(p: &Progress, readback: bool) -> bool { @@ -389,8 +408,16 @@ impl Counters { p.unswept.load(Ordering::Relaxed) ) } else if verifying(p, self.readback.load(Ordering::Relaxed)) { - "it has made every byte durable and is reading the large files back from its drive" - .into() + match p.readback_left.load(Ordering::Relaxed) { + 0 => "it has made every byte durable and is reading the large files back from its \ + drive" + .into(), + left => format!( + "it has made every byte durable and is reading the large files back from its \ + drive, {} MiB still to read", + left >> 20 + ), + } } else if durable >= total { "it has made every byte durable and is putting the files in place".into() } else { @@ -425,6 +452,7 @@ impl Counters { p.files_durable.load(Ordering::Relaxed), p.unswept.load(Ordering::Relaxed), p.settling.load(Ordering::Relaxed), + p.readback_left.load(Ordering::Relaxed), ); let now = Instant::now(); let mut w = self.quiet.lock().unwrap_or_else(|e| e.into_inner()); @@ -518,10 +546,15 @@ impl Counters { ); l.settling .store(p.settling.load(Ordering::Relaxed), Ordering::Relaxed); - l.verifying.store( - !last && verifying(p, self.readback.load(Ordering::Relaxed)), - Ordering::Relaxed, + let verifying_now = !last && verifying(p, self.readback.load(Ordering::Relaxed)); + l.verifying.store(verifying_now, Ordering::Relaxed); + let (left, total) = verify_counts( + verifying_now, + p.readback_left.load(Ordering::Relaxed), + &self.verify_peak, ); + l.verify_left_bytes.store(left, Ordering::Relaxed); + l.verify_total_bytes.store(total, Ordering::Relaxed); l.unswept .store(p.unswept.load(Ordering::Relaxed), Ordering::Relaxed); l.unswept_peak @@ -601,6 +634,60 @@ mod live_tests { assert!(!verifying(&p, true), "every file done"); } + /// #873: the read-back after the last byte reads as "X of Y": Y is the most the console said + /// it had left since the stretch began, X what it says now. Nothing from an older helper. + #[test] + fn the_read_back_after_the_last_byte_counts_down_from_its_peak() { + let peak = AtomicU64::new(0); + assert_eq!( + verify_counts(false, 500, &peak), + (0, 0), + "bytes still arriving" + ); + assert_eq!( + verify_counts(true, 0, &peak), + (0, 0), + "an older helper says nothing" + ); + assert_eq!(verify_counts(true, 400, &peak), (400, 400)); + assert_eq!(verify_counts(true, 250, &peak), (250, 400)); + assert_eq!( + verify_counts(true, 0, &peak), + (0, 400), + "all read, the commit is next" + ); + // A file read back wrong is sent again (not verifying), then read back anew. + assert_eq!(verify_counts(false, 300, &peak), (0, 0)); + assert_eq!(verify_counts(true, 120, &peak), (120, 120)); + } + + /// #873: a read-back that advances keeps the console from counting as quiet. + #[test] + fn a_read_back_that_advances_is_not_a_quiet_console() { + let mut w = QuietWatch::default(); + let t0 = Instant::now(); + let s = Duration::from_secs; + let after = QUIET_AFTER; + assert_eq!(w.observe(t0, true, (100, 0, 0, false, 900), after), None); + for k in 1..20u64 { + assert_eq!( + w.observe( + t0 + s(30 * k), + true, + (100, 0, 0, false, 900 - 40 * k), + after + ), + None + ); + } + assert!(w.quiet_for(t0 + s(30 * 19)) < after); + assert_eq!( + w.observe(t0 + s(30 * 19 + 61), true, (100, 0, 0, false, 140), after), + Some(QuietNote::Quiet(s(61))), + "stopped advancing: quiet again" + ); + } + #[test] fn the_rate_history_keeps_a_point_per_step_and_thins_a_long_job() { let p = Progress::default(); @@ -721,14 +808,14 @@ mod live_tests { let after = s(60); let mut w = QuietWatch::default(); // Bytes still on their way: nothing to time. - assert_eq!(w.observe(t0, false, (10, 0, 0, false), after), None); + assert_eq!(w.observe(t0, false, (10, 0, 0, false, 0), after), None); assert_eq!(w.since_all_sent(t0 + s(5)), Duration::ZERO); assert_eq!(w.quiet_for(t0 + s(5)), Duration::ZERO); // The last byte is acknowledged; the console keeps confirming files for two minutes. let t1 = t0 + s(10); - assert_eq!(w.observe(t1, true, (100, 0, 0, false), after), None); + assert_eq!(w.observe(t1, true, (100, 0, 0, false, 0), after), None); for k in 1..=120u64 { - let note = w.observe(t1 + s(k), true, (100, k, 0, false), after); + let note = w.observe(t1 + s(k), true, (100, k, 0, false, 0), after); assert_eq!( note, None, "a console that is getting on with it is not quiet" @@ -739,37 +826,37 @@ mod live_tests { // Then it confirms nothing: said once, at the limit. let t2 = t1 + s(120); assert_eq!( - w.observe(t2 + s(59), true, (100, 120, 0, false), after), + w.observe(t2 + s(59), true, (100, 120, 0, false, 0), after), None ); assert_eq!( - w.observe(t2 + s(60), true, (100, 120, 0, false), after), + w.observe(t2 + s(60), true, (100, 120, 0, false, 0), after), Some(QuietNote::Quiet(s(60))) ); assert_eq!( - w.observe(t2 + s(300), true, (100, 120, 0, false), after), + w.observe(t2 + s(300), true, (100, 120, 0, false, 0), after), None ); assert_eq!(w.quiet_for(t2 + s(300)), s(300)); // It moves again (a file done, or the files left to save going down): said, and the // next quiet stretch is a new one. assert_eq!( - w.observe(t2 + s(310), true, (100, 121, 0, false), after), + w.observe(t2 + s(310), true, (100, 121, 0, false, 0), after), Some(QuietNote::MovedAgain(s(310))) ); assert_eq!(w.quiet_for(t2 + s(311)), s(1)); assert_eq!( - w.observe(t2 + s(369), true, (100, 121, 0, false), after), + w.observe(t2 + s(369), true, (100, 121, 0, false, 0), after), None ); assert_eq!( - w.observe(t2 + s(370), true, (100, 121, 0, false), after), + w.observe(t2 + s(370), true, (100, 121, 0, false, 0), after), Some(QuietNote::Quiet(s(60))) ); assert_eq!(w.longest(), s(300)); // A file is asked for again: bytes move, so this is not that stretch any more. assert_eq!( - w.observe(t2 + s(400), false, (40, 120, 0, false), after), + w.observe(t2 + s(400), false, (40, 120, 0, false, 0), after), None ); assert_eq!(w.quiet_for(t2 + s(401)), Duration::ZERO); diff --git a/engine/crates/ps5upload-ava1/tests/mgmt.rs b/engine/crates/ps5upload-ava1/tests/mgmt.rs index 5c8887779..8cb2aba85 100644 --- a/engine/crates/ps5upload-ava1/tests/mgmt.rs +++ b/engine/crates/ps5upload-ava1/tests/mgmt.rs @@ -1025,6 +1025,7 @@ fn job_status(job_id: [u8; 16], state: u8) -> gen::Status { result: None, code: None, unswept: None, + readback_left: None, } } diff --git a/engine/crates/ps5upload-ava1/tests/mgmt_job.rs b/engine/crates/ps5upload-ava1/tests/mgmt_job.rs index d1ce32770..a5a0bc887 100644 --- a/engine/crates/ps5upload-ava1/tests/mgmt_job.rs +++ b/engine/crates/ps5upload-ava1/tests/mgmt_job.rs @@ -96,6 +96,7 @@ fn status(job_id: [u8; 16], state: u8, polls: u32, current: Option<&str>) -> Sta result: None, code: None, unswept: None, + readback_left: None, } } diff --git a/engine/crates/ps5upload-core/src/transfer.rs b/engine/crates/ps5upload-core/src/transfer.rs index 9d11f147b..0c3018e1e 100644 --- a/engine/crates/ps5upload-core/src/transfer.rs +++ b/engine/crates/ps5upload-core/src/transfer.rs @@ -227,6 +227,11 @@ pub struct LiveNotes { /// Every byte is on the console and it is reading the last large files back to check them /// (`TransferConfig::verify_writes` on a helper that can): "Verifying on the console". pub verifying: std::sync::atomic::AtomicBool, + /// With `verifying`: bytes the console still has to read back and the most it had in this + /// stretch (AVA1 1.0.12's `Status.readback_left`): "Checking on the PS5: X of Y". Both 0 + /// when the helper does not say. + pub verify_left_bytes: std::sync::atomic::AtomicU64, + pub verify_total_bytes: std::sync::atomic::AtomicU64, /// The files the console still reports unswept while `settling` (0 outside it), and the /// most it reported: the numerator and denominator of "Finishing on the console: N left". pub unswept: std::sync::atomic::AtomicU32, diff --git a/engine/crates/ps5upload-engine/src/lib.rs b/engine/crates/ps5upload-engine/src/lib.rs index 2d33a6618..4b0c0c325 100644 --- a/engine/crates/ps5upload-engine/src/lib.rs +++ b/engine/crates/ps5upload-engine/src/lib.rs @@ -1711,6 +1711,14 @@ pub(crate) fn merge_live_notes( // Every byte is on the console and it is reading the last large files back (#783). if n.verifying.load(Relaxed) && !n.settling.load(Relaxed) { o.insert("verifying".into(), true.into()); + // How much it has left to read back, of the most it had (#873): absent from a helper + // that does not say, so the row shows no figures. + let total = n.verify_total_bytes.load(Relaxed); + if total > 0 { + let left = n.verify_left_bytes.load(Relaxed).min(total); + o.insert("verify_left_bytes".into(), left.into()); + o.insert("verify_total_bytes".into(), total.into()); + } } // The stretch after the last byte (#873): how long ago the console acknowledged it, and // how long since it last confirmed anything new. A client tells a console that is getting @@ -15806,6 +15814,21 @@ mod helpers_tests { n.verifying.store(true, Relaxed); let v = merge_live_notes(Some(&n), running.clone()); assert_eq!(v["verifying"], true); + // #873: no figures from a helper that does not say what is left to read back, then + // what is left of the most it had + assert!(v.get("verify_left_bytes").is_none() && v.get("verify_total_bytes").is_none()); + n.verify_left_bytes.store(3 << 30, Relaxed); + n.verify_total_bytes.store(10 << 30, Relaxed); + let v = merge_live_notes(Some(&n), running.clone()); + assert_eq!( + ( + v["verify_left_bytes"].as_u64(), + v["verify_total_bytes"].as_u64() + ), + (Some(3 << 30), Some(10 << 30)) + ); + n.verify_left_bytes.store(0, Relaxed); + n.verify_total_bytes.store(0, Relaxed); // #873: nothing about the stretch after the last byte while bytes are on their way, // then how long ago it was acknowledged and how long the console has been quiet assert!(v.get("all_sent_ms").is_none() && v.get("console_quiet_ms").is_none()); diff --git a/payload/include/config.h b/payload/include/config.h index 51c1529b1..8b20cfcba 100644 --- a/payload/include/config.h +++ b/payload/include/config.h @@ -5,7 +5,7 @@ * UI tell apart an old payload still running from a build that includes * a particular fix, without having to boot the console. Keep in sync * with the desktop app's package.json during releases. */ -#define PS5UPLOAD2_VERSION "12.6.20" +#define PS5UPLOAD2_VERSION "12.6.21" /* Author credit — embedded in the startup toast so anyone looking at * the console screen knows who wrote the software that just loaded. * Kept separate from VERSION so release scripts can bump the version diff --git a/protocol/ps5upload-ava1/PROFILE.md b/protocol/ps5upload-ava1/PROFILE.md index e9ff61b12..1e9ebdbe4 100644 --- a/protocol/ps5upload-ava1/PROFILE.md +++ b/protocol/ps5upload-ava1/PROFILE.md @@ -286,7 +286,8 @@ shows nothing for it. Code that matches on these fields points here (`client/src | `bottleneck` | string | AVA1's words: `network`, `source`, `console drive`, `console workers`, `console memory`, `none`. A finished job carries the same word in `commit_ack.bottleneck`. | | `settling` | bool | Files are still settling on the console after the job finished (the engine sees `unswept` > 0 in `job.status`): the client shows "Finishing on the console…". Sent on the job while it settles; absent or `false` shows nothing. | | `verifying` | bool | The job asked for the read-back (`JF_READBACK`, SPEC §13.5; #783), every byte is durable on the console and files are still being committed: the console is reading the last large files back from its drive. The client shows "Verifying on the PS5…". Never with `settling`. | -| `all_sent_ms`, `console_quiet_ms` | u64 | Once the console has acknowledged every byte it needed (#873; absent before): milliseconds since then, and milliseconds since it last confirmed anything new (a durable byte, a finished file, a file saved in place). A console that is getting on with the files keeps the second small; from 60 s on the client shows "The PS5 has reported no progress for …" and the engine's log says so once, with what the console had confirmed (a read-back of a large file confirms nothing until the file is done). | +| `verify_left_bytes`, `verify_total_bytes` | u64 | With `verifying`, from a helper on AVA1 1.0.12 or later (#873; absent otherwise): the bytes the console still has to read back (its `Status.readback_left`), and the most it reported since the stretch began. The client shows "Checking on the PS5: X of Y" and a time left. | +| `all_sent_ms`, `console_quiet_ms` | u64 | Once the console has acknowledged every byte it needed (#873; absent before): milliseconds since then, and milliseconds since it last confirmed anything new (a durable byte, a finished file, a file saved in place). A console that is getting on with the files keeps the second small; from 60 s on the client shows "The PS5 has reported no progress for …" and the engine's log says so once, with what the console had confirmed (a helper on AVA1 1.0.12 or later reports its read-back as it goes, so a read-back that advances is not quiet; an older one confirms nothing until the file is done). | `bytes_sent` on a running upload is what the console has of the job: what its map said it held at the latest open (a resume, a reconnect) plus what it has acknowledged since, capped at `total_bytes`. It diff --git a/scripts/i18n-source-hashes.json b/scripts/i18n-source-hashes.json index b1ef03189..a7c820f23 100644 --- a/scripts/i18n-source-hashes.json +++ b/scripts/i18n-source-hashes.json @@ -8791,6 +8791,7 @@ "upload_phase_settling_rate": "ee4f020a 3AM8NoLfZZ8dRZ6rnefciFEw6iX8OjKD22rPYoH5Plucir4Vubo5QuBz-98Y", "upload_phase_skipping": "c3d220e4 7A8IbY4Zsz7fHXkf_D2EQm7vv6mlvwSJeegtg4I80iepuaOi_lloyuPhXPmV", "upload_phase_verifying": "97c2b7f9 WIiOgSm5-88mttTb5HO1yr8-yaPISv6V8VErD799l3JYkzXq0SI3gYOihBMN", + "upload_phase_verifying_count": "c3c42b33 9BNZasKZEY_EDX8S0ZMBafm7fAAND4EwjycRZm6LPcWHQOtpPZrCoMBBp0nw", "upload_pick_here_mobile3": "dce662a1 XK6BJxE9QQQFx3qrLr1WZwE5HmZYSnB2l-u_7zE87J_Q3QX5sIZxx0i3K1UN", "upload_picker_from_ps5_hint": "83af04e4 PgLKp-IF6nPsO-tqX8ffvFbJB8oRPc5sfHzSwPjruHUGUZG8DTJ49klO9kUK", "upload_pkg_card_desc_upload": "45909c40 dVffvL2OzDd_cbiHZdM6LGvBgxFGsTnx8iaoDl_SdPB0VX6kFUx6FJclDfbb", diff --git a/third_party/ava1 b/third_party/ava1 index deee3bbce..ae1d47133 160000 --- a/third_party/ava1 +++ b/third_party/ava1 @@ -1 +1 @@ -Subproject commit deee3bbce1e65be48b71f20fe09cefd10431b906 +Subproject commit ae1d471331348e0a9d3ffbae9cddaf088b8ddbbd