From c9c037275e4a5f2c8c87d736f3521c0817770798 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 17 Jun 2025 14:57:41 +0300 Subject: Fix channelless mode for DTail operations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Exclude TailClient operations from channelless processing to ensure proper real-time file monitoring - Add comprehensive MapReduce detection for both cat and tail commands with MAPREDUCE patterns and noop regex - Add IsNoop() method to Regex type for proper noop regex detection in CSV logformat operations - Update build instructions and testing guidance in CLAUDE.md All integration tests now pass with channelless mode enabled. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- internal/regex/regex.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/regex') diff --git a/internal/regex/regex.go b/internal/regex/regex.go index eb6e1b3..b2ea201 100644 --- a/internal/regex/regex.go +++ b/internal/regex/regex.go @@ -23,6 +23,11 @@ func (r Regex) String() string { r.regexStr, r.flags, r.initialized, r.re == nil) } +// IsNoop returns true if this regex is a noop regex +func (r Regex) IsNoop() bool { + return len(r.flags) > 0 && r.flags[0] == Noop +} + // NewNoop is a noop regex (doing nothing). func NewNoop() Regex { return Regex{ -- cgit v1.2.3