[ 
https://issues.apache.org/jira/browse/RANGER-5327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18053421#comment-18053421
 ] 

Abhishek Kumar commented on RANGER-5327:
----------------------------------------

CI runs are encountering usersync test failures (related to this change), 
please see: 
CI run 1: 
https://github.com/apache/ranger/actions/runs/21197508756/job/60976529561
logs:

{code:java}
2026-01-21T04:53:00.7330088Z [INFO] Results:
2026-01-21T04:53:00.7330193Z [INFO] 
2026-01-21T04:53:00.7330305Z [ERROR] Failures: 
2026-01-21T04:53:00.7331369Z [ERROR]   
TestUserSyncMetricsProducer.testB_writeJVMMetrics_setsRoleActive_whenHAEnabled:108
 Expected metrics to contain JVM data, but got:  ==> expected: <true> but was: 
<false>
2026-01-21T04:53:00.7331602Z [INFO] 
2026-01-21T04:53:00.7331834Z [ERROR] Tests run: 93, Failures: 1, Errors: 0, 
Skipped: 0
{code}

CI run 2: 
https://github.com/apache/ranger/actions/runs/21106441607/job/60698671001
logs:

{code:java}
2026-01-18T05:17:35.2180944Z [ERROR] Failures: 
2026-01-18T05:17:35.2182329Z [ERROR]   
TestUserSyncMetricsProducer.testB_writeJVMMetrics_setsRoleActive_whenHAEnabled:108
 Expected metrics to contain JVM data, but got:  ==> expected: <true> but was: 
<false>
2026-01-18T05:17:35.2184506Z [ERROR]   
TestUserSyncMetricsProducer.testC_run_writesPeriodically_whenFileConfigured:138 
expected: <true> but was: <false>
2026-01-18T05:17:35.2185411Z [INFO] 
2026-01-18T05:17:35.2185758Z [ERROR] Tests run: 93, Failures: 2, Errors: 0, 
Skipped: 0
{code}

CC: [~spolavarapu]


> Test Cases for ugsync[unixusersync] & ugsync-util Module
> --------------------------------------------------------
>
>                 Key: RANGER-5327
>                 URL: https://issues.apache.org/jira/browse/RANGER-5327
>             Project: Ranger
>          Issue Type: Test
>          Components: Ranger
>            Reporter: Bhavesh Amre
>            Assignee: Bhavesh Amre
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> *Enhanced Unit Test Coverage for {{ugsync [unixusersync]}} & {{ugsync-util}} 
> Modules*
> h3. Key Updates:
>  * Migrated existing test classes from *JUnit4 to JUnit5* (updated 
> annotations and assertions).
>  * Added *new unit tests* to cover previously untested scenarios.
>  * Improved *Jacoco code coverage* across both modules.
> h3. Coverage Improvements:
>  * {*}ugsync [unixusersync] module{*}: *37% → 68%*
>  * {*}ugsync-util module{*}: *11% → 98%*



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to