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.

Split checks from profiles

See original GitHub issue

Last time I tried to add a profile (#3168), I was told that we shouldn’t proliferate profiles and that the checks should find their way into other profiles. I agree with this, it’s a good idea! The problem is that the checks need to be “put” somewhere and right now the only place we have to put them is a package called fontbakery.profiles. Now we are talking about the GRAD check (#3187). I’m happy to write a check but I don’t want to have to fight over which profile it should go in. These are separate concepts.

In fact, right now, we have some files in fontbakery.profiles which describe profiles, some which describe checks, and some which contain both checks and profiles. This is a bit crazy.

I would like to see a package called fontbakery.checks which contains all the checking code, with fontbakery.profiles reserved for actual top-level profile. Things in fontbakery.profiles should just load up the checks that they need and return a list. This is cleaner and it also means that the list of profiles can be automatically loaded from all the modules in the package.

Eventually the fontbakery.profiles stuff can probably go away and become a bunch of JSON files.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
simoncozenscommented, Mar 7, 2021

I love that idea, as it would also allow individual projects to pass configuration details to the checks. This would clean up eg the shaping check, by eliminating hard-coded data file paths.

0reactions
graphicorecommented, Mar 19, 2021

(Maybe we must make namespace a literal thing, we could mix stuff, detect collisions … 🤔 )

I understand why it’s a good idea to make software implementations as generic as possible. But at some point you have to specialize. This project is called fontbakery; a certain amount of specialisation is expected. 😃

Maybe, but it’s neither necessary nor do we have to. Instead of specializing check_runner, we should specialize fonts_profile. A profile is nothing else than specialization for a purpose and providing a generic interface for check_runner.

So you want to namespace profiles so that different profiles can define different “kind of things” that they test, and Felipe wants profiles to be able to test many different kinds of things!

I can’t follow this. I don’t think it compares well. Felipe wants the fonts_profile to do things, I want the check_runner to be unaware of those things.

I also want to have attached to each check the environment information (namespace) it expects, but a profile already does that. The pool, by convention, could provide that environment information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Check splitting - Lightspeed Restaurant (K-Series)
Dividing checks by covers · Tap Split check on the bottom right of the Register screen. · Select Distribute by seat to separate...
Read more >
An Actual Fool-Proof Way to Split Your Check - Thrillist
The truth is, the ability to successfully split a check with friends, acquaintances, and assorted frenemies can be both a benchmark of maturity ......
Read more >
5 Apps That Take the Pain Out of Splitting the Bill
Plates by Splitwise is made especially to help split restaurant checks. Splitwise even keeps track of who's picked up the check and who...
Read more >
How to Split the Check in the Digital Age: 5 Tips from Real ...
1. Tell your server you need to split the check at the start of the meal. · 2. Don't forget how to tip...
Read more >
Bartenders/servers, how do you keep track of split checks?
I'll try to make large groups tell me if they have separate checks and whos on what then ring entire check on one...
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