Skip to content

[BEAM-3257] Add Python precommit gradle config#5010

Merged
lukecwik merged 2 commits intoapache:masterfrom
udim:gradle-python
Apr 5, 2018
Merged

[BEAM-3257] Add Python precommit gradle config#5010
lukecwik merged 2 commits intoapache:masterfrom
udim:gradle-python

Conversation

@udim
Copy link
Member

@udim udim commented Apr 3, 2018

DESCRIPTION HERE


Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue.
  • Write a pull request description that is detailed enough to understand:
    • What the pull request does
    • Why it does it
    • How it does it
    • Why this approach
  • Each commit in the pull request should have a meaningful subject line and body.
  • Run mvn clean verify to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

@udim
Copy link
Member Author

udim commented Apr 3, 2018

R: @lukecwik

@udim udim changed the title [BEAM-3257] Update Python Gradle tasks to run in a venv. [BEAM-3257] Add Python precommit gradle config Apr 3, 2018
@udim
Copy link
Member Author

udim commented Apr 3, 2018

update seed job

@udim
Copy link
Member Author

udim commented Apr 3, 2018

run seed job

args '-c', "source ${envdir}/bin/activate && pip install --upgrade tox"
}
}
outputs.files("$buildDir/.gradleenv/bin/tox")
Copy link
Member

Choose a reason for hiding this comment

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

re-use the definition of envdir here.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

}

task sdist {
task sdist (dependsOn: 'setupVirtualenv') {
Copy link
Member

Choose a reason for hiding this comment

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

nit: remove the space between task name and arguments since its a method call like sdist(dependsOn: 'setupVirtualenv') { here and below.

Copy link
Member Author

Choose a reason for hiding this comment

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

done


// Publish all test results to Jenkins
publishers {
archiveJunit('**/build/test-results/**/*.xml')
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't seem to make sense. We should be publishing the python tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

removed

@udim
Copy link
Member Author

udim commented Apr 3, 2018

run seed job

@udim
Copy link
Member Author

udim commented Apr 4, 2018

run seed job

@udim
Copy link
Member Author

udim commented Apr 4, 2018

run seed job

1 similar comment
@udim
Copy link
Member Author

udim commented Apr 4, 2018

run seed job

@lukecwik lukecwik merged commit a2a5d3d into apache:master Apr 5, 2018
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.

3 participants