make my last gCTS improvements more mature#174
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (4)
📝 WalkthroughWalkthroughThe PR enhances error reporting in the GCTS module by adding process context (name and ID) to exception messages. ChangesProcess Error Context Enhancement
Possibly Related PRs
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@sap/rest/gcts/remote_repo.py`:
- Around line 575-578: Update the docstring for Repository.messages to correct
the contract: state that when messages_params contains process the returned list
contains a single ActionMessage whose action-level payload is None (created as
ActionMessage(None, msglist)), and callers should not access the action payload
but read the populated process_messages instead; mention the ActionMessage
constructor pattern (ActionMessage(None, msglist)) and the process_messages
attribute to make locating the behavior clear.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 57e8a2ff-0b2a-46c3-b530-3b2faac751ba
📒 Files selected for processing (5)
sap/rest/gcts/errors.pysap/rest/gcts/remote_repo.pysap/rest/gcts/repo_task.pysap/rest/gcts/simple.pytest/unit/test_sap_rest_gcts.py
The comment did not explain the important part and had to confused the readers.
When GCTSProcessError propagates to the CLI error handler, str(ex) returns an empty string because the exception was initialized without a message. This leaves users with no indication of what went wrong and no way to correlate the failure with gCTS system logs for further investigation. Add process_name and process_id to GCTSProcessError so that the string representation tells the user which gCTS process failed and which log ID to look up in the system, e.g.: gCTS process CLONE failed (log id: ABC123) The change modifies "public" method signatures but that will hopefully not hurt anybody as the modified methods have been added quite recently.
71bdf13 to
dbf25e3
Compare
The API for reporting gCTS process errors was not sufficient and generated terrible User experience.