Skip to content

Conversation

@aloubyansky
Copy link
Member

Fixes #46726

@quarkus-bot quarkus-bot bot added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/maven labels Mar 18, 2025
@quarkus-bot
Copy link

quarkus-bot bot commented Mar 18, 2025

Status for workflow Quarkus CI

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

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.

: Path.of(this.recordedBuildConfigFile);
if (previousBuildConfigDump == null) {
return recordedBuildConfigDirectory.toPath()
.resolve("quarkus-" + launchMode.getDefaultProfile() + "-config-dump");
Copy link
Member

Choose a reason for hiding this comment

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

I was having a look at the original issue and is it expected we are not taking into account quarkus.config-tracking.file-suffix?

Copy link
Member Author

Choose a reason for hiding this comment

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

We could. We'd need to refactor the current implementation further to do that.
It will come at a cost of always resolving the the build time config and bootstrap the app even on the first build (when the config dump from the previous build does not exist, since we will not know about that).

Copy link
Member

@gsmet gsmet Mar 19, 2025

Choose a reason for hiding this comment

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

Does it make sense to have a config property for it if we can't honor it?

To clarify, I wonder if we should just drop it if it can't be honored.

Copy link
Member Author

Choose a reason for hiding this comment

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

No, it's used but by the process dumping the used config options during the build. This mojo is another client that reads that file. So all the options are actually used.
I think you had a good point though, we could potentially re-use the same option used by the build process in this mojo.
Perhaps we could keep the existing one but use it only if a user configured values explicitly.

Copy link
Member

Choose a reason for hiding this comment

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

No, it's used but by the process dumping the used config options during the build.

Yeah, I had that in mind but does it make sense to make it configurable if it's hard to propagate this config everywhere?

What's the value of allowing people to adjust the suffix?

Copy link
Member Author

Choose a reason for hiding this comment

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

Apparently, that's what @jprinet was experimenting with, generating config dumps for different profiles: local vs CI, afaiu.

Copy link
Contributor

Choose a reason for hiding this comment

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

Exactly, when using the quarkus-build-caching-extension to make the Quarkus build goal cacheable, a recommendation is to check in the dump config in the Git repository.
You may have several versions of this dump config depending on several factors (os, arch...)

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Feel free to merge this. I'm just unsure it actually solves the initial issue, even if it's a step in the right direction.

@aloubyansky
Copy link
Member Author

I'd say it fixes the issue taking the current design into account. We could look into config re-use as a follow up enhancement.

@aloubyansky aloubyansky merged commit 1c7bc02 into quarkusio:main Mar 24, 2025
55 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.22 - main milestone Mar 24, 2025
@gsmet gsmet modified the milestones: 3.22 - main, 3.21.1 Apr 1, 2025
@jmartisk jmartisk modified the milestones: 3.21.1, 3.20.1 Apr 16, 2025
@jmartisk jmartisk modified the milestones: 3.20.1, 3.15.5 Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/maven kind/bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

quarkus.config-tracking.file-suffix does not work as expected

4 participants