You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/11/16 08:04:52 UTC

[GitHub] [pulsar] nodece opened a new pull request, #18493: [improve][test] Print stacktrace when the test is skipped

nodece opened a new pull request, #18493:
URL: https://github.com/apache/pulsar/pull/18493

   ### Motivation
   
   When a test is skipped, we need to know why. See the following log, this log doesn't contain why skip:
   
   ```
   2022-11-15T16:58:39,575 - INFO  - [metadata-store-72-1:ServerCnx@1144] - [/127.0.0.1:47616] Created subscription on topic persistent://prop/use/my-ns/__change_events / reader-244e8c3e2a
   2022-11-15T16:58:39,576 - INFO  - [pulsar-io-67-4:ConsumerImpl@920] - [persistent://prop/use/my-ns/__change_events][reader-244e8c3e2a] Subscribed to topic on localhost/127.0.0.1:40931 -- consumer: 0
   2022-11-15T16:58:39,595 - INFO  - [bookkeeper-ml-scheduler-OrderedScheduler-0-0:ManagedCursorImpl$30@3007] - [prop/use/my-ns/persistent/my-topic1] Updated cursor my-sub with ledger id 6 md-position=3:1 rd-position=3:10
   ~~~~~~~~~ SKIPPED -- [TestClass name=class org.apache.pulsar.websocket.proxy.v1.V1_ProxyAuthenticationTest].anonymousSocketTest([])-------
   2022-11-15T16:58:48,913 - INFO  - [main:SimpleConsumerSocket@68] - Connection closed: 1006 - Disconnected
   2022-11-15T16:58:48,914 - INFO  - [pulsar-websocket-web-110-5:AbstractWebSocketHandler@191] - [/127.0.0.1:40892] Closed WebSocket session on topic persistent://prop/use/my-ns/my-topic1. status: 1001 - reason: Shutdown
   2022-11-15T16:58:48,916 - INFO  - [pulsar-io-67-2:ServerCnx@1839] - [/127.0.0.1:47612] Closing consumer: consumerId=0
   2022-11-15T16:58:48,917 - INFO  - [pulsar-io-67-2:AbstractDispatcherSingleActiveConsumer@187] - Removing consumer Consumer{subscription=PersistentSubscription{topic=persistent://prop/use/my-ns/my-topic1, name=my-sub}, consumerId=0, consumerName=bd5bc, address=/127.0.0.1:47612}
   2022-11-15T16:58:48,917 - INFO  - [pulsar-io-67-2:ServerCnx@1875] - [/127.0.0.1:47612] Closed consumer, consumerId=0
   ```
   
   ### Modifications
   
   Print stacktrace when the test is skipped.
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. Please attach the local preview screenshots (run `sh start.sh` at `pulsar/site2/website`) to your PR description, or else your PR might not get merged. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   
   ### Matching PR in forked repository
   
   PR in forked repository: <!-- ENTER URL HERE -->
   
   <!--
   After opening this PR, the build in apache/pulsar will fail and instructions will
   be provided for opening a PR in the PR author's forked repository.
   
   apache/pulsar pull requests should be first tested in your own fork since the 
   apache/pulsar CI based on GitHub Actions has constrained resources and quota.
   GitHub Actions provides separate quota for pull requests that are executed in 
   a forked repository.
   
   The tests will be run in the forked repository until all PR review comments have
   been handled, the tests pass and the PR is approved by a reviewer.
   -->
   


-- 
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@pulsar.apache.org

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


[GitHub] [pulsar] tisonkun commented on pull request #18493: [improve][test] Print stacktrace when the test is skipped

Posted by GitBox <gi...@apache.org>.
tisonkun commented on PR #18493:
URL: https://github.com/apache/pulsar/pull/18493#issuecomment-1316605464

   How can this change help? Do you have a snippet of stack trace printed with this patch?


-- 
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@pulsar.apache.org

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


[GitHub] [pulsar] nodece commented on pull request #18493: [improve][test] Print stacktrace when the test is skipped

Posted by GitBox <gi...@apache.org>.
nodece commented on PR #18493:
URL: https://github.com/apache/pulsar/pull/18493#issuecomment-1316680908

   I tried this locally, and it looks like there is no help.


-- 
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@pulsar.apache.org

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


[GitHub] [pulsar] nodece commented on pull request #18493: [improve][test] Print stacktrace when the test is skipped

Posted by GitBox <gi...@apache.org>.
nodece commented on PR #18493:
URL: https://github.com/apache/pulsar/pull/18493#issuecomment-1316598950

   /pulsarbot rerun-failure-checks


-- 
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@pulsar.apache.org

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


