Skip to content

Conversation

@RobbeSneyders
Copy link
Contributor

This is is part of a series of PRs with goal to make Apache Beam PY3 compatible. The proposal with the outlined approach has been documented here: https://s.apache.org/beam-python-3.

This PR adds a tox test suite for Python 3.6.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Python Build Status
Build Status
--- Build Status
Build Status
Build Status --- --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@RobbeSneyders RobbeSneyders changed the title Add Python 3.6 tox environment [BEAM-5663] Add Python 3.6 tox environment Mar 5, 2019
@RobbeSneyders
Copy link
Contributor Author

R: @tvalentyn @aaltay

equal_to([(None, {'a': [1]})]))

@unittest.skipIf(sys.version_info >= (3, 6, 0) and
os.environ.get('RUN_SKIPPED_PY36_TESTS') != '1',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is sufficient to have one variable RUN_SKIPPED_PY3_TESTS - we only need a way to override the skip decorator.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you're right. Updated, thanks!

Copy link
Contributor

@tvalentyn tvalentyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @RobbeSneyders , left one suggestion to simplify the change.

@tvalentyn
Copy link
Contributor

There is going to be a conflict with https://github.com/apache/beam/pull/7675/files, so it would be nice to merge this soon.

@tvalentyn
Copy link
Contributor

(That was a message for @RobbeSneyders)

@tvalentyn
Copy link
Contributor

Run Python PreCommit

3 similar comments
@tvalentyn
Copy link
Contributor

Run Python PreCommit

@tvalentyn
Copy link
Contributor

Run Python PreCommit

@tvalentyn
Copy link
Contributor

Run Python PreCommit

main | beam.Map(lambda a, b: (a, b), beam.pvalue.AsDict(side)),
equal_to([(None, {'a': [1]})]))

@unittest.skipIf(sys.version_info >= (3, 6, 0) and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have Jira's for this and other failures? Could we reference it here?
Thanks.

def assertReturnType(self, expected, f, inputs=()):
self.assertEquals(expected, trivial_inference.infer_return_type(f, inputs))

@unittest.skipIf(sys.version_info >= (3, 6, 0) and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be easier to move the skip declaration to skip entire class TrivialInferenceTest.

@tvalentyn
Copy link
Contributor

We will merge this change to avoid resolving merge conflict with #7675, please add the JIRAs to excluded tests in a follow-up change.

@udim
Copy link
Member

udim commented Aug 26, 2019

I'm going over tox.ini for a nose->pytest migration. I see that py36-gcp is missing from the current tox.ini. Is that an oversight or is there an open issue?

@tvalentyn
Copy link
Contributor

tvalentyn commented Aug 26, 2019

It's an oversight, thanks for calling out, @udim. Opened https://issues.apache.org/jira/browse/BEAM-8093

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants