Skip to content

fix: support v-prefixed connector versions and remove slf4j-nop profile - #4952

Merged
rayudu3745 merged 2 commits into
GoogleCloudPlatform:postgresql-dialectfrom
rayudu3745:connector-release-fixes
Sep 29, 2026
Merged

rayudu3745 merged 2 commits into
GoogleCloudPlatform:postgresql-dialectfrom
rayudu3745:connector-release-fixes

Conversation

@rayudu3745

Copy link
Copy Markdown
Collaborator
  • Suppress SLF4J missing-provider stderr warnings via -Dslf4j.internal.verbosity=ERROR in the launcher scripts (spanner-pg-connector, spanner-pg-connector.cmd) and remove the connector Maven profile (slf4j-nop) from pom.xml.
  • Update install.sh and install.ps1 to accept optional v-prefixed release versions (vX.Y.Z) when resolving the latest package from Artifact Registry.
  • Remove spanner-pg-connector/cloudbuild.yaml . release builds and verification are managed by the louhi release pipeline.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request removes the 'connector' Maven profile and the Cloud Build release pipeline configuration, adds '-Dslf4j.internal.verbosity=ERROR' to the startup scripts to suppress verbose logging, and updates the installer scripts to support version tags with an optional 'v' prefix. Feedback was provided on 'install.sh' to retain the cleanup of 'pgadapter.jsa' and 'install_path.txt' to avoid leaving large orphaned files on user upgrades.

Comment thread spanner-pg-connector/install.sh
Process connector = startConnector(tool.getAbsolutePath());
try {
String clientPid = awaitContents(pidFile);
Thread.sleep(200L);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Never use Thread.sleep(..) in tests, at least not as a method to 'wait until something has happened'. It always comes with a risk that the test becomes flaky, and there is (almost) always some other way that you can achieve the same (e.g. by doing a busy wait and check for a specific condition, or by using some form of deterministic synchronization between threads).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

noted, merging this for now

@rayudu3745
rayudu3745 merged commit d87e0bc into GoogleCloudPlatform:postgresql-dialect Sep 29, 2026
45 checks passed
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.

2 participants