Lint only changed SQL files on PRs#4254
Conversation
…e for sqlfluff into Lint SQL workflow
|
I've got some questions:
It took 46 seconds, rather than 1 minute 38 seconds. So yes faster but only a minute faster. Is it worth running something different for SQLFluff for that? What's the issue you're looking to solve here? Also at the minute "Lint Code Base" will run anyway so we'll need to prevent that running otherwise there's not saving right? This is also a required action so we'd need to remove that and make it optional (not sure that's a big deal - we've already turned off Test Website since it didn't always run). We normally check them anyway so note sure we need the enforcement. I'm also tried running a total lint:
So again no real saving. Both also seemed to pick up new errors btw. We should look to fix thise. |
|
I suggest using the latest, lightweight SQL linter - via PIP. BTW Both your runs use PIP, not super-linter. |
Yeah not adverse to that. If we can update this the other points above to not run both. Since your diff code is relatively easy maybe we should aim tom remove superlinter altogether? Depends if we have Python or JS versions of all the linters.
🤦♂️ Ooops. Silly.
So in this case these are extra checks. So fixing (or skipping with a |
|
I don't think we should drop super-linter - we use ~10 linters and it's easy to just run all of them for the I've updated all the points now. |
Co-authored-by: Barry Pollard <barrypollard@google.com>
Co-authored-by: Barry Pollard <barrypollard@google.com>
Added diff logic to SQL linting task.
It finished linting SQL faster than it takes to download super-linter image.