← Back to Pull requests

add GetEthernetConfig.srv to handle ethernet details #63

Merged
fujitatomoya merged 4 files (72 lines) on Oct 06, 2026 02:46 UTC
View on GitHub
fujitatomoya fujitatomoya commented on Oct 05, 2026 05:24 UTC
Author

No description provided by author.

Diff: 72 lines (+70 / -2) across 4 files Reviewer: tr-motomura-akira Review duration: 1282m
All Vouch review confidence checks passed
Residual risk 0.06 = Change Risk (0.56) × (1 − Review Confidence (0.89)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.56 · 72 lines diff across 4 files
0.56
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.94 · 3 substantive comment(s)
0.94
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
88%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.257
Sensitive Paths sensitive_paths
0.056
Real PR Conversation Timeline
6 items
chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on code on Oct 05, 2026 05:26 UTC
Code Review
triorb_static_interface/srv/GetEthernetConfig.srv:1
@@ -0,0 +1,35 @@
+#**
+#* Copyright 2026 TriOrb Inc.
+#*
+#* Licensed under the Apache License, Version 2.0 (the "License");
+#* you may not use this file except in compliance with the License.
+#* You may obtain a copy of the License at
+#*
+#*     http://www.apache.org/licenses/LICENSE-2.0
+#*
+#* Unless required by applicable law or agreed to in writing, software
+#* distributed under the License is distributed on an "AS IS" BASIS,
+#* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#* See the License for the specific language governing permissions and
+#* limitations under the License.
+#**
+
+#==[Service] Get a saved Ethernet connection profile==
+# GUI API: GET /network/ethernet/config/{connection_id} -> ROS 2 service /network/ethernet/config/get
+# Backend: triorb-system-cored NetworkService.GetEthernetConfig
+# Read-only counterpart of SetEthernetConfig: returns the saved profile in the same
+# EthernetConfig shape so a client can edit it and send it back to /network/ethernet/config/set.
+# NetworkManager connection ID of the Ethernet profile to read.
+# Same value as GetNetworkConfig connections[].id and SetEthernetConfig response connection_id.
+# Must not be empty: an empty ID is rejected by the service (the profile is not derived from the interface).
+string connection_id

<sub><sub>!P2 Badge</sub></sub> Use a unique NetworkManager profile identifier

When a host has two Ethernet profiles with the same NetworkManager NAME, this request cannot identify which one to read: connection_id is explicitly the value from GetNetworkConfig connections[].id, and that field is a NAME rather than a UUID. NetworkManager's nmcli reference states that a connection ID can be ambiguous and provides UUID/path forms for disambiguation; callers therefore cannot reliably retrieve the intended profile from the list and the backend may select the wrong profile or reject the request. Expose and accept the profile UUID (or another unique identifier) instead. nmcli reference

Useful? React with 👍 / 👎.

chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Oct 05, 2026 05:26 UTC
Reviewer

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3dbcec1b1e

<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review

  • Mark a draft as ready

  • Comment "@codex review".
  • If Codex has suggestions, it will comment; otherwise it will react with 👍.

    When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

    </details>

    fujitatomoya fujitatomoya commented on code on Oct 05, 2026 05:46 UTC
    Code Review
    triorb_static_interface/srv/GetEthernetConfig.srv:1
    @@ -0,0 +1,35 @@
    +#**
    +#* Copyright 2026 TriOrb Inc.
    +#*
    +#* Licensed under the Apache License, Version 2.0 (the "License");
    +#* you may not use this file except in compliance with the License.
    +#* You may obtain a copy of the License at
    +#*
    +#*     http://www.apache.org/licenses/LICENSE-2.0
    +#*
    +#* Unless required by applicable law or agreed to in writing, software
    +#* distributed under the License is distributed on an "AS IS" BASIS,
    +#* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +#* See the License for the specific language governing permissions and
    +#* limitations under the License.
    +#**
    +
    +#==[Service] Get a saved Ethernet connection profile==
    +# GUI API: GET /network/ethernet/config/{connection_id} -> ROS 2 service /network/ethernet/config/get
    +# Backend: triorb-system-cored NetworkService.GetEthernetConfig
    +# Read-only counterpart of SetEthernetConfig: returns the saved profile in the same
    +# EthernetConfig shape so a client can edit it and send it back to /network/ethernet/config/set.
    +# NetworkManager connection ID of the Ethernet profile to read.
    +# Same value as GetNetworkConfig connections[].id and SetEthernetConfig response connection_id.
    +# Must not be empty: an empty ID is rejected by the service (the profile is not derived from the interface).
    +string connection_id

    i think this is primary problem for NetworkManager in the host system, that can have the same profile names. I really do not think this could be a problem, because the system checks the availability with Network manager, and add the connection id if there is not. with this process, there will be no duplicated connection_id in the NetworkManager in our use case.

    TriorbKumagaiKazuki TriorbKumagaiKazuki commented on Oct 06, 2026 00:29 UTC
    Contributor

    @MasakazuTobeta @tr-motomura-akira
    マージ問題ないと思います。(ROS2 Typesは本村さんマージ担当で良かったですかね?)

    ---
    レビュー依頼: @TriorbKumagaiKazuki
    マージ依頼: @tr-motomura-akira
    プロセス状態:新規実装
    タスクリンク:GUIからEtherのプロファイル取得機能APIを追加したい
    詳細:特になし

    tr-motomura-akira tr-motomura-akira approved these changes on Oct 06, 2026 02:22 UTC
    Approved Reviewer

    確認しました。

    Assignees
    fujitatomoya fujitatomoya
    Labels
    risk: low confidence: 88.7% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 56.2% (MEDIUM) · Higher = larger blast radius
    56.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 88.7% · Lower = rushed or shallow review
    88.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 6.3% · Safe to merge
    6.3%