Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .changeset/bright-bun-fork.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@hyperdx/api': patch
'@hyperdx/app': patch
'@hyperdx/common-utils': patch
'@hyperdx/cli': patch
'@hyperdx/hdx-eval': patch
---

Run the maintained fork on Bun with a Vinext/Vite frontend, tsrs checks and Vitest. Refresh dependencies while preserving source, session, filtering and package interfaces.

Keep search explanations aligned with the latest input when metadata responses finish out of order.
10 changes: 10 additions & 0 deletions .changeset/current-stable-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@hyperdx/api": patch
"@hyperdx/app": patch
"@hyperdx/common-utils": patch
"@hyperdx/cli": patch
---

Update supported stable dependencies, including Express 5, Zod 4, Vinext 1.4,
and the workspace toolchain. Preserve request transforms, authentication checks,
and validation issue responses while migrating the newer APIs.
7 changes: 7 additions & 0 deletions .changeset/fix-browser-sdk-memory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@hyperdx/app': patch
---

Use the lockfile's session recorder dependencies instead of the browser SDK's
embedded copies so rrweb's observer and mutation-buffer memory fixes reach the
application.
10 changes: 10 additions & 0 deletions .changeset/mcp-get-oauth-discovery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@hyperdx/api': patch
'@hyperdx/app': patch
---

Advertise OAuth discovery to unauthenticated MCP GET probes. Authenticated GET
requests still return 405 because the stateless transport accepts POST only.

Expose standard protected-resource metadata URLs so native clients can discover
the authorization server from the MCP URL before signing in.
5 changes: 5 additions & 0 deletions .changeset/restore-bun-http-telemetry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperdx/api': patch
---

Restore API and OpAMP HTTP spans, Express spans, request duration metrics, and trace correlation when running with Bun.
9 changes: 9 additions & 0 deletions .changeset/shared-frontend-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@hyperdx/app': patch
---

Share the production frontend build across image architectures so replicas serve
identical browser assets and build IDs.

Keep Google sign-in available after logout without waiting on cached identity
requests.
6 changes: 6 additions & 0 deletions .changeset/stable-collector-toolchain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@hyperdx/otel-collector": patch
---

Update the collector, migration-tool dependencies and container build toolchain
to their supported stable releases.
6 changes: 6 additions & 0 deletions .changeset/tame-json-sidebar-filters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@hyperdx/app': patch
'@hyperdx/common-utils': patch
---

Fix native JSON search filters and metadata value queries for string, numeric, boolean, and mixed-type paths, while preserving Map-column bracket access.
8 changes: 8 additions & 0 deletions .changeset/workos-authkit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@hyperdx/api': minor
'@hyperdx/app': minor
'@hyperdx/common-utils': minor
---

Add optional Google sign-in and remote MCP OAuth through WorkOS AuthKit,
preserving existing HyperDX membership and authorization.
11 changes: 11 additions & 0 deletions .changeset/workos-session-refresh-race.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@hyperdx/api': patch
---

Preserve the current WorkOS browser session when concurrent requests refresh the
same credentials. Compare and update only the stored seal so a delayed refresh
cannot erase a newer login or restore a session removed by logout.

Apply the same atomic updates to sign-in initialization and one-time callback
consumption. Completed logout cancels an in-flight login, and a newly generated
session is persisted once before its cookie is sent.
11 changes: 11 additions & 0 deletions .changeset/workos-verified-domain-signup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@hyperdx/api': patch
---

Add optional automatic team signup for new users with a verified WorkOS email in
one exact configured domain. Keep existing identity bindings and membership
checks, with automatic signup disabled by default. Preserve removed WorkOS
members as teamless records so automatic signup cannot restore their access,
and revoke their old personal API keys and legacy-session access.

Report password authentication accurately for passwordless team members.
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.git
node_modules
**/node_modules
**/.next*
**/dist
**/build
.volumes
.nx
**/coverage
**/test-results
**/playwright-report
.env.local
.env.*.local
5 changes: 3 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ HDX_DEV_OTEL_JSON_HTTP_PORT=14318
# Otel Collector version (used as Docker build arg for image tags and component versions)
# When bumping, look up the core version from the upstream manifest:
# https://github.com/open-telemetry/opentelemetry-collector-releases/blob/main/distributions/otelcol-contrib/manifest.yaml
OTEL_COLLECTOR_VERSION=0.155.0
OTEL_COLLECTOR_CORE_VERSION=1.61.0
OTEL_COLLECTOR_VERSION=0.164.0
OTEL_COLLECTOR_CONTRIB_VERSION=0.164.1
OTEL_COLLECTOR_CORE_VERSION=1.70.0

