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/16 21:18:06 UTC
[PR] CAMEL-23688: camel-jbang - Tests for camel catalog kamelet [camel]
davsclaus opened a new pull request, #27977:
URL: https://github.com/apache/camel/pull/27977
Twelfth batch of [CAMEL-23688](https://issues.apache.org/jira/browse/CAMEL-23688) (test coverage of the CLI commands): `camel catalog kamelet` (19% line coverage before). Only its sort was tested, as the command downloads the Kamelet catalog from Maven.
### Tests
- `CatalogKameletListTest` (new): the listing with a few Kamelets instead of the download (the download is now the method `loadKamelets()`, which a test replaces): the table with the first sentence of each description, `--type` in any case, `--filter` by name or description, a filter that matches nothing, JSON (and `[]`), and a catalog that cannot be downloaded (exit `1`).
### Bugs the tests found
- **`--filter`** failed with a `NullPointerException` (exit `70`) when a Kamelet of the catalog has no description (the existing sort test has such a Kamelet).
- **An unknown `--type`**, such as `sources`, showed nothing; now a usage error (`2`) that lists `source`, `sink` and `action`.
- **A `--filter` that matched nothing** printed nothing; it says so on stderr (`No results for filter: ...`), as the other `camel catalog` commands do.
The command also has `--json` now, as the other `camel catalog` commands (`[]` when nothing matches), so a script or an AI agent gets the Kamelets the same way as the components. The command docs are regenerated, and the user-visible changes are in the 4.24 upgrade guide.
`mvn test` of the catalog kamelet and sort tests of camel-jbang-core: all pass.
_Claude Code on behalf of davsclaus_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01DDRLJAyf8cDXSg8iX785My
--
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] CAMEL-23688: camel-jbang - Tests for camel catalog kamelet [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27977:
URL: https://github.com/apache/camel/pull/27977#issuecomment-6224895382
: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
Re: [PR] CAMEL-23688: camel-jbang - Tests for camel catalog kamelet [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #27977:
URL: https://github.com/apache/camel/pull/27977
--
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] CAMEL-23688: camel-jbang - Tests for camel catalog kamelet [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #27977:
URL: https://github.com/apache/camel/pull/27977#issuecomment-6225345387
<!-- ci-tested-modules -->
:test_tube: **CI tested the following changed modules:**
- `docs`
- `dsl/camel-jbang/camel-jbang-core`
:repeat: **1 test passed only after a retry on JDK 25** (1 retried attempt)
<details><summary>Recovered flaky tests on JDK 25 (1)</summary>
| Module | Test | Failed attempts | First failure |
| --- | --- | --- | --- |
| `dsl/camel-jbang/camel-jbang-plugin-tui` | `LaunchManagerOutcomeTest.startedWhenTheStatusFileSaysSo` | 1 | expected: null but was: LaunchOutcome[ok=false, log=null] |
> :information_source: These tests did **not** fail the build. Surefire retried them and they passed.
> Retries are enabled project-wide by `surefire.rerunFailingTestsCount` in `parent/pom.xml`.
</details>
---
<details><summary>:microscope: Scalpel shadow comparison — Scalpel: 5 of 706 tested, 8 compile-only — current: 5 all tested</summary>
[Maveniverse Scalpel](https://github.com/maveniverse/scalpel) detected **5 affected modules** (current approach: 5).
**Skip-tests mode would test 5 modules** (2 direct + 5 downstream), **skip tests for 8** (generated code, meta-modules)
<details><summary>Modules Scalpel would test (5)</summary>
- `camel-jbang-mcp` ← downstream of org.apache.camel:camel-jbang-core
- `camel-jbang-plugin-mcp` ← downstream of org.apache.camel:camel-jbang-core
- `camel-jbang-plugin-tui` ← downstream of org.apache.camel:camel-jbang-core
- `camel-jbang-plugin-validate` ← downstream of org.apache.camel:camel-jbang-core
- `camel-launcher-container` ← downstream of org.apache.camel:camel-launcher
</details>
<details><summary>Modules with tests skipped (8)</summary>
- `camel-jbang-it`
- `camel-jbang-main`
- `camel-jbang-plugin-edit`
- `camel-jbang-plugin-generate`
- `camel-jbang-plugin-kubernetes`
- `camel-jbang-plugin-test`
- `camel-launcher`
- `coverage`
</details>
> :information_source: Shadow mode — Scalpel observes but does not affect test execution. [Learn more](https://github.com/maveniverse/scalpel)
</details>
:warning: **Some tests are disabled on GitHub Actions** (`@DisabledIfSystemProperty(named = "ci.env.name")`) and require manual verification:
- `dsl/camel-jbang/camel-jbang-core`: 2 test(s) disabled on GitHub Actions
:bulb: **Manual integration tests recommended:**
> You modified `dsl/camel-jbang/camel-jbang-core`. The related integration tests in `dsl/camel-jbang/camel-jbang-it` are excluded from CI. Consider running them manually:
> ```
> mvn verify -f dsl/camel-jbang/camel-jbang-it -Djbang-it-test
> ```
<details><summary>All tested modules (15 modules, 3m 9s total)</summary>
**Total reactor time:** 3m 9s
| Module | Duration | Status |
| --- | --- | --- |
| Camel :: Launcher | 47.5s | SUCCESS |
| Camel :: JBang :: MCP | 41.3s | SUCCESS |
| Camel :: JBang :: Plugin :: Validate | 37.5s | SUCCESS |
| Camel :: Docs | 21.3s | SUCCESS |
| Camel :: JBang :: Plugin :: Testing | 16.1s | SUCCESS |
| Camel :: JBang :: Plugin :: Kubernetes | 15.3s | SUCCESS |
| Camel :: JBang :: Plugin :: MCP | 2.5s | SUCCESS |
| Camel :: Coverage | 1.7s | SUCCESS |
| Camel :: JBang :: Plugin :: Generate | 1.5s | SUCCESS |
| Camel :: JBang :: Plugin :: Edit | 1.5s | SUCCESS |
| Camel :: JBang :: Integration tests | 1.1s | SUCCESS |
| Camel :: JBang :: Main | 0.8s | SUCCESS |
| Camel :: Launcher :: Container | 0.8s | SUCCESS |
| Camel :: JBang :: Core | n/a | |
| Camel :: JBang :: Plugin :: TUI | n/a | |
**Top 20 slowest modules:**
- `Camel :: Launcher` (47.5s)
- `Camel :: JBang :: MCP` (41.3s)
- `Camel :: JBang :: Plugin :: Validate` (37.5s)
- `Camel :: Docs` (21.3s)
- `Camel :: JBang :: Plugin :: Testing` (16.1s)
- `Camel :: JBang :: Plugin :: Kubernetes` (15.3s)
- `Camel :: JBang :: Plugin :: MCP` (2.5s)
- `Camel :: Coverage` (1.7s)
- `Camel :: JBang :: Plugin :: Generate` (1.5s)
- `Camel :: JBang :: Plugin :: Edit` (1.5s)
- `Camel :: JBang :: Integration tests` (1.1s)
- `Camel :: JBang :: Main` (0.8s)
- `Camel :: Launcher :: Container` (0.8s)
</details>
---
:gear: [View full build and test results](https://github.com/apache/camel/actions/runs/38968405551)
--
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