Repository navigation
עדכון הספרייה: ניקוי מקטעי הורדה אסינכרוני (#4070) - #4272
Merged
Merged
Conversation
This was referenced Nov 5, 2026
Y-PLONI
force-pushed
the
fix/m6-updater-cleanup-pin
branch
from
November 6, 2026 07:11
19aa202 to
fbe447b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #4070.
הבעיה
בדוח מופיעות שתי תקיעות שונות. מחיקת קובצי המקטעים נעשתה באופן סינכרוני על ה־UI ונמשכה כ־16.9 שניות. יצירת WebView היא תקיעה נפרדת של כ־22.8 שניות, ואינה מכוסה בשינוי הזה.
השינוי
עדכון pin של
seforim_library_updaterלקומיט24d1a13f4f9e9a05fe7ef7eb71750a8a81a3ea6cמתוך Otzaria/otzaria_library_updater#41. התיקון כבר קיים בספריית המקור ולכן אינו מועתק לאפליקציה.ניקוי המקטעים ברשת ובמסלולי ההמשך משתמש ברשימת קבצים ובמחיקה אסינכרוניות. כל שבעת הקוראים ממתינים לסיום הניקוי בתוך הנעילה הקיימת ליעד, וקובץ המצב נמחק אחרון. גם מחיקת קובץ יעד גדול ופגום עברה למסלול האסינכרוני. API המחיקה הסינכרוני של מסלול ההתאוששות נשאר כפי שהיה.
קובץ הנעילה נוצר באמצעות
flutter pub get; רק התלות הזו השתנתה.אימות
dart test test/patch_downloader_segmented_test.dart test/patch_downloader_test.dart --concurrency=1 --reporter=expanded— 99 עברו, שתי בדיקות ייעודיות ל־Windows דולגו ב־Linux.flutter analyze --no-pub— ללא שגיאות, אזהרות או הערות;flutter test --no-pub test/library_update/streaming_patch_downloader_test.dart --concurrency=1 --reporter=expanded— 9/9 עברו. גםpub get --offline --enforce-lockfileו־git diff --checkעברו.CI על הקומיט שפורסם
ב־
19aa2022עברו Analyze, Lockfile Guard, בניית Linux ו־Windows, בדיקות Windows, ארבעה מחמשת shards של Linux, Native updater ב־macOS, WebView2 חי ו־SQLite ב־Android. הריצה המלאה נשארת אדומה בגלל חמש בדיקות קיימות ב־shamor_zachor_focus_test.dartבלבד. אותן חמש נכשלו גם בבסיס לפני שינוי התלות; התיקון שלהן כבר נמצא ב־#4249. לא שונו או דולגו בדיקות כדי להסתיר אותן.גם בדיקת SQLite ב־macOS עברה: האפליקציה נבנתה וכל שש בדיקות האינטגרציה עברו. שני ניסיונות קודמים נעצרו לפני הבדיקות בגלל HTTP 504 בהורדת Sentry Cocoa ו־ONNX Runtime; הורצה מחדש רק עבודת macOS שנפגעה, ללא שינוי קוד.
חפיפות
בדיקת
git merge-tree --write-treeמול #3981, #3971, #4223 ו־#4269 עברה ללא קונפליקטים. יש חפיפה בקובצי התלויות, אך אף אחד מה־PRים האלה אינו משנה את ה־pin של ספריית העדכון. הענף מבוסס עלdevהנוכחי,bc398e690.אין לסגור את #4070 על סמך שינוי זה בלבד; מסלול יצירת WebView דורש בירור נפרד.