Skip to content

chore(bigquery-jdbc): dockerized proxy environment to run integration tests#13546

Open
logachev wants to merge 2 commits into
mainfrom
kirl/it_with_proxy
Open

chore(bigquery-jdbc): dockerized proxy environment to run integration tests#13546
logachev wants to merge 2 commits into
mainfrom
kirl/it_with_proxy

Conversation

@logachev

Copy link
Copy Markdown
Contributor

This PR allows building regular & environment with proxy via Dockerfile.

Proxy environment restricts all internet traffic except maven.org, so it allows us to run entire IT suite with proxy to ensure it is operational.

I confirmed that #13539 passes majority of IT (failing tests are due to test setup rather than code, there will be separate PR to fix it & run it as a part of nightly workflow).

I also confirmed that if we had these tests enabled sooner, we'd catch #13494

@logachev logachev requested review from a team as code owners June 24, 2026 00:05

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces a Dockerized proxy environment for integration testing of the Java BigQuery JDBC driver. It adds multi-stage Docker builds, configures a Squid proxy with iptables rules to restrict raw network access (while allowing Maven Central), and updates the Maven configuration to support skipping the shade plugin. Feedback on these changes highlights two issues: first, the docker-proxy-session target in the Makefile references an undefined .docker-run-proxy target, which will cause execution to fail; second, the proxy readiness check in start-proxy.sh attempts to curl google.com, which is blocked by the iptables rules, and should instead use the allowed Maven Central domain.

Comment thread java-bigquery-jdbc/Makefile Outdated
Comment thread java-bigquery-jdbc/tools/environments/proxy/start-proxy.sh
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.

1 participant