Skip to content

Predictive Test Selection is disabled when running builds #524

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

Merged
merged 4 commits into from
Jul 22, 2024

Conversation

erichaagdev
Copy link
Member

This PR adds the system property -Dpts.enabled=false to build invocations in order to disable PTS. The displayed invocation commands have also been updated to include the system property.

image

ℹ️ Note: The CI/Local experiments (exp5-gradle & exp4-maven) will also be invoked with -Dpts.enabled=false even if the original CI build did not have PTS disabled.

Closes #522

@erichaagdev erichaagdev self-assigned this Oct 20, 2023
@erichaagdev erichaagdev force-pushed the erichaagdev/disable-pts branch from 2166ae6 to 0c35bfb Compare October 20, 2023 18:08
@erichaagdev
Copy link
Member Author

@etiennestuder I want to make sure you see the note I have in the description:

The CI/Local experiments (exp5-gradle & exp4-maven) will also be invoked with -Dpts.enabled=false even if the original CI build did not have PTS disabled.

I think that is the desired state but it means we need to recommend users also disable PTS in the CI builds. Should we also update the wording then of the interactive mode to include this?

https://github.com/gradle/gradle-enterprise-build-validation-scripts/blob/5391c5888022de3dae3cf17dec18ce04d69671fc/components/scripts/gradle/05-validate-remote-build-caching-ci-local.sh#L276-L287

@erichaagdev erichaagdev force-pushed the erichaagdev/disable-pts branch from 0c35bfb to 7f582dd Compare July 19, 2024 15:35
@erichaagdev erichaagdev merged commit 598d066 into main Jul 22, 2024
5 checks passed
@erichaagdev erichaagdev deleted the erichaagdev/disable-pts branch July 22, 2024 13:54
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.

PTS should be disabled when running experiments
2 participants