Skip to content
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

Closed
wants to merge 5 commits into from

Conversation

Ao-senXiong
Copy link
Member

Fixes #1051

Copy link
Member

@wmdietl wmdietl left a 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.

ignoreExitValue = true
}
}
createCloneTask('getDemos', 'https://github.com/eisop/checker-framework.demos.git', demosDir)
Copy link
Member

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.

Copy link
Member Author

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.

@wmdietl wmdietl assigned Ao-senXiong and unassigned wmdietl Jan 7, 2025
Copy link
Member

@wmdietl wmdietl left a 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 {
Copy link
Member

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?

Copy link
Member Author

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']

@wmdietl wmdietl closed this Jan 7, 2025
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.

Reduce duplication in gradle tasks that clone repositories
2 participants