91 Commits
Author SHA1 Message Date
Ciprian Hacman b02e2dcd09 Precompile log buffer regular expressions
Compile fixed patterns during monitor and log counter initialization, pass compiled expressions to the log buffer, and reject invalid log counter patterns before watching logs.
2026-07-25 09:21:31 +03:00
Ciprian Hacman 87dfadb120 Fix invalid config JSON and enforce canonical config format
config/disk-log-message-filelog.json contained trailing commas and no
trailing newline, so it could not be parsed by encoding/json and NPD
would fail to start when configured with it.

- Fix the invalid JSON
- Add TestShippedConfigs, which verifies that every shipped JSON config
  under config/ (top level and one directory down) parses (catching
  trailing commas, UTF-8 BOMs and other syntax errors) and is in the
  canonical format (2-space indent, trailing newline), showing a diff on
  failure
- Add `make fmt-configs` to rewrite nonconforming files in place
  (UPDATE_EXPECTED=y)
- Normalize the existing config files to the canonical format
  (whitespace-only changes)
2026-07-22 07:58:20 +03:00
Ciprian Hacman b28b99ca4f chore(docs): Add security policy for dependency CVEs and scanner findings 2026-07-12 00:20:58 +03:00
Ciprian Hacman bcdc713113 docs: update release process for Cloud Build images and make release-new
Containers are now built and pushed to staging automatically by Cloud
Build on tag push, and release tarballs are extracted from the promoted
registry.k8s.io images via 'make release-new'. Update the doc to cover
the Windows image, crane-based digest lookup, and refresh the examples
to v1.36.0.
2026-07-11 20:32:42 +03:00
Ciprian Hacman 20c2281883 Release v1.37.0-alpha.1 2026-07-11 20:18:03 +03:00
Ciprian Hacman 8a2a897a0f chore(deps): pre-vendor OpenTelemetry dependencies 2026-07-11 19:32:53 +03:00
Ciprian HacmanandGitHub 19d58b0ede Release v1.36.0 (#1312) 2026-07-11 15:37:44 +00:00
Ciprian Hacman a20306e6a1 fix(logwatchers/kmsg): don't close the old parser twice when Stop() interrupts a restart
The restart path closes the failed parser before retrying. If stopping
is signaled during the retry wait, watchLoop's deferred cleanup closed
the same parser again, logging a spurious 'file already closed' error
at shutdown. Clear the reference after closing and nil-check the defer.
2026-07-11 10:28:27 +03:00
Ciprian Hacman b77c1eb03f fix(logwatchers/kmsg): don't block Stop() when the log channel is full
The log monitor stops draining logCh before calling watcher.Stop(), so
with a full channel (e.g. a kmsg burst at shutdown) watchLoop blocked
on the send forever, never called tomb.Done(), and Stop() hung.
Select on tomb.Stopping() alongside the send.
2026-07-11 10:27:59 +03:00
Ciprian Hacman 187d4d30d6 fix(logwatchers/kmsg): rate-limit parser restarts to prevent hot loop
If the restarted parser's channel closes again right away (reads keep
failing on the reopened /dev/kmsg), the watcher restarts in a tight
loop with no delay, spinning a CPU core and flooding the logs
(measured 37k restarts in 200ms). Delay the first attempt when the
previous restart was less than retryDelay ago.
2026-07-11 10:27:37 +03:00
Ciprian Hacman 05993a1e48 Bump Go to 1.26.5 and golang.org/x modules 2026-07-07 23:38:58 +03:00
Ciprian Hacman 58542a3731 test: deploy NPD for cluster e2e
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2026-06-23 15:45:42 +03:00
Ciprian Hacman bcac1a6db9 test: pull node e2e image from the community staging registry 2026-06-23 10:37:08 +03:00
Ciprian Hacman a4e58f26cc fix: pin actions to commit SHA 2026-04-22 05:53:28 +03:00
Ciprian Hacman 3d516d9213 test(logwatchers/kmsg): inject parser factory for testability and cover restart/stop 2026-04-11 08:37:32 +03:00
Ciprian Hacman b3379b0d23 fix(logwatchers/kmsg): prevent duplicate message replay after restart 2026-04-10 16:06:32 +03:00
Ciprian Hacman 78f76b2778 fix(logwatchers/kmsg): don't close parser from Stop()
Closing the parser in Stop() triggers kmsgparser's read goroutine to
close its output channel, which made watchLoop take the restart path
(added in #1192) during intentional shutdown. Leave parser cleanup to
watchLoop's defer, which is the single owner of the parser lifecycle.
2026-04-10 15:45:22 +03:00
Ciprian Hacman 68d5db75af chore: Bump k8s.io/klog/v2 to v2.140.0 for tests 2026-03-27 13:18:06 +01:00
Ciprian Hacman fc90eb0647 Update golangci-lint to v2.11.4 2026-03-24 03:47:31 +01:00
Ciprian Hacman cf49821ce3 Update Go to v1.25.8 2026-03-07 13:56:14 +02:00
Ciprian Hacman e6d1698627 Update Go to v1.25.7 2026-02-08 10:22:19 +02:00
Ciprian Hacman 46fd1c14e2 Update new release scripts 2025-12-23 18:31:14 +02:00
Ciprian Hacman a9dd308982 Revert Makefile changes from v1.36.0-alpha.2
CodeQL / Analyze (go) (push) Failing after 43s
Scorecard supply-chain security / Scorecard analysis (push) Failing after 6m38s
tag-release / tag (push) Has been skipped
2025-12-23 16:28:37 +02:00
Ciprian Hacman 686837d82d Release v1.36.0-alpha.3 2025-12-23 16:13:09 +02:00
Ciprian Hacman 7800765a88 Release v1.36.0-alpha.2 2025-12-23 15:48:57 +02:00
Ciprian HacmanandGitHub e2b05432b5 Release v1.36.0-alpha.1 (#1200) 2025-12-23 17:18:31 +05:30
Ciprian Hacman 291c92d8b1 Update Go to 1.25.5 for Windows image 2025-12-23 10:23:03 +02:00
Ciprian Hacman 55eed94245 Copy the release binaries from the promoted image 2025-12-23 09:05:26 +02:00
Ciprian Hacman 0012798b55 Update Go to 1.25.5 2025-12-23 08:56:24 +02:00
Ciprian Hacman 9cfeb3197e Update dependencies to K8s 1.35 2025-12-23 08:53:36 +02:00
Ciprian Hacman fcb7a19ab1 Fix typo in Windows build 2025-12-04 06:18:32 +02:00
Ciprian Hacman 7322a90165 Update Go to 1.24.11 2025-12-03 08:08:07 +02:00
Ciprian Hacman cdc88bbc63 Build Windows image 2025-12-02 22:28:34 +02:00
Ciprian Hacman 6b19393e1c Update dependencies and bump Go to v1.24.10 2025-11-29 11:15:51 +02:00
Ciprian Hacman 2e69489cc6 Update golangci-lint to v2.6.2 2025-11-29 10:42:18 +02:00
Ciprian Hacman 073c3ad9f8 healthchecker: Fix systemd-service flag deprecation 2025-10-07 21:25:21 +03:00
Ciprian Hacman 8ebd18fdcb Push additional stable image name to staging registry 2025-09-28 10:05:49 +03:00
Ciprian HacmanandGitHub 1c967266e5 Release v1.35.0-alpha.1 (#1136)
Scorecard supply-chain security / Scorecard analysis (push) Failing after 27s
tag-release / tag (push) Has been skipped
CodeQL / Analyze (go) (push) Failing after 36s
2025-09-26 17:42:16 -07:00
3fb81ae2fb Add hakman as an approver (#1121)
* Add hakman as an approver

* Remove vteratipally

* Add emeritus

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>

* Update OWNERS

* Update OWNERS

---------

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
2025-09-12 02:18:10 -07:00
Ciprian Hacman a5c6501366 Update Cloud Build config 2025-09-11 16:29:15 +03:00
Ciprian Hacman 0a83f2457f Use cross-compile for Docker builds 2025-09-11 14:50:43 +03:00
Ciprian Hacman 8ffd2325be Enable tagging of release branches 2025-08-24 19:26:31 +03:00
Ciprian Hacman df7efa2676 Enable linter on workflow_dispatch 2025-08-13 19:46:50 +03:00
Ciprian Hacman 8ccb2c4dc9 Update Go to v1.22.6 2025-08-13 06:44:19 +03:00
Ciprian Hacman c00e4ec6cf Reapply "Skip ext4 e2e tests"
This reverts commit 281a118737.
2025-08-12 04:39:42 +03:00
Ciprian Hacman db782fe8d2 Fix test instance name 2025-08-11 22:59:42 +03:00
Ciprian HacmanandGitHub 281a118737 Revert "Skip ext4 e2e tests" 2025-08-10 15:49:10 +03:00
Ciprian Hacman 464f2dc094 Update base image 2025-08-10 07:59:19 +03:00
Ciprian Hacman ffaefd99ac Update dependencies 2025-08-10 07:59:08 +03:00
Ciprian HacmanandCiprian Hacman 0147098968 Update dependencies
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
Signed-off-by: Ciprian Hacman <chacman@microsoft.com>
2025-04-28 17:41:41 +03:00
Ciprian HacmanandCiprian Hacman 0f1ee66855 Update dependencies
Signed-off-by: Ciprian Hacman <chacman@microsoft.com>
2025-04-14 16:52:20 +03:00
Ciprian Hacman be754653e6 Skip ext4 e2e tests 2024-10-14 09:29:24 +03:00
Ciprian Hacman f0c5cd5d20 Update cloud.google.com/go/compute/metadata to v0.5.2 2024-10-12 06:31:04 +03:00
Ciprian Hacman e1d071ba63 chore: Add "ok-to-test" labels for dependabot PRs 2024-10-02 15:12:44 +03:00
Ciprian Hacman a22c0649f8 chore: Remove unused dependabot docker configs 2024-10-02 15:02:53 +03:00
Ciprian Hacman 57c97d2d47 chore: Merge dependabot gomod configs 2024-10-02 15:01:52 +03:00
Ciprian Hacman 68d08ac953 chore: Remove broken workflow update-deps.yml 2024-09-21 07:28:03 +03:00
Ciprian Hacman 69da591e38 chore: Remove unused binary nethealth 2024-05-18 09:52:39 +03:00
Ciprian Hacman 8c22b69431 Update Go to v1.22.3 2024-05-13 19:42:51 +03:00
Ciprian Hacman 030599e642 Update BASEIMAGE to debian-base:bookworm-v1.0.3 2024-05-13 19:40:09 +03:00
Ciprian HacmanandGitHub a1bc4f865d Update Go to v1.22.2
I removed the SHA256 because the tag is reused for updates.
2024-04-03 21:36:06 +03:00
Ciprian Hacman e37dcfc3ff Update BUILDER to latest digest 2024-03-29 07:39:25 +02:00
Ciprian Hacman c0e4778fc0 Update BASEIMAGE to debian-base:bookworm-v1.0.2 2024-03-29 07:30:37 +02:00
Ciprian Hacman 014cd7d6ac Update dependencies every week 2024-03-25 18:05:28 +02:00
Ciprian Hacman af3f5c5882 Update Go to v1.22.1 2024-03-06 07:14:19 +02:00
Ciprian Hacman 9769baefb9 Update dependencies 2024-03-06 07:12:46 +02:00
Ciprian HacmanandGitHub 74c95a2486 Release v0.8.16 2024-02-28 07:44:32 +02:00
Ciprian Hacman 08b2255c33 Update dependencies 2024-02-28 06:27:06 +02:00
Ciprian HacmanandGitHub 9444907a56 Remove ENABLE_JOURNALD=0 from cloudbuild.yaml 2024-02-26 19:01:02 +02:00
Ciprian Hacman e1385935b8 Add script to verify dependencies 2024-02-04 06:45:07 +02:00
Ciprian Hacman ef98b9612e Update dependencies 2024-02-04 06:24:27 +02:00
Ciprian Hacman 58017fd35e Add depup Makefile target 2024-02-04 06:24:02 +02:00
Ciprian Hacman d0e447d8e1 Update Go to v1.21.6 2024-02-04 06:13:59 +02:00
Ciprian Hacman d88694fbd1 Update Go to v1.21.3 2023-10-31 08:10:06 +02:00
Ciprian Hacman bf157f81f8 Add hakman as a reviewer 2023-10-08 09:33:37 +03:00
Ciprian Hacman 27dcab4ba5 Prefix version with "v" 2023-09-25 06:16:43 +02:00
Ciprian Hacman aec1c74025 Tag releases via PR 2023-09-25 06:07:04 +02:00
Ciprian Hacman a5aadf719a Update github.com/avast/retry-go to v4.5.0 2023-09-24 11:25:19 +02:00
Ciprian Hacman fdd522a951 Update github.com/coreos/go-systemd to v22.5.0 2023-09-20 07:13:42 +03:00
Ciprian Hacman 5326e106f0 Remove vendoring for tests 2023-09-20 00:17:14 +03:00
Ciprian Hacman 65e4aa3c5e Remove dependency on code.cloudfoundry.org/clock 2023-09-19 12:50:29 +03:00
Ciprian Hacman 5210373640 Init useful flags for klog/v2 2023-09-17 11:00:42 +03:00
Ciprian Hacman 0d276ac19f Update Go to v1.21.1 2023-09-15 09:06:52 +03:00
Ciprian Hacman d4a00d4f20 Remove GO111MODULE=on and -mod vendor from Makefile 2023-09-15 07:55:12 +03:00
Ciprian Hacman 188340e3e9 Remove Travis CI config 2023-09-15 07:52:38 +03:00
Ciprian Hacman e56fb7de12 Increase vCPU for Cloud Build 2023-09-15 07:32:18 +03:00
Ciprian Hacman e9922b0da7 Fix docker build for multi-arch 2023-09-14 13:13:01 +03:00
Ciprian Hacman 9ad24ea2c7 Move test dependencies to test dir 2023-09-11 21:14:19 +03:00
Ciprian Hacman f58f6cd208 Update tests to run also on macOS 2023-09-11 19:25:59 +03:00
Ciprian Hacman 568fbe8437 Update net_collector_test.go formatting 2023-09-08 16:08:40 +03:00
Ciprian Hacman 2077606ba3 Remove direct dependency on google/cadvisor 2023-09-08 15:28:25 +03:00