[
https://issues.apache.org/jira/browse/SENTRY-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gregory Chanan updated SENTRY-1267:
-----------------------------------
Description:
We currently explicitly exclude certain non thread safe tests:
https://github.com/apache/sentry/blob/2109f42945cb132c4bf738649abf2935288d1e20/pom.xml#L897-L903
Though it's nice that this list is in one place, this is unmaintainable as we
add more tests. The usual way of solving this is to define annotations around
the tests that define when they should run. E.g. in this case, there are a
bunch of non-thread safe tests that derive from
SentryGenericServiceIntegrationBase. We can just annotate this base class with
@NonThreadSafe or something, which will be less of a maintenance headache.
was:
We currently explicitly exclude certain non thread safe tests:
https://github.com/apache/sentry/blob/2109f42945cb132c4bf738649abf2935288d1e20/pom.xml#L897-L903
Though it's nice that this list is in one place, this is unmaintainable as we
add more tests. The usual way of solving this is to define annotations around
the tests that define when they should run. E.g. in this case, there are a
bunch of non-thread safe tests that derive from
SentryGenericServiceIntegrationBase. We can just annotate this base class with
@NonThreadSafe or something, which will be less of a maintainence headache.
> Improve skipSlowAndNotThreadSafeTests blacklist/whitelist
> ---------------------------------------------------------
>
> Key: SENTRY-1267
> URL: https://issues.apache.org/jira/browse/SENTRY-1267
> Project: Sentry
> Issue Type: Improvement
> Components: Test
> Affects Versions: 1.8.0
> Reporter: Gregory Chanan
> Fix For: 1.8.0
>
>
> We currently explicitly exclude certain non thread safe tests:
> https://github.com/apache/sentry/blob/2109f42945cb132c4bf738649abf2935288d1e20/pom.xml#L897-L903
> Though it's nice that this list is in one place, this is unmaintainable as we
> add more tests. The usual way of solving this is to define annotations
> around the tests that define when they should run. E.g. in this case, there
> are a bunch of non-thread safe tests that derive from
> SentryGenericServiceIntegrationBase. We can just annotate this base class
> with @NonThreadSafe or something, which will be less of a maintenance
> headache.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)