# Otel/Clickhouse config
HYPERDX_OTEL_EXPORTER_CLICKHOUSE_DATABASE=default
51 changes: 25 additions & 26 deletions .github/actions/e2e-setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: E2E Setup
description: |
Shared setup for E2E test workflows: sets the HDX_E2E_* port env vars and
common Playwright env vars, then runs Node.js setup, dependency install,
common Playwright env vars, then runs Bun setup, dependency install,
build, Playwright browser install, and starts the E2E Docker Compose stack
(MongoDB + ClickHouse) with health checks. The caller is responsible for
`actions/checkout`, running Playwright, uploading artifacts, and tearing
Expand All @@ -14,33 +14,30 @@ runs:
shell: bash
run: |
MONGO_PORT=21100
echo "HDX_E2E_SLOT=0" >> $GITHUB_ENV
echo "HDX_E2E_OPAMP_PORT=20320" >> $GITHUB_ENV
echo "HDX_E2E_CH_PORT=20500" >> $GITHUB_ENV
echo "HDX_E2E_CH_NATIVE_PORT=20600" >> $GITHUB_ENV
echo "HDX_E2E_API_PORT=21000" >> $GITHUB_ENV
echo "HDX_E2E_MONGO_PORT=$MONGO_PORT" >> $GITHUB_ENV
echo "HDX_E2E_APP_LOCAL_PORT=21200" >> $GITHUB_ENV
echo "HDX_E2E_APP_PORT=21300" >> $GITHUB_ENV
echo "MONGO_URI=mongodb://localhost:$MONGO_PORT/hyperdx-e2e" >> $GITHUB_ENV
echo "E2E_FULLSTACK=true" >> $GITHUB_ENV
echo "E2E_UNIQUE_USER=true" >> $GITHUB_ENV
echo "E2E_API_HEALTH_CHECK_MAX_RETRIES=60" >> $GITHUB_ENV

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache-dependency-path: yarn.lock
cache: yarn
{
echo "HDX_E2E_SLOT=0"
echo "HDX_E2E_OPAMP_PORT=20320"
echo "HDX_E2E_CH_PORT=20500"
echo "HDX_E2E_CH_NATIVE_PORT=20600"
echo "HDX_E2E_API_PORT=21000"
echo "HDX_E2E_MONGO_PORT=$MONGO_PORT"
echo "HDX_E2E_APP_LOCAL_PORT=21200"
echo "HDX_E2E_APP_PORT=21300"
echo "MONGO_URI=mongodb://localhost:$MONGO_PORT/hyperdx-e2e"
echo "E2E_FULLSTACK=true"
echo "E2E_UNIQUE_USER=true"
echo "E2E_API_HEALTH_CHECK_MAX_RETRIES=60"
} >> "$GITHUB_ENV"

- name: Setup Bun
uses: jdx/mise-action@6be3c7ed4c21d4f76b208d351d95aac273ebb76d # v5.2.4
- name: Install dependencies
shell: bash
run: yarn install --immutable
run: bun ci

- name: Build dependencies
shell: bash
run: npx nx run-many -t ci:build
run: bun --bun x nx run-many -t ci:build

# Cache the Chromium binary (~120MB) keyed on the resolved Playwright
# version, so it isn't re-downloaded every shard/run. Browser versions are
Expand All @@ -51,11 +48,11 @@ runs:
id: playwright-version
shell: bash
run:
echo "version=$(cd packages/app && node -p
echo "version=$(cd packages/app && bun -p
"require('@playwright/test/package.json').version")" >> "$GITHUB_OUTPUT"

- name: Cache Playwright browsers
uses: actions/cache@v4
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/ms-playwright
key:
Expand All @@ -66,7 +63,7 @@ runs:
# libs, and the apt step it adds can stall for 10+ min on a slow mirror.
- name: Install Playwright browsers
shell: bash
run: cd packages/app && npx playwright install chromium
run: cd packages/app && bun --bun x playwright install chromium

- name: Start E2E Docker Compose
shell: bash
Expand Down Expand Up @@ -100,12 +97,14 @@ runs:
done
echo "Waiting for ClickHouse..."
for i in $(seq 1 60); do
if curl -sf http://localhost:${HDX_E2E_CH_PORT}/ping >/dev/null 2>&1; then
if curl -sf "http://localhost:${HDX_E2E_CH_PORT}/ping" >/dev/null 2>&1; then
echo "ClickHouse is ready"
break
fi
if [ "$i" -eq 60 ]; then
echo "ClickHouse failed to become ready after 60 seconds"
docker compose -p e2e-0 -f packages/app/tests/e2e/docker-compose.yml ps -a || true
docker compose -p e2e-0 -f packages/app/tests/e2e/docker-compose.yml logs --no-color --tail 200 ch-server || true
exit 1
fi
echo "Waiting for ClickHouse... ($i/60)"
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/e2e-teardown/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ runs:
using: composite
steps:
- name: Upload Playwright report
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: always()
with:
name: playwright-report-${{ inputs.artifact-suffix }}
path: packages/app/playwright-report/
retention-days: 30

