Git Product home page Git Product logo

Comments (7)

gotjosh avatar gotjosh commented on June 20, 2024 1

Thanks for the clarification πŸ˜‰

from prometheus.

gotjosh avatar gotjosh commented on June 20, 2024

It seems like with the upgrade of golangcilint some of the linter don't work (or work?) as expected. You can see an example of it here: #14215

@aknuds1 should we rollback #14153 until we figure it out?

from prometheus.

aknuds1 avatar aknuds1 commented on June 20, 2024

Why does a performance linter matter for test files?

from prometheus.

gotjosh avatar gotjosh commented on June 20, 2024

Why does a performance linter matter for test files?

It doesn't - but it's not the way it worked in the previous version thus can be considered a breaking change?

from prometheus.

gotjosh avatar gotjosh commented on June 20, 2024

When perfsprint was originally introduced it linted all of the test files too: #14091 - with the upgrade of golangcilint it stopped.

So at the very minimum, it is now inconsistent.

from prometheus.

aknuds1 avatar aknuds1 commented on June 20, 2024

I noticed that this particular line should have been caught by the linter and failed: https://github.com/prometheus/prometheus/blob/main/rules/manager_test.go#L198

It's not a regression. That line is not caught because of a perfsprint exclusion in .golangci.yml. That exclusion had to be updated for v1.59.0. That's why you see more things getting caught when downgrading.

from prometheus.

gotjosh avatar gotjosh commented on June 20, 2024

🀦 so this is actually text-based exclusion in golangcilint TIL.

This comment from BjΓΆrn makes all the sense in the world: #14091 (comment)

from prometheus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.