René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0fb165f7-0c11-4944-9e5e-f0b178c9d9f4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC94A:1C5BDD:4089E2:55B392:6A5192C4
html-safe-nonce8977b8c61d68c93822da2582e50bef9c7d8dd84eeb2cc350684e5a5a2060509c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTRBOjFDNUJERDo0MDg5RTI6NTVCMzkyOjZBNTE5MkM0IiwidmlzaXRvcl9pZCI6IjY2NTY5MDY1MDExODgzMjYwODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacab15df7c374be801abfe30f5e59881b0eac69cea4075d5e10c28713eaf659f79
hovercard-subject-tagpull_request:3114724742
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/sqlc-dev/sqlc/pull/4236/files
twitter:imagehttps://avatars.githubusercontent.com/u/34893?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/34893?s=400&v=4
og:image:altAdd 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git
octolytics-dimension-user_id136738596
octolytics-dimension-user_loginsqlc-dev
octolytics-dimension-repository_id193160679
octolytics-dimension-repository_nwosqlc-dev/sqlc
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id193160679
octolytics-dimension-repository_network_root_nwosqlc-dev/sqlc
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/sqlc-dev/sqlc/pull/4236/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F4236%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F4236%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=sqlc-dev%2Fsqlc
Reloadhttps://github.com/sqlc-dev/sqlc/pull/4236/files
Reloadhttps://github.com/sqlc-dev/sqlc/pull/4236/files
Reloadhttps://github.com/sqlc-dev/sqlc/pull/4236/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/4236/files
sqlc-dev https://github.com/sqlc-dev
sqlchttps://github.com/sqlc-dev/sqlc
Notifications https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc
Fork 1.1k https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc
Star 18k https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc
Code https://github.com/sqlc-dev/sqlc
Issues 597 https://github.com/sqlc-dev/sqlc/issues
Pull requests 106 https://github.com/sqlc-dev/sqlc/pulls
Discussions https://github.com/sqlc-dev/sqlc/discussions
Actions https://github.com/sqlc-dev/sqlc/actions
Projects https://github.com/sqlc-dev/sqlc/projects
Security and quality 0 https://github.com/sqlc-dev/sqlc/security
Insights https://github.com/sqlc-dev/sqlc/pulse
Code https://github.com/sqlc-dev/sqlc
Issues https://github.com/sqlc-dev/sqlc/issues
Pull requests https://github.com/sqlc-dev/sqlc/pulls
Discussions https://github.com/sqlc-dev/sqlc/discussions
Actions https://github.com/sqlc-dev/sqlc/actions
Projects https://github.com/sqlc-dev/sqlc/projects
Security and quality https://github.com/sqlc-dev/sqlc/security
Insights https://github.com/sqlc-dev/sqlc/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsqlc-dev%2Fsqlc%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc%2Fissues%2Fnew%2Fchoose
kyleconroyhttps://github.com/kyleconroy
mainhttps://github.com/sqlc-dev/sqlc/tree/main
claude/e2e-tests-no-docker-WA43chttps://github.com/sqlc-dev/sqlc/tree/claude/e2e-tests-no-docker-WA43c
Conversation 0 https://github.com/sqlc-dev/sqlc/pull/4236
Commits 9 https://github.com/sqlc-dev/sqlc/pull/4236/commits
Checks 12 https://github.com/sqlc-dev/sqlc/pull/4236/checks
Files changed https://github.com/sqlc-dev/sqlc/pull/4236/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/4236/files
feat: add native database support for e2e tests without Docker https://github.com/sqlc-dev/sqlc/pull/4236/files#top
Show all changes 9 commits https://github.com/sqlc-dev/sqlc/pull/4236/files
693c335 feat: add native database support for e2e tests without Docker claude Dec 18, 2025 https://github.com/sqlc-dev/sqlc/pull/4236/commits/693c3354477942001544f4d2b223bba09b90c190
1a2126d fix: fail tests instead of skipping when database unavailable claude Dec 18, 2025 https://github.com/sqlc-dev/sqlc/pull/4236/commits/1a2126df8fbcc80839e2c43b827e1e49f87deba0
e0cd02f fix: only enable managed-db context when databases are available claude Dec 18, 2025 https://github.com/sqlc-dev/sqlc/pull/4236/commits/e0cd02f0d3bc1dacf3362cf2b609f97ed1e10b36
a354b38 fix: restore skip behavior in local database helpers claude Dec 18, 2025 https://github.com/sqlc-dev/sqlc/pull/4236/commits/a354b38cd181ea7eb86cb5014edbd6f3d32ff92c
7f2af48 fix: add timeout to MySQL apt-get installation claude Dec 18, 2025 https://github.com/sqlc-dev/sqlc/pull/4236/commits/7f2af48e387bbf6645f57abb117fa7ce8cee6bf6
43aa8f9 fix: use Linux timeout command for apt-get installation claude Dec 18, 2025 https://github.com/sqlc-dev/sqlc/pull/4236/commits/43aa8f96dc63bfb7c4f9ec5120784729cee117ce
2b4e740 refactor: remove apt-get installation from native database support claude Dec 18, 2025 https://github.com/sqlc-dev/sqlc/pull/4236/commits/2b4e7401e7f59fd1e3de8808cddeb185d5af1652
4d81c76 chore: remove GitHub Actions references from comments claude Dec 18, 2025 https://github.com/sqlc-dev/sqlc/pull/4236/commits/4d81c76f567f105b33074dde1035ad40f49cdccf
ebe4489 chore: remove GitHub Actions section from CLAUDE.md claude Dec 18, 2025 https://github.com/sqlc-dev/sqlc/pull/4236/commits/ebe4489575610372b5ed2adca7d6a2ec784e174c
Clear filters https://github.com/sqlc-dev/sqlc/pull/4236/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/4236/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/4236/files
CLAUDE.md https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-f5f873f94fdb91c1fcf18b255a693eb3a28795a417d6304801711fb6efcd0cad
endtoend_test.go https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-05b57a482f9a1eab1ee8b30fa77f0daa2bd2e3f7b1e5031e477a851ae3ec7f5e
mysql.go https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-b7f14f147b022620d19d5bd3953e122c865316f56b41a3701dae680f1231f678
postgres.go https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-4c5614e13814f16ba83c7a6933f1c1f1c94ff202ef37c2dde8b8403001abc04a
enabled.go https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-1831a5c02e1c90ab64ffef6146387e60bc9a3854fa855658fe4e583f7047afb7
mysql.go https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-0de07a55797e1c5893648eb9ed66f39a5d6dbc6f404135ffc986cdcb5dbcd861
postgres.go https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-e29c4106a466057b3e4af697e40bcd11868ed4ce20ac4fe284ab6b499ea548af
internal/endtoend/CLAUDE.mdhttps://github.com/sqlc-dev/sqlc/pull/4236/files#diff-f5f873f94fdb91c1fcf18b255a693eb3a28795a417d6304801711fb6efcd0cad
View file https://github.com/sqlc-dev/sqlc/blob/ebe4489575610372b5ed2adca7d6a2ec784e174c/internal/endtoend/CLAUDE.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/4236/{{ revealButtonHref }}
internal/endtoend/endtoend_test.gohttps://github.com/sqlc-dev/sqlc/pull/4236/files#diff-05b57a482f9a1eab1ee8b30fa77f0daa2bd2e3f7b1e5031e477a851ae3ec7f5e
View file https://github.com/sqlc-dev/sqlc/blob/ebe4489575610372b5ed2adca7d6a2ec784e174c/internal/endtoend/endtoend_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/4236/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-05b57a482f9a1eab1ee8b30fa77f0daa2bd2e3f7b1e5031e477a851ae3ec7f5e
https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-05b57a482f9a1eab1ee8b30fa77f0daa2bd2e3f7b1e5031e477a851ae3ec7f5e
https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-05b57a482f9a1eab1ee8b30fa77f0daa2bd2e3f7b1e5031e477a851ae3ec7f5e
https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-05b57a482f9a1eab1ee8b30fa77f0daa2bd2e3f7b1e5031e477a851ae3ec7f5e
https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-05b57a482f9a1eab1ee8b30fa77f0daa2bd2e3f7b1e5031e477a851ae3ec7f5e
https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-05b57a482f9a1eab1ee8b30fa77f0daa2bd2e3f7b1e5031e477a851ae3ec7f5e
internal/sqltest/local/mysql.gohttps://github.com/sqlc-dev/sqlc/pull/4236/files#diff-b7f14f147b022620d19d5bd3953e122c865316f56b41a3701dae680f1231f678
View file https://github.com/sqlc-dev/sqlc/blob/ebe4489575610372b5ed2adca7d6a2ec784e174c/internal/sqltest/local/mysql.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/4236/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-b7f14f147b022620d19d5bd3953e122c865316f56b41a3701dae680f1231f678
https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-b7f14f147b022620d19d5bd3953e122c865316f56b41a3701dae680f1231f678
https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-b7f14f147b022620d19d5bd3953e122c865316f56b41a3701dae680f1231f678
internal/sqltest/local/postgres.gohttps://github.com/sqlc-dev/sqlc/pull/4236/files#diff-4c5614e13814f16ba83c7a6933f1c1f1c94ff202ef37c2dde8b8403001abc04a
View file https://github.com/sqlc-dev/sqlc/blob/ebe4489575610372b5ed2adca7d6a2ec784e174c/internal/sqltest/local/postgres.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/4236/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-4c5614e13814f16ba83c7a6933f1c1f1c94ff202ef37c2dde8b8403001abc04a
https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-4c5614e13814f16ba83c7a6933f1c1f1c94ff202ef37c2dde8b8403001abc04a
https://github.com/sqlc-dev/sqlc/pull/4236/files#diff-4c5614e13814f16ba83c7a6933f1c1f1c94ff202ef37c2dde8b8403001abc04a
internal/sqltest/native/enabled.gohttps://github.com/sqlc-dev/sqlc/pull/4236/files#diff-1831a5c02e1c90ab64ffef6146387e60bc9a3854fa855658fe4e583f7047afb7
View file https://github.com/sqlc-dev/sqlc/blob/ebe4489575610372b5ed2adca7d6a2ec784e174c/internal/sqltest/native/enabled.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/4236/{{ revealButtonHref }}
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/4236/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/4236/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.