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

[PR] chore: camel-jbang - TUI Source tab shows the live run data of the running integration on its lines [camel]

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

   _Claude Code on behalf of davsclaus_
   
   While the integration runs, the Source tab shows, at the end of each line, what the processors on it do:
   - the exchanges they handled: `● 79`;
   - how many failed: `✗ 10`, in red;
   - their mean time, when it is 1 ms or more.
   
   The numbers follow the running integration, so the source reads as a heat map of the route: where the messages go, and where they fail. Tested live on a timer route with a filter and a `throwException`:
   
   ```
    7 |        from("timer:tick?period=500")  ● 79 ✗ 10
    9 |            .setBody(simple("${random(10)}"))  ● 79
   10 |            .filter(simple("${body} > 3"))  ● 79
   11 |                .to("log:big?level=OFF")  ● 52
   13 |            .choice()  ● 79 ✗ 10
   15 |                    .throwException(new IllegalStateException("nine"))  ● 10 ✗ 10
   17 |            .to("log:tick?level=OFF");  ● 69
   ```
   
   ### How
   - The status the TUI polls already has every route's processors with their statistics. `StatusParser` now also keeps each processor's source location (`source`, `file:line`, which `camel run` records).
   - `LiveRunLines` adds up, per line of the file shown, what the processors on that line did. Totals and failures are summed, and the mean time is weighted by the exchanges. The route itself goes on its `from` line.
   - The viewer draws it after the jump links. It reads the data at most once a second.
   
   Nothing changes for a project that is not running, and plain mode (`p`) leaves it out.
   
   New test: `LiveRunLinesTest`. The full TUI module (1459) passes. F1 help and the TUI doc page are updated.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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@camel.apache.org

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


Re: [PR] chore: camel-jbang - TUI Source tab shows the live run data of the running integration on its lines [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27189:
URL: https://github.com/apache/camel/pull/27189#issuecomment-5928447058

   <!-- ci-tested-modules -->
   :test_tube: **CI tested the following changed modules:**
   
   - `docs`
   - `dsl/camel-jbang/camel-jbang-plugin-tui`
   
   ---
   
   <details><summary>:microscope: Scalpel shadow comparison — Scalpel: 2 of 697 tested, 1 compile-only — current: 2 all tested</summary>
   
   [Maveniverse Scalpel](https://github.com/maveniverse/scalpel) detected **2 affected modules** (current approach: 2).
   
   **Skip-tests mode would test 2 modules** (2 direct + 1 downstream), **skip tests for 1** (generated code, meta-modules)
   
   <details><summary>Modules Scalpel would test (2)</summary>
   
   - `camel-jbang-plugin-tui` ← dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/LiveRunLines.java, dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/ProcessorInfo.java, dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/SourceTab.java, dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/SourceViewer.java, dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/StatusParser.java, dsl/camel-jbang/camel-jbang-plugin-tui/src/main/resources/tui/help/source.md, dsl/camel-jbang/camel-jbang-plugin-tui/src/test/java/org/apache/camel/dsl/jbang/core/commands/tui/LiveRunLinesTest.java
   - `camel-launcher-container` ← downstream of org.apache.camel:camel-launcher
   
   </details>
   
   <details><summary>Modules with tests skipped (1)</summary>
   
   - `camel-launcher`
   
   </details>
   
   > :information_source: Shadow mode — Scalpel observes but does not affect test execution. [Learn more](https://github.com/maveniverse/scalpel)
   
   </details>
   
   <details><summary>All tested modules (4 modules, 1m 43s total)</summary>
   
   **Total reactor time:** 1m 43s
   
   | Module | Duration | Status |
   | --- | --- | --- |
   | Camel :: JBang :: Plugin :: TUI | 45.7s | SUCCESS |
   | Camel :: Launcher | 36.0s | SUCCESS |
   | Camel :: Docs | 20.3s | SUCCESS |
   | Camel :: Launcher :: Container | 0.8s | SUCCESS |
   
   **Top 20 slowest modules:**
   - `Camel :: JBang :: Plugin :: TUI` (45.7s)
   - `Camel :: Launcher` (36.0s)
   - `Camel :: Docs` (20.3s)
   - `Camel :: Launcher :: Container` (0.8s)
   
   </details>
   
   ---
   :gear: [View full build and test results](https://github.com/apache/camel/actions/runs/36839968462)


-- 
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@camel.apache.org

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


Re: [PR] chore: camel-jbang - source editor shows live run data of the running integration per line [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #27189:
URL: https://github.com/apache/camel/pull/27189


-- 
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@camel.apache.org

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


Re: [PR] chore: camel-jbang - TUI Source tab shows the live run data of the running integration on its lines [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27189:
URL: https://github.com/apache/camel/pull/27189#issuecomment-5928201952

   :star2: Thank you for your contribution to the Apache Camel project! :star2:
     :robot: CI automation will test this PR automatically.
   
     :camel: Apache Camel Committers, please review the following items:
   
     * First-time contributors **require MANUAL approval** for the GitHub Actions to run
     * You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
     * You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
     * Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
     
     :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
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@camel.apache.org

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