Skip to content

test: share the client registration command to restore the jscpd gate - #1317

Merged
kaoru0822-kitauji merged 1 commit into
mainfrom
test/dedupe-client-test-setup
Oct 9, 2026
Merged

kaoru0822-kitauji merged 1 commit into
mainfrom
test/dedupe-client-test-setup

Conversation

@kaoru0822-kitauji

Copy link
Copy Markdown
Collaborator

Summary

npm run jscpd (part of check:ci, the "Static checks" job) fails on main at 4b8e744:

ERROR: jscpd found too many duplicates (2.5%) over threshold (2.5%)

Measured with jscpd src/ tests/ --reporters json: 2.4990% at 24673aa, then 2.5028% (8,049 duplicated lines) after #1301 (mine) merged. The README commit since then adds no TS. Every PR based on current main will fail Static checks until this is fixed. main's own CI run for 4b8e744 was still queued when I checked.

The new clone is from #1301. tests/boundary/filesystem/ompClientConfiguration.test.ts repeated the dialect test's imports and its 6-line npx registration command (16 duplicated lines).

Change

Export NPX_REGISTRATION_COMMAND from tests/fixtures/clientEnvironment.ts, the shared client test fixture added in #1301, and use it in both test files. Test-only change; the command value is unchanged.

Verification

  • npx jscpd src/ tests/: 2.4967% (8,026 duplicated lines); npm run jscpd passes.
  • npm run test:focused -- on ompClientConfiguration, clientConfigurationDialects, clientLifecycle and clientRegistrationStatus (85 passed)
  • tsc --noEmit, oxlint, npm run format:check

The margin under 2.5% is small (about 10 lines), so the next PR that adds duplicated lines will trip this again.

🤖 Generated with Claude Code

After #1301 merged, main's duplicated-line share rose to 2.503%, over
jscpd's 2.5% threshold, so Static checks fail on every PR. The new OMP
test repeated the dialect test's imports and npx registration command.
Export that command from the shared client test fixture instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@kaoru0822-kitauji
kaoru0822-kitauji merged commit 5d16be2 into main Oct 9, 2026
22 checks passed
@kaoru0822-kitauji
kaoru0822-kitauji deleted the test/dedupe-client-test-setup branch October 9, 2026 16:09
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
…morluto#1317)

After morluto#1301 merged, main's duplicated-line share rose to 2.503%, over
jscpd's 2.5% threshold, so Static checks fail on every PR. The new OMP
test repeated the dialect test's imports and npx registration command.
Export that command from the shared client test fixture instead.
@morluto morluto added area: tests Test suite and verification area: cli CLI adapter and one-shot commands labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants