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

Draft: 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 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 Jul 2, 2024
@quarkus-bot
Copy link

quarkus-bot bot commented Jul 2, 2024

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit adad725.

Failing Jobs

Status Name Step Failures Logs Raw logs Build scan
Initial JDK 17 Build Build Failures Logs Raw logs 🔍

You can consult the Develocity build scans.

Failures

⚙️ Initial JDK 17 Build #

- Failing: integration-tests/smallrye-jwt-token-propagation 

📦 integration-tests/smallrye-jwt-token-propagation

Failed to execute goal io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:generate-code (default) on project quarkus-integration-test-smallrye-jwt-token-propagation: Quarkus code generation phase has failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant