Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
QxBytes ff0c3ea315
fix: move bufio reader creation out of for loop to fix telemetry unmarshal errors (#2789)
* move bufio reader creation out of for loop

if the bufio reader is created in the for loop we get unmarshaling errors

* fix linter issue

* add fixed ut

* fix existing unit test flake due to closing pipe on error

a previous fix ensured the socket closed on error, but this caused an existing ut to nondeterministically fail
without the previous fix, the socket wouldn't have been closed on error

* make read inline
2024-06-21 18:42:27 +00:00
Paul Yu ae37d40982
[CNI] zap logger for platform package (#2233)
* zap logger for platform package
2023-10-13 12:08:58 -07:00
Paul Yu ae0c08c9d7
[CNI] zap logger telemetry package (#2266)
* zap logger telemetry package
2023-10-04 11:43:46 -07:00
tamilmani1989 cdab7d0241
Use Lockedfile api to acquire lock (#1070)
* added lockedfileapi support for CNI

* fixed interface changes

* addressed comments
fixed ut

* addressed comments

* fixed copy to buffer part in writer api

* fixed copy to buffer part in writer api

* keeping old code not changing it.
2021-11-09 08:19:44 -08:00
tamilmani1989 30b1de2218
chore: Refactor UTs in telemetry packages (#1011) (#1024)
* Refactor UTs to cleanup UTs and increase UT coverages

* User assert for consistency

* Applied comments and resolve lint error

* Delete unnecessary license header

Co-authored-by: JungukCho <jungukcho@microsoft.com>
2021-09-20 13:55:21 -05:00