feat(ODBC): nix shells for mssql and oracle #5144#5145
Merged
Conversation
This was
linked to
issues
Dec 28, 2025
Oracle (oracle.nix): - Add --shm-size=1g for Oracle container (requires 1GB shared memory) - Add container state verification before exec commands - Add proper error handling with container log output on failure - Add pre-flight checks in build_and_test to verify container running - Add Podman environment info for CI debugging - Add progress indicators during Oracle startup wait - Exit with error in CI mode if container fails to start MSSQL (mssql.nix): - Add ODBCINSTINI environment variable - Add sync command to flush ODBC configs to disk - Add odbcinst verification commands Temporarily disable all ci except nix #5144
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 28 out of 28 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Nix-based ODBC Test Environments for SQL Server and Oracle
Summary
This PR introduces self-contained Nix shell environments for building and running Poco ODBC tests against SQL Server and Oracle databases. These environments use rootless Podman to manage database containers, making them easy to use locally and in CI without requiring Docker or system-level database installations.
Changes
New Files
Data/ODBC/mssql.nix- Nix shell environment for SQL Server ODBC testsbuild_and_test,start_mssql,stop_mssql,remove_mssql,mssql_shellData/ODBC/oracle.nix- Nix shell environment for Oracle ODBC testsbuild_and_test,start_oracle,stop_oracle,remove_oracle,oracle_shellData/ODBC/.gitignore- Ignores local data directories (.nix-mssql-data/,.nix-oracle-data/)CI Integration
Added two new CI jobs in
.github/workflows/ci.yml:nix-gcc-make-odbc-sqlserver- Runs SQL Server ODBC tests using the nix shellnix-gcc-make-odbc-oracle- Runs Oracle ODBC tests using the nix shellBoth jobs use the retry-action with 3 attempts and 90-minute timeout.
Usage
Prerequisites (Debian/Ubuntu)
Running Tests Locally
Running Tests in CI
Features
--pureflag ensures no interference from host environmentNotes