• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sqitchers / sqitch / 18022546557
100%

Build:
DEFAULT BRANCH: develop
Ran 25 Sep 2025 10:50PM UTC
Jobs 1
Files 53
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Sep 2025 09:39PM UTC coverage: 100.0%. Remained the same
18022546557

push

github

theory
Add support for ClickHouse client config files

Follow as closely as possible the process for merging configurations
used by the ClickHouse CLI itself. That means:

*   Searching for the appropriate configuration files and stopping on
    the first one found
*   Supporting both XML and YAML configuration file formats
*   Merging host-specific configuration into root-level configuration

Use YAML::Tiny and XML::Tiny to handle the parsing of both formats. Use
a corpus of example configurations from the ClickHouse source code and
documentation to ensure both work. It turns out that installing
XML::LibXML is not easy on Windows, but XML::Tiny works without issue,
so go with it.

Use the configuration to update the deployment URL, username, and
password as appropriate. Enforce a secure connection if the
configuration file calls for it, uses the encrypted port, or specifies a
ClickHouse cloud domain. Map configuration variables to ODBC parameters
where equivalents exist.

The reverse isn't supported, alas, as the ClickHouse CLI doesn't have
options or environment variables for TLS client config, and it doesn't
seem sensible to try to write one. Better to work toward getting better
option support into the CLI.

This support for reading ClickHouse client configuration allows Sqitch
to support TLS client authentication. Update the `sqitch-authentication`
to document this support.

Move most instances of home directory detection to App::Sqitch::Config
to reduce duplication and to allow it to be mocked for testing.

While at it, remove defaulting the username to the system username, as
ClickHouse does not work that way, instead falling back on "default"
when no username is provided.

92 of 92 new or added lines in 2 files covered. (100.0%)

4816 of 4816 relevant lines covered (100.0%)

70.68 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18022546557.1 25 Sep 2025 10:50PM UTC 53
100.0
GitHub Action Run
Source Files on build 18022546557
  • Tree
  • List 53
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b44bb66b on github
  • Prev Build on develop (#18021440059)
  • Next Build on develop (#18043977376)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc