Skip to content

fix(tests): restore heartbeat dual-emit and update analyze-job test#26278

Merged
siddseethepalli merged 1 commit into
mainfrom
do/fix-ci-config-schema-analyze-job
Apr 18, 2026
Merged

fix(tests): restore heartbeat dual-emit and update analyze-job test#26278
siddseethepalli merged 1 commit into
mainfrom
do/fix-ci-config-schema-analyze-job

Conversation

@siddseethepalli
Copy link
Copy Markdown
Contributor

@siddseethepalli siddseethepalli commented Apr 18, 2026

Summary

Fixes the three `config-schema.test.ts` failures and the one `conversation-analyze-job.test.ts` failure seen in CI run 24591555165.

Original prompt

--yolo Fix the specific CI issue in this failing job only: https://github.com/vellum-ai/vellum-assistant/actions/runs/24591555165/job/71913156040


Open with Devin

- Revert heartbeat.ts superRefine to dual-emit so validateWithSchema's
  delete-and-retry strips both sides in one pass. Single-emit cascades
  when the explicit value equals the opposite default, triggering a
  full-defaults fallback that wipes unrelated fields like maxTokens.
- Update conversation-analyze-job test to expect BackendUnavailableError.
  The handler correctly throws so handleJobError() defers the job via
  deferMemoryJob (BackendUnavailableError has special non-fatal handling
  in jobs-worker.ts, contrary to the old test comment's assumption).
@siddseethepalli siddseethepalli merged commit aaca343 into main Apr 18, 2026
11 checks passed
@siddseethepalli siddseethepalli deleted the do/fix-ci-config-schema-analyze-job branch April 18, 2026 00:14
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

siddseethepalli added a commit that referenced this pull request Apr 18, 2026
PR #26159 (LLM callsite unification) accidentally reverted two earlier
fixes when squash-merged from a stale base:

1. Re-applies the heartbeat dual-emit superRefine from #26278 so
   validateWithSchema's delete-and-retry strips both activeHours sides
   in one pass. Single-emit cascades when the explicit value equals the
   opposite default (e.g. { start: null, end: 8 }), causing the loader
   to fall back to full defaults and wipe unrelated fields like
   llm.default.maxTokens.

2. Changes LLMSchema.callSites to default to {} instead of
   LATENCY_OPTIMIZED_CALLSITE_DEFAULTS. Latency-optimized call-site
   defaults are owned by workspace migration 040 (which seeds them into
   the user's on-disk config), not the schema layer. Leaving the schema
   default populated polluted parsed configs with unrequested entries
   and broke the 'empty callSites by default' invariant that tests and
   downstream callers rely on. LATENCY_OPTIMIZED_FRAGMENT /
   LATENCY_OPTIMIZED_CALLSITE_DEFAULTS are now unused and removed.
siddseethepalli added a commit that referenced this pull request Apr 18, 2026
…ult (#26286)

PR #26159 (LLM callsite unification) accidentally reverted two earlier
fixes when squash-merged from a stale base:

1. Re-applies the heartbeat dual-emit superRefine from #26278 so
   validateWithSchema's delete-and-retry strips both activeHours sides
   in one pass. Single-emit cascades when the explicit value equals the
   opposite default (e.g. { start: null, end: 8 }), causing the loader
   to fall back to full defaults and wipe unrelated fields like
   llm.default.maxTokens.

2. Changes LLMSchema.callSites to default to {} instead of
   LATENCY_OPTIMIZED_CALLSITE_DEFAULTS. Latency-optimized call-site
   defaults are owned by workspace migration 040 (which seeds them into
   the user's on-disk config), not the schema layer. Leaving the schema
   default populated polluted parsed configs with unrequested entries
   and broke the 'empty callSites by default' invariant that tests and
   downstream callers rely on. LATENCY_OPTIMIZED_FRAGMENT /
   LATENCY_OPTIMIZED_CALLSITE_DEFAULTS are now unused and removed.
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.

1 participant