Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ahus1
Copy link
Contributor

@ahus1 ahus1 commented Jun 15, 2024

Also ensure that JS project is not built too often, and the Quarkus distribution is not missed when sub-dependencies change.

Closes #30463

How to test:

Run the following command twice. The second time should finish in less than 10 seconds, as it is only calculating hashes and copying cached artifacts to the local Maven repo.

./mvnw -Dmaven.build.cache.enabled=true install -DskipTests -am -pl quarkus/dist

If a source file is then changed (for example InfinispanCacheRealmProviderFactory.java or AccountRow.tsx), the final Quarkus ZIP file is rebuilt after building only those dependency that are essential.

@ahus1 ahus1 force-pushed the is-30463-upgrade-maven-cache-extension branch from 45f6ef3 to 0731ab0 Compare June 17, 2024 08:10
@ahus1 ahus1 requested a review from jonkoops June 17, 2024 08:11
Copy link
Contributor

@jonkoops jonkoops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ahus1
Copy link
Contributor Author

ahus1 commented Jun 17, 2024

@vmuzikar - can you please review and merge this PR? Asking you as it touches the Quarkus pom.xml. AFAIK the changes still build the same ZIP file afterwards. Thanks!

@ahus1 ahus1 requested a review from vmuzikar June 17, 2024 10:15
@ahus1
Copy link
Contributor Author

ahus1 commented Jun 17, 2024

partial_import_test fails randomly: #30492, trying one more time

@jonkoops jonkoops force-pushed the is-30463-upgrade-maven-cache-extension branch from 0731ab0 to 34fa7d6 Compare June 17, 2024 14:18
Copy link
Contributor

@vmuzikar vmuzikar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ahus1 LGTM, the zip dist seems to be the same.

Comment on lines -37 to 42
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-quarkus-server-deployment</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pedroigor Do you remember why we excluded this?

@agagancarczyk
Copy link
Contributor

partial_import_test fails randomly: #30492, trying one more time

@ahus1 I’m expecting this test to pass now, as per the merged fix -> #30199.

Also ensure that JS project is not built too often, and the Quarkus distribution is not missed when sub-dependencies change.

Closes keycloak#30463

Signed-off-by: Alexander Schwartz <[email protected]>
@ahus1 ahus1 force-pushed the is-30463-upgrade-maven-cache-extension branch from 9e67453 to f421f9f Compare June 18, 2024 15:30
@ahus1 ahus1 enabled auto-merge (rebase) June 18, 2024 15:31
Copy link

@keycloak-github-bot keycloak-github-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unreported flaky test detected, please review

@keycloak keycloak deleted a comment from keycloak-github-bot bot Jun 19, 2024
@ahus1 ahus1 merged commit 319c87e into keycloak:main Jun 19, 2024
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.

Upgrade the maven cache extension

4 participants