-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[chore] Remove new-from-rev parameter from golangci-lint #21266
Conversation
6da8887
to
618a3b2
Compare
618a3b2
to
3a0778e
Compare
Bloop Bleep... Dogbot HereRegression Detector ResultsRun ID: d4450b23-ab73-4ee8-825d-25324f72da97 Explanation A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI". For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:
No interesting changes in experiment optimization goals with confidence ≥ 90.00% and |Δ mean %| ≥ 5.00%. Experiments that were not declared erratic but were detected as being so, coefficient of variation cutoff 0.10:
Fine details of change detection per experiment.
|
2ba30b0
to
638053d
Compare
638053d
to
ce06c74
Compare
/merge -m rebase |
🚂 MergeQueue Pull request added to the queue. This build is next! (estimated merge in less than 45m) you can cancel this operation by commenting your pull request with |
What does this PR do?
Removes the
new-from-rev
parameter from golangci-lint.Adds linter placeholders for all failures reported by revive and other linters.
Motivation
While it temporarily enabled us to re-enable the
revive
linter a few months ago, thenew-from-rev
parameter has harmful side-effects:new-from-rev
commit, when these linter failures are due to changes in other files (eg. a function becomes unused).golangci-lint
would throw linter errors that are unrelated to the changes.Additional Notes
gofmt
also forced a change inpkg/gohai/cpu/lscpu_linux_arm64.go
, please verify that it is okay to keep.Possible Drawbacks / Trade-offs
n/a
Describe how to test/QA your changes
Run a full pipeline, verify that it passes.
Reviewer's Checklist
Triage
milestone is set.major_change
label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.changelog/no-changelog
label has been applied.qa/skip-qa
label is not applied.team/..
label has been applied, indicating the team(s) that should QA this change.need-change/operator
andneed-change/helm
labels have been applied.k8s/<min-version>
label, indicating the lowest Kubernetes version compatible with this feature.