Merged
Conversation
1b2b507 to
a285175
Compare
mye956
reviewed
Mar 4, 2026
agent/eni/watcher/watcher.go
Outdated
| log.Infof("Emitting task ENI attached event for: %s", eni.String()) | ||
| logger.Info("ENI Watcher: emitting task ENI attached event", logger.Fields{ | ||
| "primaryMAC": eniWatcher.primaryMAC, | ||
| field.TaskARN: eni.TaskARN, |
Contributor
There was a problem hiding this comment.
q: do we want to have a read lock/have getters for the ENI attachment object before accessing its field values? (looks like there's a lock for ENI attachments)
Contributor
Author
There was a problem hiding this comment.
that's a good point, i can add a read lock here and below where I am replacing eni.String()
70bac13 to
10f36fa
Compare
10f36fa to
a4da882
Compare
sparrc
commented
Mar 4, 2026
| testTask.Containers[0].Memory = 20 | ||
| testTask.Containers[0].Image = testBusyboxImage | ||
| testTask.Containers[0].Command = []string{"sh", "-c", `x="a"; while true; do x=$x$x$x; done`} | ||
| // should cause sh to get oomkilled as pid 1 |
Contributor
Author
There was a problem hiding this comment.
unrelated integ test fix that was causing TestInitOOMEvent to be flaky
35c6a62 to
e0b0337
Compare
06e8681 to
1a8c265
Compare
1a8c265 to
6c3f243
Compare
TheanLim
approved these changes
Mar 6, 2026
singholt
approved these changes
Mar 6, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Overall enhance logging in the ENI watcher to have more detailed logs when ENI attachments happen, and convert some "legacy" logs to structured format.
logger.Fields) to ENI Watcher for udev event handling and ENI state changesprimaryMACfield in all log messagesImplementation details
Logs when running a non-trunking awsvpc task (debug logs will also show relevant logs from the
wakeup,pci, andqueuessubsystems).After change:
Before change:
Testing
manually ran awsvpc tasks on an EC2 instance, inspected logs
New tests cover the changes: no
Description for the changelog
Enhancement: Improve ENI watcher udev logging
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.