Repository navigation
fix(ci,build): repair v2.1.0 Windows installer build and CI test failures - #6
Merged
Merged
Conversation
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…output
The v2.1.0 release build failed at the 'Build Setup.exe with Inno Setup' step,
so the artifact upload and the release attach were skipped. installer.iss pointed to
a non-existent icon (assets/faster_pc.ico), packaged a non-existent folder
(dist/Faster PC/*) although the spec produces a single-file dist/FasterPC.exe, and
referenced the exe under the wrong name ('Faster PC.exe').
- installer.iss: correct icon, exe name and [Files] source; add AppVerName and
UninstallDisplayIcon.
- build-windows.yml: compile the installer with a hard failure (PATH fallback for
ISCC), and also run the Windows build on pull requests so release tags cannot fail.
- version_info.txt: stamp the exe as 2.1.0.0 instead of 2.0.0.0.
- build_exe.bat: optionally compile the Setup.exe when Inno Setup is installed.
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
test_list_running_apps_returns_current_process asserted that some running app name starts with 'python'. When pytest is launched through its console script on Linux, psutil reports the process as 'pytest', so the test failed on CI runners that had no other python* process (both CI jobs on main failed, 2026-11-25). Matching on the PID is launch-method independent. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…cons - LoginWindow._lock(): the countdown QTimer was never stopped, so after the lock expired it kept firing every second and cleared any new error message shown by the form. It is now kept on the window and stopped when the lock ends (regression test). - handle_register() ended with a stray 'Login temporarily locked' warning that had been displaced from _lock(); moved back. - Remove the dead first_run_wizard_required() helper (the wizard flow was replaced by the default admin in 2.1) and refresh the module docstrings. - Processes table: skip icon lookups for UNC/network exe paths that can block the UI. - Add a test that ensure_default_admin() is idempotent. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
The .bat scripts echo UTF-8 Arabic text but never switched the console to UTF-8 (mojibake on Windows consoles); the .ps1 scripts had no BOM, so Windows PowerShell 5.1 decoded their Arabic messages/shortcut description as ANSI. Added 'chcp 65001' and a UTF-8 BOM respectively. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…2.1.0 changes README/docs still described the first-run wizard that 2.1 replaced with a default admin account, the badge still showed 2.0.0, and the CHANGELOG had no 2.1.0 entry. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
yswef
marked this pull request as ready for review
November 30, 2026 22:18
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.
ملخص
يصلح هذا الطلب فشل بناء الإصدار v2.1.0 وفشل اختبارات CI على main، مع معالجة مشاكل محتملة مرافقة.
1) فشل بناء الإصدار v2.1.0 — خطوة
Build Setup.exe with Inno Setupالسبب الجذري:
packaging/installer.iss(أُضيف في #4) لا يطابق مخرجات البناء الفعلية:SetupIconFile=..\assets\faster_pc.ico→ الملف غير موجود (الحقيقيapp_icon.ico).[Files] Source: ..\dist\Faster PC\*→ المجلد غير موجود؛faster_pc.specيبني ملفًا واحدًاdist\FasterPC.exe.MyAppExeName "Faster PC.exe"→ الاسم الخاطئ (الصحيحFasterPC.exe)، فكل اختصارات[Icons]/[Run]تشير لملف غير موجود.الإصلاح: تصحيح المسارات/الأسماء، وجعل الخطوة تفشل برسالة واضحة (
pwshمع بحث عن ISCC)، وتشغيل بناء ويندوز على كل PR حتى لا يفشل الإصدار متأخرًا، وتحديثversion_info.txtإلى 2.1.0.0، ودعم بناء Setup.exe اختياريًا منbuild_exe.bat.✅ تم التحقق: سير العمل
Build Windows executableعلى هذا الفرع أكمل كل الخطوات بنجاح (مخرج 97 MB يتضمنFasterPC.exeوFaster-PC-Setup.exe).2) فشل اختبارات CI على لينكس (main و #5)
السبب الجذري:
test_list_running_apps_returns_current_processيفترض أن اسم العملية الحالية يبدأ بـpython. عند تشغيلpytestكسكربت مباشر على لينكس يكون الاسمpytest، ففشل الاختبار على كل runner لا توجد عليه عمليةpython*أخرى (ونجح على ويندوز لأنpytest.exeيشغّلpython.exeكعملية ابن).الإصلاح: المطابقة بالـ PID. ✅ CI أخضر على 3.11 و3.12.
3) مشاكل محتملة أُصلحت
LoginWindow._lock(): مؤقت العد التنازلي لا يتوقف بعد انتهاء القفل → كان سيستمر بمحو أي رسالة خطأ جديدة كل ثانية. أُصلح مع اختبار انحدار.logger.warning("Login temporarily locked…")كان مُزاحًا إلى نهايةhandle_register()(يُسجَّل خطأً عند إغلاق حوار إنشاء الحساب) — أُعيد لمكانه.first_run_wizard_requiredالميتة وتحديث التوثيقات الداخلية بعد إلغاء المعالج.chcp 65001في.batوBOM في.ps1حتى تظهر الرسائل العربية بشكل صحيح.ملاحظة أمنية (لم تُغيَّر لأنها قرار تصميمي في 2.1)
حساب الأدمن الافتراضي
yswef / yswef1234ثابت في المصدر ويُعاد إنشاؤه عند كل تشغيل، ولا توجد واجهة لتغيير كلمة المرور — يُنصح بإنشائه في أول تشغيل فقط + إضافة تغيير كلمة المرور.للنشر
بعد الدمج: إعادة توجيه الـ tag إلى commit الدمج (
git tag -f v2.1.0 <merge> && git push -f origin v2.1.0) أو إنشاءv2.1.1، وسير عمل البناء سيرفعFasterPC.exeوFaster-PC-Setup.exeإلى الإصدار تلقائيًا.