Skip to content

test: regression coverage for HAR/SCS #1030 fixes - #1046

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/regression-test-coverage-automation-3407
Draft

cursor[bot] wants to merge 1 commit into
mainfrom
cursor/regression-test-coverage-automation-3407

Conversation

@cursor

@cursor cursor Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Description

Adds regression tests for merged #1030 fixes where silent failures were discovered during QA (search filters dropped, unresolved deep-link placeholders, compact stripping SCS marker rows).

Risky behavior now covered

  • HAR list search: registry, artifact, artifact_version, and artifact_file list ops must send search_term on the wire (not a bogus search key).
  • HAR artifact deep links: list items must resolve {artifactIdentifier} in openInHarness URLs.
  • UPSTREAM registry create: config bodySchema documents required authType for UPSTREAM registries.
  • SCS supply-chain links: artifact_security, scs_artifact_remediation, and scs_chain_of_custody deep links use {artifact} consistent with pathParams.artifact_id → artifact.
  • List compaction: generic compactItems keeps _summary, _message, and _result marker objects from SCS extractors.

Test files added/updated

  • tests/registry/registries-har-search-deeplinks.test.ts (new)
  • tests/registry/scs.test.ts
  • tests/utils/compact.test.ts

Why these tests materially reduce regression risk

Each failure mode was silent (filter ignored, placeholder left in UI links, agent guidance stripped). These dispatch-level and compaction tests fail loudly if query-param maps, pathParams, or ALWAYS_KEEP drift again.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (test-only)

Checklist

  • pnpm test passes (targeted: registries-har-search-deeplinks, scs deep-link block, compact markers)
  • pnpm typecheck passes
  • pnpm build passes
  • pnpm standards:check passes
  • pnpm docs:check passes
Open in Web View Automation 

Lock search_term query mapping, artifact deep links, SCS {artifact}
placeholder alignment, and compact marker field preservation.

Co-authored-by: Rohan Gupta <thisrohangupta@users.noreply.github.com>
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