Files
Pulse/internal/api
pulse-triage[bot] 1c94b092b0 Fix CI auth-pattern/retry failures and speed up Vitest suites
- Tighten connectionAuthErrorPattern in internal/api/connections_aggregator.go
  so numeric 401/403 codes require HTTP/status boundaries instead of matching
  ephemeral URL ports (:40129, :403/) or SHA-256 certificate fingerprints,
  fixing live main failure 46215872442 (TestPVEConnectionsLedgerSurfacesStartupFailuresAndAlerts)
  and preventing TLS/network failures from showing as Unauthorized.
- Raise waitResolvedContract timeout in internal/notifications/resolved_grouping_contract_test.go
  from 12s to 30s to exceed the 5s-ticker 2s+4s three-attempt retry phase
  latency (~16s worst case) that timed out main run 46213654778
  (TestResolvedGroupingDisabledBurstRetainsRateLimit at 15.50s).
- Split pure stateless Node unit tests in frontend-modern/vitest.projects.ts
  and vite.config.ts into a non-isolated node-shared project while keeping
  mocking/env/storage/store/i18n/subprocess tests isolated, and route
  DOM-free scripts/__tests__/*.test.mjs files out of jsdom.
- Add per-suite NODE_COMPILE_CACHE to check-bundle-size, build-embed-assets,
  form-label-audit, and solidSerialization subprocess tests, and memoize
  repeated renderDocMarkdown reads across 14 slow uncached doc test suites.

Contract-Neutral: Tightens internal HTTP 401/403 regex boundaries to stop port/fingerprint false positives without changing API schemas or external contracts; all other edits are test-runner configuration and test-only runtime optimizations.
Change-source: pulse-maintainer
2026-11-29 02:57:35 +00:00
..
…
…
…

Internal API Package

This directory contains the API server implementation for Pulse.

Important Note About frontend-modern/

The frontend-modern/ subdirectory that appears here is:

  • AUTO-GENERATED during builds
  • NOT the source code - just a build artifact
  • IN .gitignore - never committed
  • REQUIRED BY GO - The embed directive needs it here

Frontend Development Location

👉 Edit frontend files at: ${PULSE_REPOS_DIR}/pulse/frontend-modern/src/

Why This Structure?

Go's //go:embed directive has limitations:

  1. Cannot use ../ paths to access parent directories
  2. Cannot follow symbolic links
  3. Must embed files within the Go module

This is a known Go limitation and our structure works around it.