Skip to content

perf(#1826): avoid per-window recomputation in log search custom windows

888048f
Select commit
Loading
Failed to load commit list.
Merged

Avoid per-window recomputation in log search custom windows #1826 #1941

perf(#1826): avoid per-window recomputation in log search custom windows
888048f
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Jan 8, 2026 in 7m 17s

Build Passed

The build passed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #1941 This change replaces per-window aggregation with a single batch aggregation over the full time range. The new implementation avoids repeated scans of log data, significantly reducing CPU usage for large custom window ranges, while preserving existing aggr.
Any changes that have been made to the main branch before the build ran are also included.

Jobs and Stages

This build has two jobs, running in two sequential stages.

Stage 1: build-test

This stage passed.

Job OS State
7038.1 Lint + unit tests + package (Python 3.12) Linux passed

Stage 2: docker

This stage passed.

Job OS State
7038.2 Build & run Docker image Linux passed

Build Configuration

Build Option Setting
Language Generic
Operating System Linux (Noble)
Build Configuration
{
  "language": "generic",
  "os": [
    "linux"
  ],
  "dist": "noble",
  "services": [
    "docker"
  ],
  "git": {
    "depth": 1
  },
  "addons": {
    "apt": {
      "update": true,
      "packages": [
        "python3-venv",
        "python3-dev"
      ]
    }
  },
  "before_install": [
    "echo \" Python version -> $(python3 --version)\"",
    "make venv install install-dev",
    "source ~/.venv/mcpgateway/bin/activate"
  ],
  "jobs": {
    "include": [
      {
        "stage": "build-test",
        "name": "Lint + unit tests + package (Python 3.12)",
        "script": [
          "make dist"
        ]
      },
      {
        "stage": "docker",
        "name": "Build & run Docker image",
        "script": [
          "set -e\necho \"  Building container...\"\ndocker build -f Containerfile -t mcpgateway/mcpgateway:latest .\n\necho \"  Launching container...\"\ndocker run -d --name mcpgateway -p 4444:4444 \\\n           -e HOST=0.0.0.0 mcpgateway/mcpgateway:latest\n\necho \"  Waiting for startup...\"\nsleep 10\n\necho \"  Hitting health endpoint...\"\ncurl -fsSL http://localhost:4444/health || {\n  echo \" Health check failed\"; docker logs mcpgateway; exit 1;\n}\n\necho \" Container is healthy!\""
        ]
      }
    ]
  }
}