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

Bump io.smallrye.config:smallrye-config from 3.3.4 to 3.4.1 #2312

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 2, 2023

Bumps io.smallrye.config:smallrye-config from 3.3.4 to 3.4.1.

Release notes

Sourced from io.smallrye.config:smallrye-config's releases.

3.4.1

  • #1019 Release 3.4.1
  • #1017 Update SmallRye Commons to 2.2.0
  • #1016 Single StringBuilder allocation per find
  • #1014 Match and replace semantic property names in the EnvConfigSource
  • #1013 Do not override defaults set by the builder with mappings
  • #1012 Bump io.smallrye:smallrye-parent from 40 to 41

3.4.0

  • #1011 Release 3.4.0
  • #1010 Update SmallRye Parent to 41
  • #1009 Register SecretKeysHandlerFactory with SmallRyeConfigBuilder
  • #1007 Bump org.apache.maven.plugins:maven-shade-plugin from 3.5.0 to 3.5.1
  • #1004 Support custom validator annotations at the nested element method
  • #1003 Improve normalization of profiled property
  • #1000 Reimplement handling of environment variables names to improve performance and allocation
  • #999 Deprecate unused APIs
  • #998 Allocation improvements
  • #997 Cache getPropertyNames
  • #996 Improve EnvConfigSource
  • #994 Bump dependency.version.openwebbeans from 2.0.27 to 4.0.0
  • #993 Improve DefaultValuesConfigSource
  • #992 Half-recursive getProperties
  • #982 Bump kotlin.version from 1.9.0 to 1.9.10
  • #979 Bump io.fabric8:docker-maven-plugin from 0.43.2 to 0.43.4
  • #977 Change getClassLoader from SmallRyeConfigBuilder to public
  • #976 Add API to register customizers directly with the builder
  • #975 Add a way to customize the SmallRyeConfigBuilder via ServiceLoader
  • #974 Bump org.eclipse.parsson:parsson from 1.1.3 to 1.1.4
  • #973 Bump org.yaml:snakeyaml from 2.0 to 2.1
  • #936 Bump pymdown-extensions from 9.5 to 10.0 in /documentation
Commits
  • 05624a0 [maven-release-plugin] prepare release 3.4.1
  • f75c675 Release 3.4.1 (#1019)
  • 673a0d3 Update SmallRye Commons to 2.2.0 (#1017)
  • 97bcfd0 Single StringBuilder allocation per find (#1016)
  • 7624248 Match and replace semantic property names in the EnvConfigSource (#1014)
  • 1810643 Clarify SmallRyeConfigBuilderCustomizer priority javadocs
  • e5bdb10 Do not override defaults set by the builder with mappings (#1013)
  • 1294b93 Bump io.smallrye:smallrye-parent from 40 to 41 (#1012)
  • c00f8f0 Create next milesone
  • 1876df5 [maven-release-plugin] prepare for next development iteration
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Oct 2, 2023
@dependabot dependabot bot requested review from cescoffier and ozangunalp October 2, 2023 21:24
@cescoffier
Copy link
Contributor

Still failing our environment property tests:
ConnectorConfigTest.testGetFromEnv:129

@cescoffier
Copy link
Contributor

(as for the previous one, do not update Quarkus until we have a way to support the same behavior)

@radcortez
Copy link
Member

The test is failing with mixed mode env vars like mp_messaging_connector_SOME_CONNECTOR_mixedcase. I believe these are acceptable entries and should be supported.

I'll fix the code here.

Bumps [io.smallrye.config:smallrye-config](https://github.com/smallrye/smallrye-config) from 3.3.4 to 3.4.1.
- [Release notes](https://github.com/smallrye/smallrye-config/releases)
- [Commits](smallrye/smallrye-config@3.3.4...3.4.1)

---
updated-dependencies:
- dependency-name: io.smallrye.config:smallrye-config
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@radcortez radcortez force-pushed the dependabot/maven/main/io.smallrye.config-smallrye-config-3.4.1 branch from 71ec9f6 to 9b697cf Compare October 4, 2023 07:30
@radcortez
Copy link
Member

I have updated the assertion to accept the mixed env var case. I don't think this is a breaking change.

@@ -126,7 +126,7 @@ public void testGetFromEnv() {
assertThat(config.getOptionalValue("ATTR4", String.class)).hasValue("used-2");
// Mixed case value in env should not be found as it does not match the key we're looking for
// either in its original casing, or after conversion to uppercase.
assertThat(config.getOptionalValue("mixedcase", String.class)).isEmpty();
assertThat(config.getOptionalValue("mixedcase", String.class)).hasValue("used");
Copy link
Contributor

Choose a reason for hiding this comment

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

That's a change of behavior.
I'm not sure we can accept this blindly. It's a breaking change; if we have that test, it's because it got reported. So, we are going to break at least one app.

Copy link
Member

Choose a reason for hiding this comment

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

The assert history is coming from the original commit in https://github.com/smallrye/smallrye-reactive-messaging/pull/1017/files#diff-9826df505660d404d63487cb621c216c80b55e45ad50f25a3f93a944fc634565R26, so it doesn't seem it was added on purpose by someone that reported that.

Consider the following:

FOO_bar_BAZ=1234

The previous implementation would match the env var with the following properties:

FOO.bar.BAZ
FOO_bar_BAZ
FOO_BAR_BAZ

The new implementation matches:

foo.bar.baz
FOO.bar.BAZ
FOO_bar_BAZ
FOO_BAR_BAZ

In my opinion, it doesn't make sense to match FOO.bar.BAZ and don't match foo.bar.baz. Effectively, they have the same semantic meaning.

Yes, I know that Env vars are case sensitive, but that something that the spec doesn't seem to care about. If that was the case, then FOO_BAR_BAZ shouldn't match.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah got it! So, yes, it's better now.

I thought it was something that was handled and became unhandled.

@ozangunalp ozangunalp merged commit 5dc9e6e into main Oct 4, 2023
5 checks passed
@ozangunalp ozangunalp deleted the dependabot/maven/main/io.smallrye.config-smallrye-config-3.4.1 branch October 4, 2023 12:41
@ozangunalp ozangunalp added this to the 4.11.0 milestone Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants