Skip to content

test: cover Code file scope forwarding and schema sync contracts#608

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/missing-test-coverage-5bf1
Draft

test: cover Code file scope forwarding and schema sync contracts#608
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/missing-test-coverage-5bf1

Conversation

@cursor

@cursor cursor Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Description

Adds regression tests for recently merged production changes that lacked dedicated coverage:

  1. Forward Code scope for file content APIs #602 — Code file scope forwarding (tests/registry/repositories-file-scope.test.ts)

    • Verifies file_content get and blame execute forward org_id/project_id as orgIdentifier/projectIdentifier query params
    • Covers project-scoped repos, account-scoped repos (params omitted), and explicit scope overriding config defaults
  2. chore: auto-sync harness schemas #584 / chore: auto-sync harness schemas #567 — Schema sync contracts (tests/schemas/schema-bundle-contract.test.ts)

    • DeployAwsAgentCoreRevision step definitions in v0 pipeline/template
    • IdentitiesConfig / IdentitySpec common definitions (maxProperties, scope enum)
    • DynamicStageNodeV1 in v1 pipeline/template unified stages
  3. harness_schema path resolution (tests/tools/harness-schema-tool.test.ts)

    • Ensures agents can discover the newly synced definitions via harness_schema path lookup

Risky behavior now covered

  • Project-scoped Code repos failing to resolve without org/project query params on content/blame APIs
  • Schema sync regressions dropping AWS Agent Core steps, OIDC identity config, or v1 dynamic stages
  • harness_schema path lookup breaking for newly synced upstream definitions

Why these tests materially reduce regression risk

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other — test coverage

Checklist

  • pnpm test passes (targeted: 44 tests in 3 files)
  • pnpm typecheck passes
  • pnpm build passes
  • pnpm standards:check passes
  • pnpm docs:check passes

Validation

pnpm test tests/registry/repositories-file-scope.test.ts tests/schemas/schema-bundle-contract.test.ts tests/tools/harness-schema-tool.test.ts
# 3 files, 44 tests passed
Open in Web View Automation 

- Add repositories-file-scope tests for file_content get/blame (#602)
- Lock in DeployAwsAgentCoreRevision, IdentitiesConfig bundle contracts (#584)
- Lock in DynamicStageNodeV1 v1 stage contracts (#567)
- Add harness_schema path resolution for new synced definitions

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 sign our Contributor License Agreement before we can accept your contribution.
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.

2 participants