TOOLS-4263 Delete JS tests fully covered by existing Go tests - #1041
Merged
autarch merged 1 commit intoAug 6, 2026
Merged
Conversation
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Jul 16, 2026
autarch
force-pushed
the
07-16-tools-4263_delete_js_tests_fully_covered_by_existing_go_tests
branch
from
July 16, 2026 20:35
75c4e40 to
eef4eab
Compare
autarch
changed the base branch from
graphite-base/1041
to
07-16-tools-4263_add_a_go_test_that_we_preserve_indexes_when_restoring_with_a_non-admin_user_on_a_per-data_basis
July 16, 2026 20:35
autarch
force-pushed
the
07-16-tools-4263_add_a_go_test_that_we_preserve_indexes_when_restoring_with_a_non-admin_user_on_a_per-data_basis
branch
from
July 17, 2026 18:57
2a490be to
ae8464d
Compare
autarch
force-pushed
the
07-16-tools-4263_delete_js_tests_fully_covered_by_existing_go_tests
branch
from
July 17, 2026 18:57
eef4eab to
47590df
Compare
autarch
force-pushed
the
07-16-tools-4263_add_a_go_test_that_we_preserve_indexes_when_restoring_with_a_non-admin_user_on_a_per-data_basis
branch
from
July 23, 2026 13:44
ae8464d to
ad7bb15
Compare
autarch
force-pushed
the
07-16-tools-4263_delete_js_tests_fully_covered_by_existing_go_tests
branch
from
July 23, 2026 13:44
47590df to
5892362
Compare
autarch
force-pushed
the
07-16-tools-4263_delete_js_tests_fully_covered_by_existing_go_tests
branch
from
July 24, 2026 16:40
5892362 to
fcdfb84
Compare
autarch
force-pushed
the
07-16-tools-4263_add_a_go_test_that_we_preserve_indexes_when_restoring_with_a_non-admin_user_on_a_per-data_basis
branch
from
July 24, 2026 16:40
ad7bb15 to
e95e844
Compare
autarch
marked this pull request as ready for review
July 24, 2026 18:25
|
Assigned |
autarch
requested review from
mmcclimon
and removed request for
a team,
nickweinberger and
tdq45gj
July 27, 2026 17:24
autarch
force-pushed
the
07-16-tools-4263_add_a_go_test_that_we_preserve_indexes_when_restoring_with_a_non-admin_user_on_a_per-data_basis
branch
from
July 27, 2026 21:16
e95e844 to
26fdca5
Compare
autarch
force-pushed
the
07-16-tools-4263_delete_js_tests_fully_covered_by_existing_go_tests
branch
from
July 27, 2026 21:17
fcdfb84 to
523ab1e
Compare
autarch
changed the base branch from
07-16-tools-4263_add_a_go_test_that_we_preserve_indexes_when_restoring_with_a_non-admin_user_on_a_per-data_basis
to
graphite-base/1041
August 5, 2026 21:16
autarch
force-pushed
the
graphite-base/1041
branch
from
August 5, 2026 21:16
26fdca5 to
7b47697
Compare
autarch
force-pushed
the
07-16-tools-4263_delete_js_tests_fully_covered_by_existing_go_tests
branch
from
August 5, 2026 21:16
523ab1e to
37b0e2c
Compare
autarch
changed the base branch from
graphite-base/1041
to
07-16-tools-4263_add_a_go_test_that_we_preserve_indexes_when_restoring_with_a_non-admin_user_on_a_per-data_basis
August 5, 2026 21:16
Collaborator
Author
|
evergreen retry |
autarch
changed the base branch from
07-16-tools-4263_add_a_go_test_that_we_preserve_indexes_when_restoring_with_a_non-admin_user_on_a_per-data_basis
to
graphite-base/1041
August 5, 2026 21:43
autarch
force-pushed
the
07-16-tools-4263_delete_js_tests_fully_covered_by_existing_go_tests
branch
from
August 5, 2026 21:47
37b0e2c to
95a5707
Compare
autarch
force-pushed
the
graphite-base/1041
branch
from
August 5, 2026 21:47
7b47697 to
6f5d3a5
Compare
autarch
changed the base branch from
graphite-base/1041
to
07-16-tools-4263_add_a_go_test_that_we_preserve_indexes_when_restoring_with_a_non-admin_user_on_a_per-data_basis
August 5, 2026 21:48
Collaborator
Author
|
evergreen retry |
Collaborator
Author
autarch
changed the base branch from
07-16-tools-4263_add_a_go_test_that_we_preserve_indexes_when_restoring_with_a_non-admin_user_on_a_per-data_basis
to
graphite-base/1041
August 6, 2026 19:53
Here's a mapping of JS to existing Go tests:
- test/legacy42/jstests/tool/tool1.js
-> TestRoundTripBasicData (integration/exportimport/data_test.go)
+ TestPipedDumpRestore (integration/dumprestore/roundtrip_test.go)
- test/legacy42/jstests/tool/exportimport3.js
-> TestRoundTripJSONArray (integration/exportimport/json_test.go)
- test/legacy42/jstests/tool/restorewithauth.js
-> TestDumpRestoreEnforcesAuthRoles (mongorestore/dumprestore_auth_test.go)
- test/qa-tests/jstests/restore/users_and_roles_admin.js
-> TestDumpRestoreSingleDBWithDBUsersAndRoles (mongorestore/dumprestore_auth_test.go)
- test/qa-tests/jstests/restore/stop_on_error.js
-> TestMongorestoreMIOSOE (mongorestore/mongorestore_test.go)
- test/qa-tests/jstests/restore/oplog_replay_specify_file.js
-> TestOplogRestore and related oplog-file cases (mongorestore/oplog_test.go)
- test/qa-tests/jstests/import/stoponerror.js
-> TestImportMIOSOE (mongoimport/mongoimport_test.go)
- test/qa-tests/jstests/files/mongofiles_list.js
-> "list" cases in TestMongoFilesCommands (mongofiles/mongofiles_test.go)
autarch
force-pushed
the
07-16-tools-4263_delete_js_tests_fully_covered_by_existing_go_tests
branch
from
August 6, 2026 19:55
95a5707 to
1721712
Compare
autarch
deleted the
07-16-tools-4263_delete_js_tests_fully_covered_by_existing_go_tests
branch
August 6, 2026 19:56
This was referenced Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

