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

Remove deprecated cloning pattern config which isn't really useful anymore (revive this November 2024) #41621

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

holly-cummins
Copy link
Contributor

@holly-cummins holly-cummins commented Jul 2, 2024

Comment from July: We should merge this a couple of releases after #41623, so perhaps November 2024.

#40601 dropped support for the class-clone-pattern configuration, but didn’t remove the documentation. The configuration wasn’t really needed anymore, since #40601 cloned almost everything.

My amendment of #40601 to work around the “do not clone everything” problem clones less, and does reintroduce have the support for configuring the cloning. However, I think even in this scenario, the config is not useful. The config was introduced as part #17306, to make Pact work, but I've run the Pact tests against a local quarkus build and Pact works fine without the config.

I’ve searched through public codebases, and I do not believe this configuration is widely used. https://github.com/search?q=quarkus.test.class-clone-pattern%3D&type=code shows only 6 usages of quarkus.test.class-clone-pattern in configuration files, all in commented out boilerplate. Searching for the camel case version, CLASS_CLONE_PATTERN= gave no instances: https://github.com/search?q=CLASS_CLONE_PATTERN%3D&type=code
In my searches, I added the equals sign so filter out config documentation and forks of the quarkus repo, which do reference the property name.

The default value of the configuration is java.*, so removing the config does mean we no longer attempt to clone java.* classes. I don’t see any benefit in doing that cloning, but be aware this (sort of) is a functional change.

@holly-cummins holly-cummins marked this pull request as draft July 2, 2024 13:28
@holly-cummins holly-cummins changed the title Remove deprecated cloning pattern config which isn't really useful anymore Remove deprecated cloning pattern config which isn't really useful anymore (revive this November 2024) Jul 2, 2024

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant