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.

Can't exclude Explores using Config file with the new Spectacles 2.X

See original GitHub issue

Hi, First of all, thanks a lot for your amazing work on Spectacles 2.X 🚀 I have been trying to adapt my Looker repo to the recent Spectacles version, and I think I run into a problem trying to exclude specific explores from the tests. I am using the SQL Validator and I want to pass the explores argument as part of my config.yml file. Since the --exclude arg was removed I need to do it using a leading hyphen for the explores that I want to exclude. I have been looking at your documentation though all the examples are only using the command line.

Basically the problem that I encountered is the following: From the command line this works perfectly and runs all explores in model_a excluding explore_b:

--explores "model_a/*" -model_a/explore_b

But the following code in config file still runs all explores in model_a and does not exclude the explore_b:

explores:
  - model_a/*
  - -model_a/explore_b

Very similar behaviour was observed with the following: From the command line this works perfectly and runs all explores in all models except for model_a/explore_b:

--explores -model_a/explore_b

But the following code in config file does not run anything and gives me the Testing 0 explores:

explores:
  - -model_a/explore_b

Would this be related to the fact that hyphen is used in yaml to specify the elements of a list? Or am I doing something wrong in my config file and in this case what should be the right syntax to exclude some specific explores from a model?

Sorry for bothering you, and thank you so much for your help! 🙂

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
DylanBakercommented, Mar 4, 2022

@mathieu-chiavassa Glad that sorted it! I’m actually going to leave the issue open as we’d like to make this work with just the dash in both setups.

0reactions
mathieu-chiavassacommented, Mar 4, 2022

Hey @DylanBaker ! Amazing, yes it works like that with ~ 🚀 I’ll close the issue.

Thank you so much for your time today it was really helpful !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Explore auto layout properties - Figma Help Center
Auto layout is a property you can add to frames and components. It lets you create designs that grow to fill or shrink...
Read more >
Remove "You're in Internet Explorer mode" from Edge
Currently it is set to <meta http-equiv="X-UA-Compatible" content="IE=5"> . Is there something I can change on the server? Something in the app?
Read more >
Configuring Rails Applications - Ruby on Rails Guides
Configuring Rails ApplicationsThis guide covers the configuration and initialization features available to Rails applications.After reading this guide, ...
Read more >
Configure Grafana | Grafana documentation
Otherwise, add a configuration file named custom.ini to the conf folder to override the settings defined in conf/defaults.ini . Remove comments in the...
Read more >
Known issues in After Effects - Adobe Support
Issue: You are unable to select from the Use options from the Video Rendering and Effects dropdown because it is greyed out. Or,...
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