Skip to content

Migrate usage of internal GSON API - #324

Merged
mackdk merged 4 commits into
SUSE:masterfrom
SoulKa:fix/323-using-internal-gson-api
Jul 7, 2026
Merged

mackdk merged 4 commits into
SUSE:masterfrom
SoulKa:fix/323-using-internal-gson-api

Conversation

@SoulKa

@SoulKa SoulKa commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Closes #323

  • migrate usages of the com.google.gson.internal packages to support the usage of newer GSON versions

@SoulKa SoulKa changed the title fix(#323): Remove usage of internal gson api fix(#323): Migrate usage of internal gson api Jun 18, 2026
@SoulKa SoulKa changed the title fix(#323): Migrate usage of internal gson api Migrate usage of internal GSON API Jun 18, 2026
@SoulKa

SoulKa commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

Hi @renner, we currently struggle with using this project in our now-to-be spring boot 4 application. Is there still anything we need to do from our side in order for the GSON library to be upgrade here?

@rjmateus

Copy link
Copy Markdown
Member

@lucidd @mackdk do you think someone can have a look? To merge this PR we would then need to update the gson version on the depending project, right?

@SoulKa

SoulKa commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

@rjmateus if in doubt, I can remove the GSON version upgrade in this PR and only keep the migration of internal GSON calls. The salt API then works with GSON 2.8.9 and any newer version :)

@rjmateus

Copy link
Copy Markdown
Member

@SoulKa I think it would be better (and allow us to move faster) if the gson upgrade is done in a separate PR.

@SoulKa

SoulKa commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

@rjmateus thank you for your fast response in this matter. I reverted the GSON version upgrade and the tests still run locally.

@mackdk mackdk left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

The version bump is a kind of a blocker for us at the moment, since the version we use needs to remain in sync with what openSUSE provides. This change however works without any issue on 2.8.9 as well, and actually improves the existing code. Thanks for your contribution!

@SoulKa

SoulKa commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor Author

The SaltClientDockerTest fails since mbologna/* images (from @mbologna) don't exist anymore and there seems to be no direct substitute. I'll try to find a saltstack testcontainer setup that works, so we have the tests running again if it blocks this PR.

@mbologna

mbologna commented Jun 23, 2026 •

Copy link
Copy Markdown
Member

The SaltClientDockerTest fails since mbologna/* images (from @mbologna) don't exist anymore and there seems to be no direct substitute. I'll try to find a saltstack testcontainer setup that works, so we have the tests running again if it blocks this PR.

Apologies, by mistake I deleted mbologna/docker-salt. Now I revived and renovated it, and pushed the missing images to Docker Hub. All in all: you should relaunch the tests, the container pull will now work.
The tests should be adapted, though:

https://github.com/SUSE/salt-netapi-client/blob/master/src/test/java/com/suse/salt/netapi/client/SaltClientDockerTest.java#L147

should now be 3006.0 as per the new Salt version in Leap

@SoulKa

SoulKa commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

Thank you very much @mbologna! I launched the containers locally and ran all tests. The SaltClientDockerTest work now, too.

@SoulKa

SoulKa commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor Author

@mackdk are we ready to merge?

@SoulKa

SoulKa commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

@rjmateus anything left that blocks this PR? :)

@rjmateus

rjmateus commented Jul 6, 2026

Copy link
Copy Markdown
Member

I think it's fine to merge. But we also need to prepare a version release.
@mackdk @lucidd do you think we can merge it?

@mackdk
mackdk merged commit 6f8aca1 into SUSE:master Jul 7, 2026
@SoulKa

SoulKa commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

Hi @rjmateus and @mackdk, is there still a blocker for a (pre)release that includes this patch?

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.

Usage of internal GSON API prevents Dependency Upgrades

4 participants