question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

increase CI test coverage for connection target types

See original GitHub issue

give the weird behavior we saw with connection strings and SqlPassword=True. @NandanHegde15 had the idea to have a separate Circle CI job would be verify that dbt debug works on all target configurations that are commonly used. We can either add this to #62 or in a new PR after #62 is merged.

The ones I can think of:

  • trusted_connection=True
  • windows_integrated=True
  • when Encrypt and TrustServerCertificate aren’t specified
  • the various combos ofEncrypt, TrustServerCertificate, and SqlPassword
  • Active Directory
    • Password
    • Integrated (trickier as it would require a VM and an AD user in the same RG as the Azure SQL server)
    • Interactive

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jtcohen6commented, Dec 17, 2020

@swanderz I don’t think dbt debug returns nonzero exit codes, but you could do it just as well by executing a dbt compile command with each permutation.

I think you could do that outside of the pytest framework to start: create a sample.profiles.yml with a whole range of targets. In your Circle steps, copy that profile and execute dbt compile --target {target} for each.

0reactions
dataderscommented, Jan 4, 2021

working on this today!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customize pipeline configuration - GitLab Docs
On the left sidebar, select Settings > CI/CD. Expand General pipelines. In the Pipeline status, Coverage report, or Latest release sections, view the...
Read more >
Adding test coverage to your CI pipeline | Coveralls and CircleCI
Adding tests to complete coverage ... Open the new results at coverage/index.html . ... Coverage has increased from 80% to 100% (and turned...
Read more >
Code coverage for pull requests - Azure Pipelines
In this pipeline, configure the test tool you are using to collect code coverage metrics. Coverage results must then be published to the...
Read more >
Common Configurations - Codecov
Set status checks to block coverage · Increase overall coverage on each pull request · Ease target coverage · Ensure all code is...
Read more >
Test Coverage Techniques: The Top Ones You Need - Testim.io
Let's first see code coverage. Expand Your Test Coverage. Fast and flexible authoring of AI-powered end-to-end tests — built for scale.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found