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 unused protocol version envvar #21495

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

gosusnp
Copy link
Contributor

@gosusnp gosusnp commented Jan 17, 2023

What

  • We are not using and not planning to use the AIRBYTE_PROTOCOL_VERSION_MAX and AIRBYTE_PROTOCOL_VERSION_MIN environment variables.
  • The lookup generates noise in our logs as we are using the expected default.

How

Replace the var lookups by the hardcoded default directly to remove noise from the logs.

@gosusnp gosusnp temporarily deployed to more-secrets January 17, 2023 20:01 — with GitHub Actions Inactive
@@ -312,12 +310,12 @@ public AirbyteVersion getAirbyteVersion() {

@Override
public Version getAirbyteProtocolVersionMax() {
return new Version(getEnvOrDefault(AIRBYTE_PROTOCOL_VERSION_MAX, "0.3.0"));
return new Version("0.3.0");
Copy link
Contributor

Choose a reason for hiding this comment

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

Micronaut is expecting an envvar in the server it default to those values. But I think that we should check is other micronaut application.yml also specify a default value and don't rely on the return of this value.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When we get rid of EnvConfigs we should directly use the values from the micronaut config. Not sure where we are on this, this is a quick fix to remove logging noise.

@gosusnp gosusnp temporarily deployed to more-secrets January 17, 2023 20:02 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor

Airbyte Code Coverage

File Coverage [45.16%]
EnvConfigs.java 45.16%
Total Project Coverage 26.61% 🍏

Copy link
Contributor

@jdpgrailsdev jdpgrailsdev left a comment

Choose a reason for hiding this comment

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

:shipit:

@gosusnp gosusnp merged commit 3e05e43 into master Jan 17, 2023
@gosusnp gosusnp deleted the gosusnp/remove-unused-env-protocol-version-envvar branch January 17, 2023 22:42
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.

3 participants