Skip to content

engine: GPL source check and web/Android patch pairs - #30

Merged
lowqen merged 2 commits into
mainfrom
engine/patch-source-checks
Dec 4, 2026
Merged

lowqen merged 2 commits into
mainfrom
engine/patch-source-checks

Conversation

@lowqen

@lowqen lowqen commented Nov 30, 2026

Copy link
Copy Markdown
Owner

엔진 패치 정리(C)의 Android 쪽입니다.

  • GPL 대응 소스 검사 (tools/check_engine_source.sh):
    • 빌드 스크립트가 컴파일하는 트리(upstream + Android CMake + RAPFI_PATCHES)를 컴파일러 없이 다시 만듭니다.
    • 그 트리를 ENGINE_VERSION.txt의 source가 가리키는 lowqen/rapfi 커밋과 바이트 단위로 비교합니다(android/ 폴더 제외). PGO 프로필도 같은지 봅니다.
    • 첫 실행에서 실제 어긋남을 찾았습니다: 게시된 Rapfi/CMakeLists.txt의 주석 두 줄이 줄어 있었습니다. 바이너리에는 영향이 없습니다. rapfi 1ab9c44가 바로잡고, source 줄이 그 커밋을 가리킵니다.
  • tools/android_cmake_patch.py: 빌드 스크립트 [4/7] 단계를 내용 그대로 파일로 뺐습니다. 검사와 빌드가 같은 코드를 씁니다. 엔진 바이트가 그대로인지는 engine-repro로 확인합니다.
  • engine-source.yml:
    • gpl 잡: 위 검사.
    • pairs 잡: Zenyth-web의 patch_pairs.py로 WASM 패치와의 짝 대조(Zenyth-web #56).
    • 패치, 프로필, 빌드 스크립트, ENGINE_VERSION이 바뀔 때와 매주 돕니다.

병합 전 할 일

  • lowqen/rapfi android에 1ab9c44 push가 필요합니다. 자동 모드에서 막혀서 사용자가 직접 실행합니다. 그 전까지 gpl 잡은 실패합니다.
  • pairs 잡은 Zenyth-web #56이 병합된 뒤에 통과합니다.

🤖 Generated with Claude Code

lowqen and others added 2 commits November 30, 2026 17:24
…eb engine

- tools/android_cmake_patch.py: step [4/7] of the build script, moved out of
  its heredoc unchanged so that the check below runs the very same code.
- tools/check_engine_source.sh: rebuilds the patched tree (upstream +
  Android CMake + RAPFI_PATCHES, no compiler) and compares it with the
  lowqen/rapfi commit ENGINE_VERSION.txt names, outside android/, and the
  PGO profile with android/rapfi-dotprod.profdata. Its first run found two
  shortened comments in the published Rapfi/CMakeLists.txt; rapfi 1ab9c44
  restores them, and the source line now names it.
- engine-source.yml runs that check and lowqen/Zenyth-web's
  tools/ci/patch_pairs.py (the WASM/Android patch pairs) whenever the
  patches, the profile, the build script or ENGINE_VERSION.txt change, and
  weekly. engine-repro also rebuilds when android_cmake_patch.py changes.
- docs/publishing.md §0: the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Step [4/7] runs inside $HOME/rapfi, where a path relative to BASH_SOURCE no
longer resolves; engine-repro caught it. TOOLS_DIR is fixed at the top,
like PATCH_DIR and PGO_DIR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lowqen
lowqen merged commit 06ad064 into main Dec 4, 2026
6 of 9 checks passed
@lowqen
lowqen deleted the engine/patch-source-checks branch December 4, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant