You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "brianfeucht (via GitHub)" <gi...@apache.org> on 2026/05/29 17:35:05 UTC
[I] [Bug][Rootly] Incidents without service tags are silently dropped during collection [incubator-devlake]
brianfeucht opened a new issue, #8891:
URL: https://github.com/apache/incubator-devlake/issues/8891
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
### What happened
Description:
The Rootly plugin collects incidents by filtering per-service using filter[service_ids]. However, in practice many (or all) Rootly incidents are created without service associations. This causes three compounding issues that silently discard valid incidents:
Bug 1 — Collector always sends service filter
buildIncidentsQuery always appends filter[service_ids]=<serviceId> to every API request. The Rootly API returns 0 results for incidents with no service tag, so untagged incidents are never stored in the raw table.
Bug 2 — ValidateTaskOptions rejects empty ServiceId
There is no way to trigger a global (unfiltered) collection because an empty serviceId returns a validation error: "not enough info for Rootly execution".
Bug 3 — Extractor service-membership guard drops incidents when ServiceId is empty
In extractRootlyIncident, there is a safety check that filters out any incident whose service list doesn't contain the current ServiceId. When ServiceId == "", containsServiceId always returns false, so any incident that does have service relationships attached gets dropped as a false positive.
Impact:
- Any incident not tagged with a specific service is permanently lost — never reaches the tool layer or domain layer
### What do you expect to happen
Allow ServiceId to be empty (opt-in global collection)
Skip filter[service_ids] in buildIncidentsQuery when ServiceId is empty
Skip the extractor service-membership guard when collecting globally
### How to reproduce
1. Create a Rootly incident without associating it to any service
2. Run the Rootly collector for any service scope
3. The incident does not appear in _tool_rootly_incidents or the incidents domain table
### Anything else
_No response_
### Version
v1.0.3-beta12
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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: dev-unsubscribe@devlake.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Rootly] Incidents without service tags are silently dropped during collection [incubator-devlake]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #8891:
URL: https://github.com/apache/incubator-devlake/issues/8891#issuecomment-4578088740
<!-- Greeting -->
Hi @brianfeucht! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the incubator-devlake team.
<!-- Answer -->
Thanks for the detailed bug report, @brianfeucht. I can confirm all three issues you've identified by looking at the code merged in PR #8877 [[1]](https://github.com/apache/incubator-devlake/pull/8877):
1. **`buildIncidentsQuery`** unconditionally calls `query.Set("filter[service_ids]", serviceId)` — no empty-check, so an empty string gets sent as the filter value and the API returns 0 results for untagged incidents.
2. **`ValidateTaskOptions`** explicitly rejects `ServiceId == ""` with `"not enough info for Rootly execution"`, making it impossible to trigger a global/unfiltered collection today.
3. **The extractor guard** (`containsServiceId`) only skips incidents whose `services.Data` is non-empty *and* doesn't contain the target service — so incidents that somehow do get collected without service associations would pass the guard. But as you noted, they never reach extraction because of bugs 1 and 2.
The fix you outlined sounds right:
- Make `ServiceId` optional in `ValidateTaskOptions`
- Skip `filter[service_ids]` in `buildIncidentsQuery` when `ServiceId` is empty
- Skip the `containsServiceId` guard when running a global (unfiltered) collection
Since you've indicated willingness to submit a PR, that would be great. One thing to keep in mind: incidents associated with multiple services might get collected more than once if both a global collection and service-scoped collections run — you may want to add a note about idempotency / deduplication behavior in the PR description.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fincubator-devlake).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fincubator-devlake).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fincubator-devlake&message_id=b6867344-9456-4098-b15e-77092e3314e5) [](https://github.dosu.com/apache/incubator-devlake?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fincubator-devlake) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fincubator-devlake)
--
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: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Rootly] Incidents without service tags are silently dropped during collection [incubator-devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh closed issue #8891: [Bug][Rootly] Incidents without service tags are silently dropped during collection
URL: https://github.com/apache/incubator-devlake/issues/8891
--
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: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org