Title: feat: add native database support for e2e tests without Docker by kyleconroy · Pull Request #4236 · sqlc-dev/sqlc · GitHub
Open Graph Title: feat: add native database support for e2e tests without Docker by kyleconroy · Pull Request #4236 · sqlc-dev/sqlc
X Title: feat: add native database support for e2e tests without Docker by kyleconroy · Pull Request #4236 · sqlc-dev/sqlc
Description: Add a new native package (internal/sqltest/native/) that can install and start PostgreSQL and MySQL servers directly on Linux systems without requiring Docker. This enables running end-to-end tests in environments where Docker is not available (e.g., CI environments without Docker). Key changes: Add internal/sqltest/native/ package with support for: PostgreSQL installation and startup via apt-get and systemctl/pg_ctlcluster MySQL installation and startup via apt-get and systemctl/service Graceful fallback when installation fails (e.g., no network) Update internal/sqltest/local/ to fall back to native installation when Docker is not available Update internal/endtoend/endtoend_test.go to: Check environment variables first (POSTGRESQL_SERVER_URI, MYSQL_SERVER_URI) Fall back to Docker, then native installation Skip database-specific tests when that database is unavailable Support partial database availability (run with just PostgreSQL) 🤖 Generated with Claude Code Co-Authored-By: Claude noreply@anthropic.com
Open Graph Description: Add a new native package (internal/sqltest/native/) that can install and start PostgreSQL and MySQL servers directly on Linux systems without requiring Docker. This enables running end-to-end tests...
X Description: Add a new native package (internal/sqltest/native/) that can install and start PostgreSQL and MySQL servers directly on Linux systems without requiring Docker. This enables running end-to-end tests...
Opengraph URL: https://github.com/sqlc-dev/sqlc/pull/4236
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0fb165f7-0c11-4944-9e5e-f0b178c9d9f4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C94A:1C5BDD:4089E2:55B392:6A5192C4 |
| html-safe-nonce | 8977b8c61d68c93822da2582e50bef9c7d8dd84eeb2cc350684e5a5a2060509c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTRBOjFDNUJERDo0MDg5RTI6NTVCMzkyOjZBNTE5MkM0IiwidmlzaXRvcl9pZCI6IjY2NTY5MDY1MDExODgzMjYwODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ab15df7c374be801abfe30f5e59881b0eac69cea4075d5e10c28713eaf659f79 |
| hovercard-subject-tag | pull_request:3114724742 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/sqlc-dev/sqlc/pull/4236/files |
| twitter:image | https://avatars.githubusercontent.com/u/34893?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/34893?s=400&v=4 |
| og:image:alt | Add a new native package (internal/sqltest/native/) that can install and start PostgreSQL and MySQL servers directly on Linux systems without requiring Docker. This enables running end-to-end tests... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width