This commit is contained in:
1 parent
15a968a2f7
commit
b52921e171
38 files changed
+564
-2956
No files matched your search
+6
-13
@@ -7,9 +7,14 @@ from datetime import datetime, timezone
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
COMMIT = '962fb850324b79bbe5480e1c2087d98f83a60917'
|
||||
REPOSITORY = 'reyandme/kam_remake'
|
||||
VERSION = '0.4.0'
|
||||
CPUS = {'aarch64': ('arm64-v8a', 183, 2, 8), 'arm': ('armeabi-v7a', 40, 1, 4),
|
||||
'x86_64': ('x86_64', 62, 2, 8)}
|
||||
CURRENT_OUTPUT_DIR = ROOT / 'out/current'
|
||||
CURRENT_BUILD_METADATA = CURRENT_OUTPUT_DIR / 'build.json'
|
||||
CURRENT_PACKAGE_METADATA = CURRENT_OUTPUT_DIR / 'package.json'
|
||||
CURRENT_APK = CURRENT_OUTPUT_DIR / 'kam-mobile.apk'
|
||||
CURRENT_BUILD_SCHEMA = 'kam-android-build/2'
|
||||
CURRENT_PACKAGE_SCHEMA = 'kam-android-package/1'
|
||||
|
||||
class ProbeError(RuntimeError):
|
||||
pass
|
||||
@@ -66,15 +71,3 @@ def first_errors(log: str, limit: int = 12) -> list[str]:
|
||||
rows = [s.strip() for s in log.splitlines() if re.search(
|
||||
r'\b(fatal|error|undefined reference|cannot find|can.t find|not found)\b', s, re.I)]
|
||||
return rows[:limit]
|
||||
|
||||
def classify(log: str) -> str:
|
||||
"""Triage hint, never an automatic decision to rewrite a subsystem."""
|
||||
if re.search(r'cannot find.*(ppcross|ppca64|ppcarm)|compiler.*not found|SDK.*not found', log, re.I):
|
||||
return 'TOOLCHAIN'
|
||||
if re.search(r"can.t find unit (Windows|Forms|Controls|Graphics|LCL\w*|Dialogs|ShellAPI)", log, re.I):
|
||||
return 'PLATFORM_BOUNDARY'
|
||||
if re.search(r'undefined reference|cannot find -l|error while linking', log, re.I):
|
||||
return 'NATIVE_LINK_DEPENDENCY'
|
||||
if re.search(r"can.t find unit|cannot open include file", log, re.I):
|
||||
return 'SOURCE_OR_PACKAGE_DEPENDENCY'
|
||||
return 'SOURCE_OR_TOOLCHAIN_REVIEW'
|
||||
Reference in new issue
Block a user