The Wayback Machine - https://web.archive.org/web/20220421193516/https://github.com/elastic/elasticsearch/pull/85533
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

Apply precommit checks for non productive projects #85533

Merged
merged 1 commit into from Apr 20, 2022

Conversation

Copy link
Contributor

@breskeby breskeby commented Mar 31, 2022

Ensure projects with only yaml, java or cluster tests also apply precommit checks.
We only apply testingconventions now for projects with existing src test folder
as the TestingConventionsTask is incompatible with projects with no test sourceSet.
This is a prerequisite to port more projects away from using StandaloneRestTestPlugin
and RestTestPlugin in favor of yaml, java or cluster tests with dedicated sourceSets.

Also we fix deprecation warnings for forbiddenPattern and filePermissions tasks about
implicit non declared dependencies on resources tasks

@breskeby breskeby self-assigned this Mar 31, 2022
@breskeby breskeby added :Delivery/Build >enhancement build-benchmark Team:Delivery v7.17.3 v8.1.2 v8.2.0 v8.3.0 labels Mar 31, 2022
@breskeby breskeby force-pushed the apply-precommit-checks-for-qa branch 2 times, most recently from e5258b2 to 607c1ce Compare Mar 31, 2022
@breskeby breskeby marked this pull request as ready for review Apr 1, 2022
@elasticmachine
Copy link
Collaborator

@elasticmachine elasticmachine commented Apr 1, 2022

Pinging @elastic/es-delivery (Team:Delivery)

Copy link
Contributor

@mark-vieira mark-vieira left a comment

Ensure projects with only yaml, java or cluster tests also apply precommit checks.

Since we disable testing conventions when a test souceset is missing doesn't this effectively do nothing? For those QA projects that only have rest tests we still won't be running test conventions on them, right?

@breskeby
Copy link
Contributor Author

@breskeby breskeby commented Apr 14, 2022

@elasticsearchmachine update branch

@breskeby
Copy link
Contributor Author

@breskeby breskeby commented Apr 14, 2022

@mark-vieira yes we would not apply test conventions on them (test conventions is incompatible with non 'test' sourceSet tests, but we would apply any other precommit check (including checkstyle and friends). Once we do not have any test tasks sharing the test sourceSet anymore we can basically remove testingConventions or at least a huge part of it

@breskeby breskeby force-pushed the apply-precommit-checks-for-qa branch from 77bda3d to d1301cd Compare Apr 14, 2022
@breskeby breskeby requested a review from mark-vieira Apr 14, 2022
Ensure projects with only yaml, java or cluster tests also apply precommit checks.
We only apply testingconventions now for projects with existing src test folder
as the TestingConventionsTask is incompatible with projects with no test sourceSet.
This is a prerequisite to port more projects away from using StandaloneRestTestPlugin
and RestTestPlugin in favor of yaml, java or cluster tests with dedicated sourceSets.

Also we fix deprecation warnings for forbiddenPattern and filePermissions tasks about
implicit non declared dependencies on resources tasks
@breskeby breskeby force-pushed the apply-precommit-checks-for-qa branch from d1301cd to 3eb4b63 Compare Apr 19, 2022
@breskeby
Copy link
Contributor Author

@breskeby breskeby commented Apr 19, 2022

@mark-vieira yes we would not apply test conventions on them (test conventions is incompatible with non 'test' sourceSet tests, but we would apply any other precommit check (including checkstyle and friends). Once we do not have any test tasks sharing the test sourceSet anymore we can basically remove testingConventions or at least a huge part of it

@mark-vieira can I have your tick off here or should I understand your 👍 as "approved"? :)

Copy link
Contributor

@mark-vieira mark-vieira left a comment

Yep, LGTM.

@breskeby breskeby merged commit 718a241 into elastic:master Apr 20, 2022
13 checks passed
@breskeby breskeby deleted the apply-precommit-checks-for-qa branch Apr 20, 2022
breskeby added a commit to breskeby/elasticsearch that referenced this issue Apr 20, 2022
Ensure projects with only yaml, java or cluster tests also apply precommit checks.
We only apply testingconventions now for projects with existing src test folder
as the TestingConventionsTask is incompatible with projects with no test sourceSet.
This is a prerequisite to port more projects away from using StandaloneRestTestPlugin
and RestTestPlugin in favor of yaml, java or cluster tests with dedicated sourceSets.

Also we fix deprecation warnings for forbiddenPattern and filePermissions tasks about
implicit non declared dependencies on resources tasks
breskeby added a commit to breskeby/elasticsearch that referenced this issue Apr 20, 2022
Ensure projects with only yaml, java or cluster tests also apply precommit checks.
We only apply testingconventions now for projects with existing src test folder
as the TestingConventionsTask is incompatible with projects with no test sourceSet.
This is a prerequisite to port more projects away from using StandaloneRestTestPlugin
and RestTestPlugin in favor of yaml, java or cluster tests with dedicated sourceSets.

Also we fix deprecation warnings for forbiddenPattern and filePermissions tasks about
implicit non declared dependencies on resources tasks
# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalPluginBuildPlugin.java
#	build-tools/src/main/java/org/elasticsearch/gradle/plugin/PluginBuildPlugin.java
#	rest-api-spec/build.gradle
#	test/x-content/build.gradle
#	x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/TrainedModelIT.java
breskeby added a commit that referenced this issue Apr 20, 2022
Ensure projects with only yaml, java or cluster tests also apply precommit checks.
We only apply testingconventions now for projects with existing src test folder
as the TestingConventionsTask is incompatible with projects with no test sourceSet.
This is a prerequisite to port more projects away from using StandaloneRestTestPlugin
and RestTestPlugin in favor of yaml, java or cluster tests with dedicated sourceSets.

Also we fix deprecation warnings for forbiddenPattern and filePermissions tasks about
implicit non declared dependencies on resources tasks
breskeby added a commit that referenced this issue Apr 21, 2022
…86029)

Ensure projects with only yaml, java or cluster tests also apply precommit checks.
We only apply testingconventions now for projects with existing src test folder
as the TestingConventionsTask is incompatible with projects with no test sourceSet.
This is a prerequisite to port more projects away from using StandaloneRestTestPlugin
and RestTestPlugin in favor of yaml, java or cluster tests with dedicated sourceSets.

Also we fix deprecation warnings for forbiddenPattern and filePermissions tasks about
implicit non declared dependencies on resources tasks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-benchmark :Delivery/Build >enhancement Team:Delivery v7.17.3 v8.1.2 v8.2.0 v8.3.0
3 participants