[
https://issues.apache.org/jira/browse/BEAM-10985?focusedWorklogId=499653&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-499653
]
ASF GitHub Bot logged work on BEAM-10985:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 12/Oct/20 21:22
Start Date: 12/Oct/20 21:22
Worklog Time Spent: 10m
Work Description: kennknowles commented on a change in pull request
#13000:
URL: https://github.com/apache/beam/pull/13000#discussion_r503538426
##########
File path:
buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
##########
@@ -2063,8 +2066,13 @@ class BeamModulePlugin implements Plugin<Project> {
args '-c', ". ${project.ext.envdir}/bin/activate && cd
${copiedPyRoot} && scripts/run_tox.sh $tox_env $distTarBall '$posargs'"
}
}
- inputs.files project.pythonSdkDeps
- outputs.files project.fileTree(dir:
"${pythonRootDir}/target/.tox/${tox_env}/log/")
+ outputs.cacheIf { true }
+ inputs.files(project.pythonSdkDeps)
+ .withPropertyName('pythonSdkDeps')
+ .withPathSensitivity(PathSensitivity.RELATIVE)
+
+ outputs.dir("${project.buildDir}/srcs/sdks/python/")
Review comment:
Just to clarify the full path, it is marking everything under
`build/src/sdks/python` as output here. Am I wrong that `${project.buildDir}`
is the `build/` directory relative to the `build.gradle` file of the module?
Certainly everything under there is fine to be an output. But keeping outputs
from different tasks in totally different places is nice. Just a nice to have.
So `build/src/sdks/python` is the copy/pasted source while `build/reports/tox/`
would be the output from tox. But TBH I am just dropping in with generic
opinions. My very quick read of the build logic and comments was that
`build/src/sdks/python` existed primarily so that tox (and/or other tools)
would not dump files all over the original source tree. So if that is its
purpose it makes sense to let the tools put their stuff in their and call it
good.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 499653)
Time Spent: 2h 40m (was: 2.5h)
> Python precommit flakes when publishing test report
> ---------------------------------------------------
>
> Key: BEAM-10985
> URL: https://issues.apache.org/jira/browse/BEAM-10985
> Project: Beam
> Issue Type: Bug
> Components: test-failures
> Reporter: Kyle Weaver
> Assignee: Kyle Weaver
> Priority: P2
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> https://ci-beam.apache.org/job/beam_PreCommit_Python_Commit/15450/console
> The Jenkins job fails when trying to publish results:
> 13:50:49 ERROR: Step ‘Publish JUnit test result report’ failed: No test
> report files were found. Configuration error?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)