You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2022/09/18 18:48:44 UTC

[GitHub] [kafka] hachikuji opened a new pull request, #12657: MINOR: Set display granularity in gradle test logging

hachikuji opened a new pull request, #12657:
URL: https://github.com/apache/kafka/pull/12657

   We have recently been seeing a lot of build failures:
   ```
   [2022-09-18T10:01:25.947Z] * What went wrong:
   [2022-09-18T10:01:25.947Z] Execution failed for task ':core:unitTest'.
   [2022-09-18T10:01:25.947Z] > Process 'Gradle Test Executor 116' finished with non-zero exit value 1
   ```
   It is difficult to track this back from the build output because we don't know which test was executing on 'Gradle Test Executor 116.' There is a test logging property `displayGranularity`, which lets us see the executor for each test run: https://docs.gradle.org/current/dsl/org.gradle.api.tasks.testing.logging.TestLogging.html#org.gradle.api.tasks.testing.logging.TestLogging:displayGranularity. 
   
   When `displayGranularity` is set to 2 (the default), we get the following:
   ```
   AdminZkClientTest > testGetBrokerMetadatas() PASSED
   ```
   When set to 0, it looks like this instead:
   ```
   Gradle Test Run :core:test > Gradle Test Executor 76 > AdminZkClientTest > testGetBrokerMetadatas() PASSED
   ```
   Hopefully having this extra information makes it easier to debug failures.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] hachikuji commented on pull request #12657: MINOR: More verbose display granularity in gradle test logging

Posted by GitBox <gi...@apache.org>.
hachikuji commented on PR #12657:
URL: https://github.com/apache/kafka/pull/12657#issuecomment-1250370212

   cc @showuon 


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] ijuma commented on pull request #12657: MINOR: More verbose display granularity in gradle test logging

Posted by GitBox <gi...@apache.org>.
ijuma commented on PR #12657:
URL: https://github.com/apache/kafka/pull/12657#issuecomment-1279038561

   Very nice, thanks for improving this!


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [kafka] hachikuji merged pull request #12657: MINOR: More verbose display granularity in gradle test logging

Posted by GitBox <gi...@apache.org>.
hachikuji merged PR #12657:
URL: https://github.com/apache/kafka/pull/12657


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org