Skip to content

fix(V2): use correct mirror DB name in test verification helper#1495

Merged
TheLastCicada merged 1 commit into
v2-rc2from
fix/mirror-db-name-mismatch
Feb 13, 2026
Merged

fix(V2): use correct mirror DB name in test verification helper#1495
TheLastCicada merged 1 commit into
v2-rc2from
fix/mirror-db-name-mismatch

Conversation

@TheLastCicada

Copy link
Copy Markdown
Contributor

Summary

  • The mysql-mirror-helpers.js test helper was incorrectly appending _v2 to the DB_NAME from config (e.g., cadt_mirror_test became cadt_mirror_test_v2)
  • The CADT application uses DB_NAME as-is for the V2 mirror database, so the test was verifying against an empty/nonexistent database
  • This caused all 63 mirror verification records to fail in the v2 live API tests

Root Cause

Component Database Name Used
CADT app (config.js v2Mirror) cadt_mirror_test (raw DB_NAME)
CADT migrations (prepareV2Db) cadt_mirror_test (creates and migrates this)
Test helper (before fix) cadt_mirror_test_v2 (DB_NAME + _v2)

Fix

Removed the _v2 suffix in mysql-mirror-helpers.js so the test verification connects to the same database that CADT actually writes to.

Test plan

  • Re-run v2 live API tests in CI and verify mirror verification passes
  • Confirm all 63 records are found in the mirror database

The mysql-mirror-helpers.js test helper was appending '_v2' to the
DB_NAME from config, but the CADT application uses DB_NAME as-is.
This caused mirror verification to check an empty database instead
of the one CADT actually writes to.
@TheLastCicada TheLastCicada merged commit fe3b00c into v2-rc2 Feb 13, 2026
14 of 15 checks passed
@TheLastCicada TheLastCicada deleted the fix/mirror-db-name-mismatch branch February 13, 2026 20:58
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