davsclaus opened a new pull request, #29398:
URL: https://github.com/apache/camel/pull/29398

   ## Description
   
   [CAMEL-26728](https://issues.apache.org/jira/browse/CAMEL-26728): W-7 of the 
stage 2 decisions on CAMEL-26607, what has been tried, so you know when a route 
is done.
   
   **Stacked on #29397** (W-6, what to try), which is on #29396. Retarget to 
main once those are merged.
   
   - A rule counts its faults per route (`ChaosRule.firedInRoute`, bounded to 
200 routes), at the hooks and for a lifecycle rule.
   - `ChaosAdvisor.kindOf(rule)`: the kind of fault of a rule, from its fault 
and where it acts: `errors`, `slow`, `lost` (a dropped send), `corrupt`, 
`duplicate`, `consumer` (polls, route entry), `lifecycle` (stall, lifecycle), 
`dead letter channel` (`at=dlq`).
   - The report has per route the kinds tried by the rules (current and 
removed) that fired there: the rules, their faults in the route, how the 
exchanges they faulted came out (recovered, handled, failed; counted per rule), 
their expectations, and the kinds the suggestions of W-6 offer for the route 
that no rule tried yet. The suggested kinds are read again at most every 10 s 
(or when the routes change), as the status reads the report every second.
   - Text: a `tried, per route:` section; JSON: `tried` (`route`, `kinds`, 
`notTried`); `camel get chaos --report`: a table (ROUTE, KIND, RULES, FIRED, 
OUTCOME, and the not tried yet row); `ChaosManager.suggest()` marks a 
suggestion whose kind was tried in its route (`tried`); the what to try list of 
the chaos screen (`w`) marks those and says what was tried in the route and 
what is not tried yet.
   
   Docs: new section "What has been tried" of the camel-chaos page (with an 
example), the CLI managing page, the chaos screen help, the TUI page, 
`design/chaos.adoc`.
   
   ## Tests
   
   - `ChaosTriedTest`: nothing tried yet lists what is left; after an error 
rule fired, the route has errors tried (rule, fired, recovered by redelivery) 
and the rest not tried; a suggestion of a kind tried already is marked; the 
kind of each sort of rule.
   - `ListChaosTest`: the tried table of `camel get chaos --report`.
   - `ChaosControlTest`: the what to try list shows what was tried in the route 
and what not.
   - camel-chaos: 782 green; TUI chaos and help tests 141 green.
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_012nJsFsjqqFiwroeHRWaKbS
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [PR] CAMEL-26728: camel-chaos... davsclaus (via GitHub) via commits

Reply via email to