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/10/13 19:37:41 UTC

[GitHub] [pulsar-client-python] BewareMyPower opened a new pull request, #16: Enhance developer experience for debugging tests and add related README

BewareMyPower opened a new pull request, #16:
URL: https://github.com/apache/pulsar-client-python/pull/16

   ### Motivation
   
   When I ran `python3 ./tests/pulsar_tests.py`, I found some tests failed. However, when I went into the container that was started by `./build-support/pulsar-test-service-start.sh`, the logs are incomplete because the immediate flush is disabled by default.
   
   Finally I found the error is caused by the relative path in tests. The certs are under `tests/test-conf` directory, but `pulsar_tests.py` uses the `test-conf/` relative path. Since `tests/run-unit-tests.sh` first goes to the `tests` directory before running the tests, CI works well. But a developer might just want to run a specific test from any possible directory, e.g.
   
   ```bash
   python3 ./tests/pulsar_tests.py PulsarTest.test_tls_auth
   ```
   
   Then it could fail and he cannot see complete logs.
   
   ### Modifications
   
   - Modify `immediateFlush` to true
   - Use absolute path to represent `test-conf/` in `pulsar_tests.py`
   - Add an initial README for quick start


-- 
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-client-python] merlimat merged pull request #16: Enhance developer experience for debugging tests and add related README

Posted by GitBox <gi...@apache.org>.
merlimat merged PR #16:
URL: https://github.com/apache/pulsar-client-python/pull/16


-- 
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