apache / apache/beam

[Failing Test]: Pylint failed when hypothesis > 6.148.3 is used

Open
#36,951 5 comments 0 reactions 1 assignee Claimed by @shunping View on GitHub
bug failing test flake P2 tests
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

### What happened?

The workflow https://github.com/apache/beam/actions/workflows/beam_PreCommit_PythonLint.yml failed recently due to a recent update on hypothesis.

The first failure:
https://github.com/apache/beam/actions/runs/19810292801

The last success:
https://github.com/apache/beam/actions/runs/19804782905

The only difference of the above runs is the version hypothesis. The failure run was on 6.148.4, while the successful one was on 6.148.3.

Error message:

```
************* Module apache_beam.coders.coders_property_based_test
apache_beam/coders/coders_property_based_test.py:132:4: W0101: Unreachable code (unreachable)
apache_beam/coders/coders_property_based_test.py:133:4: W0101: Unreachable code (unreachable)
apache_beam/coders/coders_property_based_test.py:136:4: W0101: Unreachable code (unreachable)
```

Still unsure about if it is a hypothesis regression or a pylint bug yet.

### Issue Failure

Failure: Test is failed

### Issue Priority

Priority: 1 (unhealthy code / failing or flaky postcommit so we cannot be sure the product is healthy)

### Issue Components

- [ ] Component: Python SDK
- [ ] Component: Java SDK
- [ ] Component: Go SDK
- [ ] Component: Typescript SDK
- [ ] Component: IO connector
- [ ] Component: Beam YAML
- [ ] Component: Beam examples
- [ ] Component: Beam playground
- [ ] Component: Beam katas
- [ ] Component: Website
- [ ] Component: Infrastructure
- [ ] Component: Spark Runner
- [ ] Component: Flink Runner
- [ ] Component: Samza Runner
- [ ] Component: Twister2 Runner
- [ ] Component: Hazelcast Jet Runner
- [ ] Component: Google Cloud Dataflow Runner

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.