- name: Upload test results
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: always()
with:
name: test-results-${{ inputs.artifact-suffix }}
Expand Down
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2
updates:
- package-ecosystem: bun
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 5
groups:
compatible-updates:
update-types: [minor, patch]
# Typed ESLint requires TypeScript below 6.1.
ignore:
- dependency-name: typescript
versions: ['>=6.1']
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
groups:
actions:
patterns: ['*']
- package-ecosystem: docker
directories: [/docker/hyperdx, /packages/api, /packages/app]
schedule:
interval: weekly
Binary file added .github/images/fork-json-sidebar-after-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/fork-json-sidebar-before-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/fork-json-sidebar-before-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 17 additions & 19 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ concurrency:

jobs:
claude-review:
if:
github.event_name == 'workflow_dispatch' || github.event.action ==
'ready_for_review' || !github.event.pull_request.draft

if: >-
github.repository == 'hyperdxio/hyperdx' && (github.event_name ==
'workflow_dispatch' || github.event.action == 'ready_for_review' ||
!github.event.pull_request.draft)
runs-on: ubuntu-latest
# A hung CLI or stalled API would otherwise hold a runner for the 6-hour default;
# cancel-in-progress only reclaims it if someone pushes again.
Expand All @@ -64,7 +64,7 @@ jobs:
# workflow_dispatch runs can checkout forked branches correctly.
- name: Resolve PR metadata
id: pr
uses: actions/github-script@v9
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
DISPATCH_PR: ${{ inputs.pr_number }}
with:
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
# Checkout the fork's branch so Claude can read the actual PR code.
# Using the PR head repo/ref works for both fork and non-fork PRs.
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: ${{ steps.pr.outputs.head_repo }}
# The SHA, not the branch: the diff, the line map and the posted comments must
Expand All @@ -120,7 +120,7 @@ jobs:
# was loaded from, so the trusted copy always matches the YAML that is running.
# base_sha (the PR's merge target) can lag it.
- name: Checkout trusted prompt and helpers
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.sha }}
path: .trusted
Expand All @@ -131,23 +131,21 @@ jobs:
.github/prompts
.github/scripts
.github/workflows
.nvmrc
mise.toml
agent_docs/code_style.md
AGENTS.md
sparse-checkout-cone-mode: false
persist-credentials: false

- uses: actions/setup-node@v6
- uses: jdx/mise-action@6be3c7ed4c21d4f76b208d351d95aac273ebb76d # v5.2.4
with:
# From the trusted tree: the fork controls its own .nvmrc.
node-version-file: .trusted/.nvmrc

working_directory: .trusted
# Same pattern as pr-triage.yml: the workflow that consumes a script runs its
# tests. Fails fast on the comment-routing logic before spending on a review.
- name: Test review helpers
run:
node --test
.trusted/.github/scripts/code-review/__tests__/review-comments.test.mjs
bun test
./.trusted/.github/scripts/code-review/__tests__/review-comments.test.mjs

# The reviewer reads the diff from a file: a large diff cannot be embedded in
# workflow YAML, and subagents/later steps need a stable path.
Expand Down Expand Up @@ -214,7 +212,7 @@ jobs:
fi

- name: Find existing review summary
uses: peter-evans/find-comment@v4
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4.0.0
id: find-comment
with:
issue-number: ${{ steps.pr.outputs.number }}
Expand Down Expand Up @@ -344,7 +342,7 @@ jobs:
- name: Run Claude Code Review
id: claude-review
if: steps.gate.outputs.should_review == 'true'
uses: anthropics/claude-code-action@v1
uses: anthropics/claude-code-action@d70510b174a1244958df0b03166a54912811f3e6 # v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
allowed_bots: dependabot,dependabot[bot],kodiakhq,kodiakhq[bot],github-actions,github-actions[bot],cursor,cursor[bot],claude,claude[bot]
Expand Down Expand Up @@ -480,7 +478,7 @@ jobs:
- name: Post inline review comments
id: inline
if: steps.health.outputs.healthy == 'true'
uses: actions/github-script@v9
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
# Compared against, never printed. Named canary so a stray log of the env block
# does not read like the secret itself.
Expand Down Expand Up @@ -605,7 +603,7 @@ jobs:
# !cancelled() rather than always(): on cancel-in-progress the superseding run is
# already working, and a cancelled run's summary would race its sticky write.
if: "!cancelled() && steps.gate.outputs.should_review == 'true'"
uses: actions/github-script@v9
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
const fs = require('fs');
Expand Down Expand Up @@ -649,7 +647,7 @@ jobs:
steps.summary.outputs.body != '' && ((steps.health.outputs.healthy ==
'true' && steps.inline.outcome == 'success')
|| steps.find-comment.outputs.comment-id == '')
uses: peter-evans/create-or-update-comment@v5
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
with:
comment-id: ${{ steps.find-comment.outputs.comment-id }}
issue-number: ${{ steps.pr.outputs.number }}
Expand Down
Loading
Loading