You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/07/01 15:53:27 UTC

[GitHub] [beam] Abacn opened a new issue, #22124: [Bug]: unit test apache_beam/coders/row_coder_test.py::RowCoderTest::test_row_coder_fail_early_bad_schema fails locally

Abacn opened a new issue, #22124:
URL: https://github.com/apache/beam/issues/22124

   ### What happened?
   
   test_row_coder_fail_early_bad_schema fails when run test suites in non-parallel way:
   ```
   $ pytest -v apache_beam/coders/row_coder_test.py::RowCoderTest
   
   apache_beam/coders/row_coder_test.py::RowCoderTest::test_row_coder_fail_early_bad_schema FAILED                                                             [ 60%]
   
   E     AssertionError: "type_with_no_typeinfo" does not match "Encountered a type that is not currently supported by RowCoder: "
   ```
   but successes when run with pytes -n flag, or run independently:
   ```
   $ pytest -v -n 2 apache_beam/coders/row_coder_test.py::RowCoderTest
   
   [gw0] [ 53%] PASSED apache_beam/coders/row_coder_test.py::RowCoderTest::test_row_coder_cloud_object_schema 
   apache_beam/coders/row_coder_test.py::RowCoderTest::test_row_coder_fail_early_bad_schema
   ```
   or
   ```
   $ pytest -v apache_beam/coders/row_coder_test.py::RowCoderTest::test_row_coder_fail_early_bad_schema
   
   apache_beam/coders/row_coder_test.py::RowCoderTest::test_row_coder_fail_early_bad_schema PASSED                                                             [100%]
   ```
   
   Reproduced with python3.8 on both macOS and windows 10.
   
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: sdk-py-core


-- 
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: github-unsubscribe@beam.apache.org.apache.org

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


[GitHub] [beam] Abacn commented on issue #22124: [Bug]: unit test apache_beam/coders/row_coder_test.py::RowCoderTest::test_row_coder_fail_early_bad_schema fails locally

Posted by GitBox <gi...@apache.org>.
Abacn commented on issue #22124:
URL: https://github.com/apache/beam/issues/22124#issuecomment-1172585620

   .take-issue


-- 
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: github-unsubscribe@beam.apache.org

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


[GitHub] [beam] Abacn commented on issue #22124: [Bug]: unit test apache_beam/coders/row_coder_test.py::RowCoderTest::test_row_coder_fail_early_bad_schema fails locally

Posted by GitBox <gi...@apache.org>.
Abacn commented on issue #22124:
URL: https://github.com/apache/beam/issues/22124#issuecomment-1172537710

   The difference happens to the caused by the branching [here]( https://github.com/apache/beam/blob/680ed5b3a49990e2de0730b49233dfe22cfe9b8f/sdks/python/apache_beam/typehints/schemas.py#L301)
   
   If running pytest with the single test, user_type is None, and the try in the if clause raises with schema printed, which passed the assertion.
   If running pytest with the whole RowCoderTest, user_type is not None and the next if clause is not executed. typing_from_runner_api returned successfully and the Exception is raised much later, in [here](https://github.com/apache/beam/blob/680ed5b3a49990e2de0730b49233dfe22cfe9b8f/sdks/python/apache_beam/coders/row_coder.py#L179), without schema printed.


-- 
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: github-unsubscribe@beam.apache.org

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


[GitHub] [beam] TheNeuralBit closed issue #22124: [Bug]: unit test apache_beam/coders/row_coder_test.py::RowCoderTest::test_row_coder_fail_early_bad_schema fails locally

Posted by GitBox <gi...@apache.org>.
TheNeuralBit closed issue #22124: [Bug]: unit test apache_beam/coders/row_coder_test.py::RowCoderTest::test_row_coder_fail_early_bad_schema fails locally
URL: https://github.com/apache/beam/issues/22124


-- 
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: github-unsubscribe@beam.apache.org

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