Skip to content

test: lock in schema sync contracts for PR #692 upstream fields - #694

Draft
cursor[bot] wants to merge 3 commits into
mainfrom
cursor/missing-test-coverage-a15a
Draft

test: lock in schema sync contracts for PR #692 upstream fields#694
cursor[bot] wants to merge 3 commits into
mainfrom
cursor/missing-test-coverage-a15a

Conversation

@cursor

@cursor cursor Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Description

Adds regression tests for upstream schema fields synced in #692 (chore: auto-sync harness schemas):

  • IACMRemediationAgentInfo.llmConnectorRef — LLM connector reference for IACM remediation agent steps
  • UpdateReleaseRepoStepInfo.ignoreMissingValues — GitOps update-release-repo step flag (boolean or expression)

Risky behavior now covered

  • Bundled v0 pipeline and template schemas retain the new upstream fields after auto-sync; a missing or renamed field will fail CI before agents/tools consume stale shapes.
  • harness_schema path resolution still finds IACMRemediationAgentInfo (with llmConnectorRef) and UpdateReleaseRepoStepNode (GitOpsUpdateReleaseRepo) for pipeline authoring workflows.

Test files added/updated

  • tests/schemas/schema-bundle-contract.test.ts — asserts field presence and shape in bundled schemas
  • tests/tools/harness-schema-tool.test.ts — asserts harness_schema can resolve the new/related step definitions by bare name

Why these tests materially reduce regression risk

Auto-sync PRs only change generated schema blobs; without contract tests, upstream field additions can be silently dropped on the next sync or break harness_schema lookup paths. These tests follow the established pattern from #606 and catch schema drift at the exact integration points agents use.

Type of Change

  • Bug fix
  • New feature
  • Other (test coverage)

Checklist

  • pnpm test passes (targeted: schema bundle + harness_schema tests)
  • pnpm typecheck passes
  • pnpm build passes
  • pnpm standards:check passes
  • pnpm docs:check passes
Open in Web View Automation 

thisrohangupta and others added 3 commits July 24, 2026 00:34
…teReleaseRepo

Add regression tests for upstream fields synced in PR #692:
- IACMRemediationAgentInfo.llmConnectorRef (AI remediation step LLM connector)
- UpdateReleaseRepoStepInfo.ignoreMissingValues (GitOps release repo step)

Covers bundled schema shape and harness_schema path resolution.

Co-authored-by: Rohan Gupta <thisrohangupta@users.noreply.github.com>
UpdateReleaseRepoStepInfo carries a top-level $ref that inlineRefs
replaces, so assert the step node type enum instead; field shape is
covered by the bundle contract test.

Co-authored-by: Rohan Gupta <thisrohangupta@users.noreply.github.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ thisrohangupta
❌ cursoragent
You have signed the CLA already but the status is still pending? Let us recheck it.

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