[GitHub] [pulsar] codecov-commenter commented on pull request #18493: [improve][test] Print stacktrace when the test is skipped

Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on PR #18493:
URL: https://github.com/apache/pulsar/pull/18493#issuecomment-1316647721

   # [Codecov](https://codecov.io/gh/apache/pulsar/pull/18493?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#18493](https://codecov.io/gh/apache/pulsar/pull/18493?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (23d13d3) into [master](https://codecov.io/gh/apache/pulsar/commit/79750231051db849350e3d35dd3706320466acac?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (7975023) will **increase** coverage by `0.37%`.
   > The diff coverage is `59.37%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/pulsar/pull/18493/graphs/tree.svg?width=650&height=150&src=pr&token=acYqCpsK9J&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/pulsar/pull/18493?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   
   ```diff
   @@             Coverage Diff              @@
   ##             master   #18493      +/-   ##
   ============================================
   + Coverage     45.62%   45.99%   +0.37%     
   + Complexity    10075     8998    -1077     
   ============================================
     Files           697      617      -80     
     Lines         68024    58527    -9497     
     Branches       7293     6105    -1188     
   ============================================
   - Hits          31033    26922    -4111     
   + Misses        33413    28614    -4799     
   + Partials       3578     2991     -587     
   ```
   
   | Flag | Coverage Δ | |
   |---|---|---|
   | unittests | `45.99% <59.37%> (+0.37%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   | [Impacted Files](https://codecov.io/gh/apache/pulsar/pull/18493?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [...nt/impl/PulsarClientImplementationBindingImpl.java](https://codecov.io/gh/apache/pulsar/pull/18493/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWNsaWVudC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2NsaWVudC9pbXBsL1B1bHNhckNsaWVudEltcGxlbWVudGF0aW9uQmluZGluZ0ltcGwuamF2YQ==) | `72.41% <ø> (-0.47%)` | :arrow_down: |
   | [...ar/client/impl/conf/ConsumerConfigurationData.java](https://codecov.io/gh/apache/pulsar/pull/18493/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWNsaWVudC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2NsaWVudC9pbXBsL2NvbmYvQ29uc3VtZXJDb25maWd1cmF0aW9uRGF0YS5qYXZh) | `92.55% <ø> (+2.12%)` | :arrow_up: |
   | [...he/pulsar/client/impl/TypedMessageBuilderImpl.java](https://codecov.io/gh/apache/pulsar/pull/18493/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWNsaWVudC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2NsaWVudC9pbXBsL1R5cGVkTWVzc2FnZUJ1aWxkZXJJbXBsLmphdmE=) | `30.76% <59.37%> (+3.56%)` | :arrow_up: |
   | [.../apache/pulsar/broker/admin/impl/PackagesBase.java](https://codecov.io/gh/apache/pulsar/pull/18493/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9hZG1pbi9pbXBsL1BhY2thZ2VzQmFzZS5qYXZh) | `54.12% <0.00%> (-13.77%)` | :arrow_down: |
   | [...he/pulsar/client/impl/PartitionedProducerImpl.java](https://codecov.io/gh/apache/pulsar/pull/18493/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWNsaWVudC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2NsaWVudC9pbXBsL1BhcnRpdGlvbmVkUHJvZHVjZXJJbXBsLmphdmE=) | `30.34% <0.00%> (-5.13%)` | :arrow_down: |
   | [...er/impl/SingleSnapshotAbortedTxnProcessorImpl.java](https://codecov.io/gh/apache/pulsar/pull/18493/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci90cmFuc2FjdGlvbi9idWZmZXIvaW1wbC9TaW5nbGVTbmFwc2hvdEFib3J0ZWRUeG5Qcm9jZXNzb3JJbXBsLmphdmE=) | `51.19% <0.00%> (-3.58%)` | :arrow_down: |
   | [...sar/broker/service/schema/SchemaRegistryStats.java](https://codecov.io/gh/apache/pulsar/pull/18493/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9zZXJ2aWNlL3NjaGVtYS9TY2hlbWFSZWdpc3RyeVN0YXRzLmphdmE=) | `72.50% <0.00%> (-2.50%)` | :arrow_down: |
   | [...pache/pulsar/broker/admin/v2/PersistentTopics.java](https://codecov.io/gh/apache/pulsar/pull/18493/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9hZG1pbi92Mi9QZXJzaXN0ZW50VG9waWNzLmphdmE=) | `71.68% <0.00%> (-2.14%)` | :arrow_down: |
   | [.../org/apache/pulsar/broker/admin/v2/Namespaces.java](https://codecov.io/gh/apache/pulsar/pull/18493/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9hZG1pbi92Mi9OYW1lc3BhY2VzLmphdmE=) | `57.15% <0.00%> (-2.14%)` | :arrow_down: |
   | [...ersistentStickyKeyDispatcherMultipleConsumers.java](https://codecov.io/gh/apache/pulsar/pull/18493/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9zZXJ2aWNlL3BlcnNpc3RlbnQvUGVyc2lzdGVudFN0aWNreUtleURpc3BhdGNoZXJNdWx0aXBsZUNvbnN1bWVycy5qYXZh) | `39.90% <0.00%> (-1.93%)` | :arrow_down: |
   | ... and [109 more](https://codecov.io/gh/apache/pulsar/pull/18493/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | |
   


-- 
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@pulsar.apache.org

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


[GitHub] [pulsar] nodece commented on pull request #18493: [improve][test] Print stacktrace when the test is skipped

Posted by GitBox <gi...@apache.org>.
nodece commented on PR #18493:
URL: https://github.com/apache/pulsar/pull/18493#issuecomment-1316616230

   > How can this change help? 
   
   When a test skipped carries an exception, it's easy to catch why skip.
   
   > Do you have a snippet of stack trace printed with this patch?
   
   No, It's hard to reproduce locally.


-- 
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@pulsar.apache.org

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


[GitHub] [pulsar] nodece closed pull request #18493: [improve][test] Print stacktrace when the test is skipped

Posted by GitBox <gi...@apache.org>.
nodece closed pull request #18493: [improve][test] Print stacktrace when the test is skipped
URL: https://github.com/apache/pulsar/pull/18493


-- 
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@pulsar.apache.org

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


[GitHub] [pulsar] tisonkun commented on pull request #18493: [improve][test] Print stacktrace when the test is skipped

Posted by GitBox <gi...@apache.org>.
tisonkun commented on PR #18493:
URL: https://github.com/apache/pulsar/pull/18493#issuecomment-1316635959

   > When a test skipped carries an exception, it's easy to catch why skip.
   
   IIUC skips are normally because previous tests failed and trigger a strategy to skip all following tests. Do you ever observe other cases except for this one and manually skip by disabling tests (`@Test(enable = false)`)?


-- 
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@pulsar.apache.org

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