These JS tests are already fully covered by existing Go tests, so they can be deleted with no new Go code.
JS -> Go mapping:
test/legacy42/jstests/tool/tool1.js->TestRoundTripBasicData(integration/exportimport/data_test.go) +TestPipedDumpRestore(integration/dumprestore/roundtrip_test.go) - A basic smoke test: dump a collection and restore it, then export it and import it, checking the data survives each round trip.test/legacy42/jstests/tool/exportimport3.js->TestRoundTripJSONArray(integration/exportimport/json_test.go) -mongoexport --jsonArrayfollowed bymongoimport --jsonArrayround-trips a collection.test/qa-tests/jstests/restore/users_and_roles_admin.js->TestDumpRestoreSingleDBWithDBUsersAndRoles(mongorestore/dumprestore_auth_test.go) - Single-database dumps and restores handle access-control data correctly, including when the database being dumped isadmin.test/qa-tests/jstests/restore/stop_on_error.js->TestMongorestoreMIOSOE(mongorestore/mongorestore_test.go) -mongorestore --stopOnErroraborts on the first insert error instead of continuing.test/qa-tests/jstests/restore/oplog_replay_specify_file.js->TestOplogRestoreand the related oplog-file cases (mongorestore/oplog_test.go) -mongorestore --oplogReplaywith an explicit--oplogFilereplays ops from that file.test/qa-tests/jstests/import/stoponerror.js->TestImportMIOSOE(mongoimport/mongoimport_test.go) -mongoimport --stopOnErrorand--maintainInsertionOrderabort on the first error.test/qa-tests/jstests/files/mongofiles_list.js-> the "list" cases inTestMongoFilesCommands(mongofiles/mongofiles_test.go) -mongofiles listreturns every stored file with the right names and sizes.