Skip to content

Warm Load Improvements#1544

Open
Nick (ingalls) wants to merge 12 commits into
mainfrom
codecov
Open

Warm Load Improvements#1544
Nick (ingalls) wants to merge 12 commits into
mainfrom
codecov

Conversation

@ingalls

@ingalls Nick (ingalls) commented Jul 5, 2026

Copy link
Copy Markdown
Member

Context

  • ✅ Extend the current CodeCov
  • 🚀 Remove additional networking blocking calls on warm load
  • 🐛 Continue to improve dexie connection logic on warm load

@codecov

codecov Bot commented Jul 5, 2026

Copy link
Copy Markdown

Comment thread api/web/src/base/overlay-class.ts Fixed
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
@ingalls
Nick (ingalls) requested a review from Copilot July 5, 2026 21:39
@ingalls Nick (ingalls) changed the title Add CodeCov Add CodeCov & Warm Load Improvements Jul 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands Codecov reporting across multiple subprojects and improves warm-load / resume behavior in the web client by reducing network-blocking paths and hardening IndexedDB/Dexie recovery on iOS WebKit.

Changes:

  • Add coverage scripts (c8 / vitest v8 coverage) and upload coverage artifacts to Codecov with per-component flags.
  • Refactor retention task definitions into a dedicated module and add basic task registration/enablement tests.
  • Improve warm-load/resume resiliency in api/web by adding DB reopen/retry primitives, caching TileJSON/attribution, and probing worker/main-thread DB connections on resume.

Reviewed changes

Copilot reviewed 16 out of 20 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tasks/retention/test/tasks.test.ts Adds unit tests validating retention task registration and enablement defaults.
tasks/retention/src/tasks.ts Extracts retention task definitions and shared HTTP POST helper.
tasks/retention/src/index.ts Re-exports task types/list from the new module while keeping scheduler entrypoint.
tasks/retention/package.json Adds test/coverage scripts and includes tests in lint scope.
tasks/retention/package-lock.json Locks new coverage-related dependencies (c8).
tasks/pmtiles/package.json Adds c8-based coverage script for pmtiles task package.
tasks/pmtiles/package-lock.json Locks new coverage-related dependencies (c8).
tasks/events/package.json Adds c8-based coverage script for events task package.
tasks/events/package-lock.json Locks new coverage-related dependencies (c8).
codecov.yml Introduces flag management and broad ignore patterns for tests/dist/node_modules.
api/web/vite.config.ts Enables vitest v8 coverage output (text + lcov) with include/exclude filters.
api/web/src/workers/atlas.ts Uses withDbRetry for token persistence and adds a worker resume() DB probe.
api/web/src/workers/atlas-database.ts Loads locally persisted features first (no network) and uses withDbRetry for DB access.
api/web/src/stores/map.ts Adds foreground-resume recovery, warm-load mission rendering, overlay retry/backoff, and attribution caching.
api/web/src/database.ts Adds generation-tracked reopen logic (forceReopenDatabase) and exports transient DB error detection.
api/web/src/components/CloudTAK/Map.vue Suppresses transient IndexedDB errors from surfacing as user modals.
api/web/src/base/overlay-class.ts Caches TileJSON in KV (without session tokens) and guards against duplicate layer adds.
api/web/package.json Adds vitest --coverage script and @vitest/coverage-v8 dependency.
api/web/package-lock.json Locks new vitest coverage dependencies.
.github/workflows/test.yml Runs coverage in CI and uploads per-flag lcov artifacts to Codecov.
Files not reviewed (4)
  • api/web/package-lock.json: Generated file
  • tasks/events/package-lock.json: Generated file
  • tasks/pmtiles/package-lock.json: Generated file
  • tasks/retention/package-lock.json: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread api/web/src/components/CloudTAK/Map.vue Outdated
Comment thread .github/workflows/test.yml
Comment thread .github/workflows/test.yml Outdated
Comment thread .github/workflows/test.yml
Comment thread .github/workflows/test.yml
Comment thread .github/workflows/test.yml
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Nick (ingalls) and others added 3 commits July 5, 2026 15:46
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@ingalls Nick (ingalls) changed the title Add CodeCov & Warm Load Improvements Warm Load Improvements Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants