-
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
roachtest: prefix all logs with worker tags #124027
roachtest: prefix all logs with worker tags #124027
Conversation
This LGTM, and I'm fine as-is, but now that I've taken a closer look, I'm starting to wonder whether we should change our approach. For instance, looking at the test runner logs from a recent run [1], I see a couple of other entries that don't have the worker tag and would continue to not have that tag even after this PR:
The main difficulty is that the That said, I'm wondering if we should make this easier for ourselves by not relying on log tags to add the worker annotation. Specifically, we could use the
With this approach, [2] cockroach/pkg/cmd/roachtest/roachtestutil/mixedversion/mixedversion.go Lines 782 to 789 in 2f739e8
|
b627984
to
336d8c3
Compare
Tested out the changes. The worker log files are being created parallel to the Also, the entries you mentioned now do have a tag.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I played around with it locally and everything works for me. One tiny question but otherwise LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I think we should not return
on the worker and fallback to the parent logger as already mentioned, but otherwise LGTM.
63583c5
to
cba5427
Compare
Previously, many of the runner logs didn't have the worker tags. This was inadequate because we couldn't break up the logs by wX tags to see what each worker is doing. This PR prefixes the worker tags to logs that were missing them. Epic: none Fixes: cockroachdb#114045 Release note: None
cba5427
to
0a2f34e
Compare
bors r+ |
This PR was included in a batch that was canceled, it will be automatically retried |
blathers backport 24.1 23.2 |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error creating merge commit from 0a2f34e to blathers/backport-release-24.1-124027: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 24.1 failed. See errors above. error creating merge commit from 0a2f34e to blathers/backport-release-23.2-124027: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 23.2 failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
Previously, many of the runner logs didn't have the worker tags. This was inadequate because we couldn't break up the logs by
wX
tags to see what each worker was doing.This PR prefixes worker tags to the logs that were missing them.
Epic: none
Fixes: #114045
Release note: None