You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "zjncs (via GitHub)" <gi...@apache.org> on 2026/10/09 02:52:45 UTC

[PR] test(ai): pin the LLM gateway exception defaults [rocketmq-dashboard]

zjncs opened a new pull request, #5750:
URL: https://github.com/apache/rocketmq-dashboard/pull/5750

   ### What
   
   `LlmGatewayException` — the typed failure of the LLM gateway path — had no test. This adds `LlmGatewayExceptionTest` with 4 tests.
   
   ### What is pinned
   
   - the message-only constructor **defaults to 502 `llm.gateway_error`** — that code is what the AI layer recognises as a gateway-level problem rather than a provider verdict;
   - the cause overload keeps the gateway defaults and chains the cause;
   - a typed failure carries its own status code, machine code and hint;
   - the full constructor chains the cause alongside the code.
   
   ### Verification
   
   - New tests on unmodified code: **4/4 green**, checkstyle clean (`mvn test -Dtest=LlmGatewayExceptionTest`).
   - Discriminating mutations on `LlmGatewayException`, build result verified red each time:
     1. the convenience default code changed — red;
     2. the cause chain dropped from the overload — red;
     3. the typed status code hardcoded to 502 so a 429 rate limit reads as a gateway fault — red.
   - Restored: 4/4 green. Test-only change; no product code touched.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] test(ai): pin the LLM gateway exception defaults [rocketmq-dashboard]

Posted by "github-actions[bot] (via GitHub) via commits" <co...@rocketmq.apache.org>.
github-actions[bot] closed pull request #5750: test(ai): pin the LLM gateway exception defaults
URL: https://github.com/apache/rocketmq-dashboard/pull/5750


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] test(ai): pin the LLM gateway exception defaults [rocketmq-dashboard]

Posted by "github-actions[bot] (via GitHub) via commits" <co...@rocketmq.apache.org>.
github-actions[bot] commented on PR #5750:
URL: https://github.com/apache/rocketmq-dashboard/pull/5750#issuecomment-6782917925

   This pull request has been automatically closed because there has been no activity for 7 days. If you would like to continue working on this, please reopen the PR with updated changes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org