You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/03/24 09:38:12 UTC
[PR] Fix detect-dependencies action failing with shallow clones [camel]
gnodet opened a new pull request, #22223:
URL: https://github.com/apache/camel/pull/22223
## Summary
The `detect-dependencies` action (used to detect which components are affected by parent/pom.xml property changes, typically from Dependabot PRs) was silently failing because it used `git diff main...HEAD` which requires the merge base — unavailable in the CI's shallow clone (`fetch-depth: 1`).
This caused the script to always exit with "parent/pom.xml not changed, nothing to do", even when parent/pom.xml was the only changed file (e.g. [#22214](https://github.com/apache/camel/pull/22214)).
### Changes
- **`detect-test.sh`**: Replace `git diff`/`git fetch` with GitHub API diff endpoint (`GET /repos/{repo}/pulls/{id}` with `Accept: application/vnd.github.v3.diff`), consistent with how `incremental-build.sh` works. Extract the `parent/pom.xml` section from the full PR diff using awk.
- **`action.yaml`**: Replace `base-ref` input with `pr-id` (required) and `github-repo` (optional, defaults to `apache/camel`). Update script invocation.
- **`pr-build-main.yml`**: Pass `pr-id` and `github-repo` to the action.
--
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] Fix detect-dependencies action failing with shallow clones [camel]
Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet merged PR #22223:
URL: https://github.com/apache/camel/pull/22223
--
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] Fix detect-dependencies action failing with shallow clones [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22223:
URL: https://github.com/apache/camel/pull/22223#issuecomment-4116735238
: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 `build-all`, `build-dependents`, `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