-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
raft: raftlogger
and rafttest
should use pkg/util/log
instead of stdlib log
package
#132262
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-kv
KV Team
Comments
rickystewart
added
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-kv
KV Team
labels
Oct 9, 2024
rickystewart
added a commit
to rickystewart/cockroach
that referenced
this issue
Oct 9, 2024
We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` which will need some extra TLC by the owning team (see cockroachdb#132262) Closes cockroachdb#132258 Epic: none Release note: None
rickystewart
added a commit
to rickystewart/cockroach
that referenced
this issue
Oct 9, 2024
We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` which will need some extra TLC by the owning team (see cockroachdb#132262) Closes cockroachdb#132258 Epic: none Release note: None
rickystewart
added a commit
to rickystewart/cockroach
that referenced
this issue
Oct 9, 2024
We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` which will need some extra TLC by the owning team (see cockroachdb#132262) Closes cockroachdb#132258 Epic: none Release note: None
rickystewart
added a commit
to rickystewart/cockroach
that referenced
this issue
Oct 9, 2024
We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` which will need some extra TLC by the owning team (see cockroachdb#132262) Closes cockroachdb#132258 Epic: none Release note: None
rickystewart
added a commit
to rickystewart/cockroach
that referenced
this issue
Oct 9, 2024
We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` which will need some extra TLC by the owning team (see cockroachdb#132262) Closes cockroachdb#132258 Epic: none Release note: None
rickystewart
added a commit
to rickystewart/cockroach
that referenced
this issue
Oct 9, 2024
We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` which will need some extra TLC by the owning team (see cockroachdb#132262) Closes cockroachdb#132258 Epic: none Release note: None
rickystewart
changed the title
raft:
raft: Oct 9, 2024
raftlogger
should use pkg/util/log
instead of stdlib log
packageraftlogger
and rafttest
should use pkg/util/log
instead of stdlib log
package
rickystewart
added a commit
to rickystewart/cockroach
that referenced
this issue
Oct 9, 2024
We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` which will need some extra TLC by the owning team (see cockroachdb#132262) Closes cockroachdb#132258 Epic: none Release note: None
rickystewart
added a commit
to rickystewart/cockroach
that referenced
this issue
Oct 10, 2024
We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` which will need some extra TLC by the owning team (see cockroachdb#132262) Closes cockroachdb#132258 Epic: none Release note: None
craig bot
pushed a commit
that referenced
this issue
Oct 10, 2024
132263: lint: fix `TestForbiddenImports` r=rail,herkolategan a=rickystewart We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` and `rafttest` which will need some extra TLC by the owning team (see #132262) Closes #132258 Epic: none Release note: None 132341: roachtest: run perf tests with sql and kv mode r=jeffswenson a=msbutler Epic: none Release note: none Co-authored-by: Ricky Stewart <[email protected]> Co-authored-by: Michael Butler <[email protected]>
rickystewart
added a commit
to rickystewart/cockroach
that referenced
this issue
Oct 10, 2024
We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` which will need some extra TLC by the owning team (see cockroachdb#132262) Closes cockroachdb#132258 Epic: none Release note: None
rickystewart
added a commit
to rickystewart/cockroach
that referenced
this issue
Oct 10, 2024
We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` which will need some extra TLC by the owning team (see cockroachdb#132262) Closes cockroachdb#132258 Epic: none Release note: None
This was referenced Oct 10, 2024
rickystewart
added a commit
to rickystewart/cockroach
that referenced
this issue
Oct 10, 2024
We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` which will need some extra TLC by the owning team (see cockroachdb#132262) Closes cockroachdb#132258 Epic: none Release note: None
This was referenced Oct 10, 2024
rickystewart
added a commit
to rickystewart/cockroach
that referenced
this issue
Oct 10, 2024
We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` which will need some extra TLC by the owning team (see cockroachdb#132262) Closes cockroachdb#132258 Epic: none Release note: None
rickystewart
added a commit
to rickystewart/cockroach
that referenced
this issue
Oct 10, 2024
We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` which will need some extra TLC by the owning team (see cockroachdb#132262) Closes cockroachdb#132258 Epic: none Release note: None
mw5h
pushed a commit
to mw5h/cockroach
that referenced
this issue
Oct 11, 2024
We need to set `Dir` in the `packages.Load()` call or else the whole thing doesn't work. It would be really nice if it threw an error instead of simply doing nothing, but it is what it is. To guard against this in the future I added an error if the list is empty. Fix the test then all existing violations, except for `raftlogger` which will need some extra TLC by the owning team (see cockroachdb#132262) Closes cockroachdb#132258 Epic: none Release note: None
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-kv
KV Team
This lint failure was uncovered when #132258 was addressed:
Attempting to follow this advice results in the following:
So some refactoring is necessary here.
For now we will exempt this in the lint check.
There is also an issue with
rafttest
(fails to find a functionlog.Printf()
)Jira issue: CRDB-42906
The text was updated successfully, but these errors were encountered: