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 12:34:16 UTC

[PR] chore: camel-jbang - examples from the TUI run in their own directory; the Overview keeps its integrations visible [camel]

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

   _Claude Code on behalf of davsclaus_
   
   Two fixes found while running the camel-jbang examples from the TUI.
   
   ### Examples ran in the wrong directory
   The TUI started examples with `camel run --example=<name>`. That extracts (or downloads) the example to a temp directory, but the process keeps the directory of the TUI. An example that reads files relative to its own directory (`file:orders`, `inbox`...) found an auto-created empty directory and processed nothing: content-based-router, error-handling, the file and transform examples.
   
   `LaunchManager.launchDetached` now handles it for all three ways the TUI starts an example: the example browser (F2), the `tui_run_example` MCP tool and `/run --example=...` in the AI panel.
   - It extracts or downloads the example itself, off the UI thread.
   - It replaces `--example=name` with the example's files, plus `--name` unless one is given.
   - It starts the process in that directory.
   
   The pending launches are a concurrent queue now, as tool threads add to them.
   
   Plain `camel run --example=...` from a shell has the same problem when run from another directory. A JVM cannot change its working directory, so that needs a separate decision. Not changed here.
   
   ### The Overview lost its integrations table
   On a 34-row terminal, with an infra service running and the log pinned, the chart and info panel took all the height. The Integrations table showed only its top border. The table now keeps room for its header and a few rows first. The chart gets what is left, and is left out when that is too little.
   
   ### Tests
   - `LaunchManagerExampleTest`: the example found by name and short name; other commands are not examples; `--example` replaced by files and name.
   - `OverviewTabRenderTest`: three integrations, an infra service and the chart in a short area. The test fails before the fix.
   - The full module (1484) passes.
   - Checked live: content-based-router processes its 3 orders, and error-handling shows its retries, failures and the parked order.
   
   🤖 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 - examples from the TUI run in their own directory; the Overview keeps its integrations visible [camel]

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


-- 
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 - examples from the TUI run in their own directory; the Overview keeps its integrations visible [camel]

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

   <!-- ci-tested-modules -->
   :test_tube: **CI tested the following changed modules:**
   
   - `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** (1 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/ExampleBrowserPopup.java, dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/LaunchManager.java, dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/OverviewTab.java, dsl/camel-jbang/camel-jbang-plugin-tui/src/test/java/org/apache/camel/dsl/jbang/core/commands/tui/LaunchManagerExampleTest.java, dsl/camel-jbang/camel-jbang-plugin-tui/src/test/java/org/apache/camel/dsl/jbang/core/commands/tui/OverviewTabRenderTest.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 (3 modules, 1m 18s total)</summary>
   
   **Total reactor time:** 1m 18s
   
   | Module | Duration | Status |
   | --- | --- | --- |
   | Camel :: JBang :: Plugin :: TUI | 41.7s | SUCCESS |
   | Camel :: Launcher | 35.1s | SUCCESS |
   | Camel :: Launcher :: Container | 0.8s | SUCCESS |
   
   **Top 20 slowest modules:**
   - `Camel :: JBang :: Plugin :: TUI` (41.7s)
   - `Camel :: Launcher` (35.1s)
   - `Camel :: Launcher :: Container` (0.8s)
   
   </details>
   
   ---
   :gear: [View full build and test results](https://github.com/apache/camel/actions/runs/36862645462)


-- 
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 - examples from the TUI run in their own directory; the Overview keeps its integrations visible [camel]

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

   :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