-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use createCloneTask for templateTest and demoTest #1052
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please more thoroughly test your PRs.
checker/build.gradle
Outdated
ignoreExitValue = true | ||
} | ||
} | ||
createCloneTask('getDemos', 'https://github.com/eisop/checker-framework.demos.git', demosDir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This creates a clone task, but nothing is executing that task.
Create a fresh clone of the repository, change to this PR, and execute ./gradlew templateTests
.
You'll get:
* What went wrong:
Execution failed for task ':checker:templateTests'.
> A problem occurred starting process 'command './gradlew''
CI passes, because it clones the directory already beforehand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I have moved the create clone tasks to root directory along with other clone tasks. Now it should works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's abandon this change for now. I see that typetools is making some improvements here and we can improve this once those changes are merged.
] | ||
ignoreExitValue = true | ||
} | ||
injected.execOps.exec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think exec-ing another task is ideal. Shouldn't it just be listed in dependsOn
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think we can move this it to dependson like dependsOn: ['assembleForJavac', ':getDemos']
Fixes #1051