Skip to content

Conversation

@sevendev
Copy link
Contributor

@sevendev sevendev commented Sep 25, 2025

🔗 関連リンク

https://synesthesias.atlassian.net/browse/CPSDK25-233

✅ レビュー前確認項目

  • 自動ビルド・テストが通っていること

✅ マージ前確認項目

  • (libcitygmlの変更がある場合)libcitygmlがmasterの最新版になっていること

🚀 実装内容

マルチバイト対応
path.string() => path.u8string()に変更。

🌐 影響範囲

C++ラッパー

🛠️ 動作確認

日本語ユーザ名のWindowsアカウントを使用して地図選択画面を開いた際に地図が表示されること(エラーがでないこと)

⚠️ 懸念点

Summary by CodeRabbit

  • バグ修正

    • ファイルパスの文字列表現をUTF-8へ変更し、ベクトルタイル保存先で非ASCII/多言語文字をより正しく扱えるよう改善(特にWindows上のパス関連問題を低減)。
  • 雑務

    • CIにmacOS向けのCMakeセットアップとバージョン確認手順を追加し、macOSでのビルド安定性を向上。iOS関連のOS判定文字列も修正。

@coderabbitai
Copy link

coderabbitai bot commented Sep 25, 2025

Walkthrough

C++ラッパーでcalcDestinationPath(index)の戻りを.string()から.u8string()へ変更。GitHub ActionsワークフローにmacOS向けのCMakeインストール(lukka/get-cmake@latest)とcmake --version検証ステップを追加し、macOS判定文字列を修正(iOS関連)。公開APIや制御フローに影響なし。

Changes

Cohort / File(s) Change Summary
C++ ラッパー: 文字列エンコード出力
src/c_wrapper/vector_tile_downloader_c.cpp
plateau_vector_tile_downloader_calc_destination_path呼び出しで引数をhandle->calcDestinationPath(index).string()から...u8string()へ変更。呼び出し構造・エラーハンドリングは不変。
CI ワークフロー: macOS 用 CMake セットアップと判定修正
.github/actions/build/action.yml, .github/actions/upload-mobile-dlls/action.yml
macOS専用のCMakeインストールステップ(lukka/get-cmake@latest, cmakeVersion: '3.27.x')とcmake --version検証ステップを追加。runner.osによるmacOS判定を'macOS'に修正(iOS関連ステップ)。既存のWindows/Linux処理に影響なし。

Sequence Diagram(s)

sequenceDiagram
    autonumber
    participant Runner as GitHub Runner (macOS)
    participant GetCMake as lukka/get-cmake Action
    participant Shell as Shell
    Note over Runner,GetCMake: macOS CIの追加ステップ
    Runner->>GetCMake: install CMake (3.27.x)
    GetCMake-->>Runner: CMake installed
    Runner->>Shell: run `cmake --version`
    Shell-->>Runner: version output (validated)
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

ぽかぽかの草むらでパスを嗅ぐよ
u8のそよ風が文字を運ぶ
CIは朝の一歩を確かめて
小さな修正が線路をつなぎ
さあ、跳ねてマージへ行こう 🐇✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title Check ✅ Passed タイトルはマルチバイトユーザ名環境で発生する地図表示問題の修正を端的に示しており、変更内容の主要点を的確に反映しています。
Description Check ✅ Passed PR説明はテンプレートの各セクションを正しく含み、関連リンク、レビュー前/マージ前確認項目、実装内容、影響範囲、動作確認、懸念点見出しも用意されているため要件を満たしています。
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/map_download_with_2byte_username

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 238e96c and 494c0e7.

📒 Files selected for processing (1)
  • .github/actions/upload-mobile-dlls/action.yml (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/actions/upload-mobile-dlls/action.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: build-and-test (macos-14, arm64)
  • GitHub Check: build-and-test (ubuntu-24.04, x86_64)
  • GitHub Check: build-and-test (windows-2022, x86_64)
  • GitHub Check: check-submodule-license

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
.github/actions/build/action.yml (1)

92-105: .github/actions/build/action.yml の -DCMAKE_POLICY_VERSION_MINIMUM=3.5 を削除
このオプションは CMake の既知オプションではなく no-op(キャッシュ変数にすぎません)。ポリシー固定は CMakeLists.txt 側で cmake_minimum_required(VERSION 3.8)cmake_policy(SET CMP0076 NEW) などを使うか、CLI で -DCMAKE_POLICY_DEFAULT_CMP0077=NEW 等で設定し、Unity と Unreal 両構成で整合を取ってください。

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b8911fb and a5c6587.

📒 Files selected for processing (1)
  • .github/actions/build/action.yml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: build-and-test (windows-2022, x86_64)
  • GitHub Check: check-submodule-license
  • GitHub Check: build-and-test (ubuntu-24.04, x86_64)

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a5c6587 and df25bcf.

📒 Files selected for processing (1)
  • .github/actions/build/action.yml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: build-and-test (ubuntu-24.04, x86_64)
  • GitHub Check: check-submodule-license
  • GitHub Check: build-and-test (macos-14, arm64)
  • GitHub Check: build-and-test (windows-2022, x86_64)

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 035393e and 9cf9d04.

📒 Files selected for processing (1)
  • .github/actions/build/action.yml (2 hunks)
🧰 Additional context used
🪛 GitHub Actions: Build and Test
.github/actions/build/action.yml

[error] 48-48: Unexpected value 'shell' in action.yml. Syntax error in GitHub Action definition.

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: check-submodule-license

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 65ef1b8 and 238e96c.

📒 Files selected for processing (1)
  • .github/actions/upload-mobile-dlls/action.yml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: upload-dlls (ubuntu-24.04, x86_64)
  • GitHub Check: upload-dlls (macos-14, x86_64)
  • GitHub Check: upload-dlls (macos-14, arm64)
  • GitHub Check: upload-dlls (windows-2022, x86_64)
  • GitHub Check: upload_mobile_dlls (macos-14, 33, 30.0.3, 23.1.7779620)
  • GitHub Check: upload_mobile_dlls (ubuntu-latest, 33, 30.0.3, 23.1.7779620)
  • GitHub Check: build-and-test (windows-2022, x86_64)
  • GitHub Check: build-and-test (macos-14, arm64)
  • GitHub Check: build-and-test (ubuntu-24.04, x86_64)
  • GitHub Check: check-submodule-license

@sevendev sevendev merged commit c4efbd1 into dev/v4 Sep 30, 2025
5 checks passed
@sevendev sevendev deleted the fix/map_download_with_2byte_username branch September 30, 2025 00:04
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.

2 participants