Skip to content

Conversation

@sileht
Copy link
Member

@sileht sileht commented Oct 31, 2025

The error may not be a json message or the json message may not
contains message/errors attributes.

This change make the logging more generic and just print the HTTP
response.

The error may not be a json message or the json message may not
contains message/errors attributes.

This change make the logging more generic and just print the HTTP
response.

Change-Id: I8fdbd8000f6bd3135705852a5eb7943d4d9d9199
Copilot AI review requested due to automatic review settings October 31, 2025 12:57
@mergify mergify bot deployed to Mergify Merge Protections October 31, 2025 12:57 Active
@mergify
Copy link
Contributor

mergify bot commented Oct 31, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 🤖 Continuous Integration

Wonderful, this rule succeeded.
  • all of:
    • check-success=ci-gate

🟢 👀 Review Requirements

Wonderful, this rule succeeded.
  • any of:
    • #approved-reviews-by>=2
    • author = dependabot[bot]
    • author = mergify-ci-bot
    • author = renovate[bot]

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?:

🟢 🔎 Reviews

Wonderful, this rule succeeded.
  • #changes-requested-reviews-by = 0
  • #review-requested = 0
  • #review-threads-unresolved = 0

🟢 📕 PR description

Wonderful, this rule succeeded.
  • body ~= .{48,}

@mergify
Copy link
Contributor

mergify bot commented Oct 31, 2025

🧪 CI Insights

Here's what we observed from your CI run for ac2d4cb.

🟢 All jobs passed!

But CI Insights is watching 👀

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the HTTP error handling in check_for_status() to simplify the error reporting logic and remove the explicit sys.exit(1) call, instead relying on response.raise_for_status() to propagate exceptions.

  • Removed special handling for 4xx status codes and now treats all HTTP errors (4xx and 5xx) uniformly
  • Simplified error message display to show raw response text instead of parsing JSON and extracting specific fields
  • Removed the sys import as it's no longer needed

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mergify mergify bot requested a review from a team October 31, 2025 13:00
@mergify
Copy link
Contributor

mergify bot commented Oct 31, 2025

Queue status

✅ The pull request has been merged

This pull request spent 5 seconds in the queue and **** waiting for CI.

Required conditions to merge

@mergify mergify bot merged commit f709ff4 into main Oct 31, 2025
16 checks passed
@mergify mergify bot deleted the devs/sileht/cli-base-head/I8fdbd8000f6bd3135705852a5eb7943d4d9d9199 branch October 31, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants