<commit_before>/*
// Outstanding or known issues on tests (should give particular priority
//   to 'Timeout' or 'Not Run' tests in case they are our own test environment
//   problems)

0. BREAKING TESTS (NEED TO AVOID ERRORING OUT OF TESTS AND CATEGORIZE)

- `bindings-inject-key.js`, `keypath-exceptions.js`: (Uncaught exceptions has required their complete exclusion for now)
- `idb-binary-key-roundtrip.js`: https://github.com/w3c/web-platform-tests/issues/4817
- See `?` below

0. RACE CONDITIONS
(If these are unsolvable due to checks using timeouts and our
own extra time needed for a transaction, we might at least override
`setTimeout` to extend its length (at least for Node where we are
extending the transaction time (and unlike the browser, able to do
so) so as to make rollbacks possible). This would at least let us
check whether there are other more serious errors we are missing.)

- `idbcursor-source.js`: seems to have its last test in a
    race condition or such to cause pass/fail results to vary
- `idbobjectstore_openKeyCursor.js`: seems to have its last test in a
    race condition or such to cause pass/fail results to vary
- The exception order tests seem to have this problem as well

1. ERROR PRECEDENCE/METADATA REVERSIONS
// Todo: Investigate and add to exclusions/remove mention of files accordingly: https://github.com/w3c/web-platform-tests/issues/2888
- `idbindex_get8.js`: Ensure for sake of error precedence, aborted upgrade transaction flags so attempts to get a store/index will fail as deleted
- `idbindex_getKey8.js`: Ensure for sake of error precedence, aborted upgrade transaction flags so attempts to get a store/index will fail as deleted
- `idbindex_openCursor3.js`: Ensure for sake of error precedence, aborted upgrade transaction flags so attempts to get a store/index will fail as deleted
- `idbindex_openKeyCursor4.js`: Ensure for sake of error precedence, aborted upgrade transaction flags so attempts to get a store/index will fail as deleted

- `idbcursor-advance-exception-order.js`: ?
- `idbobjectstore-deleteIndex-exception-order.js`: ?
- `idbdatabase-createObjectStore-exception-order.js`: ?
- `idbdatabase-deleteObjectStore-exception-order.js`: ?
- `idbdatabase-transaction-exception-order.js`: ?
- `idbindex-query-exception-order.js`: ?
- `idbobjectstore-clear-exception-order.js`: ?
- `idbobjectstore-delete-exception-order.js`: ?
- `idbobjectstore-query-exception-order.js`: ?
- `idbobjectstore-add-put-exception-order.js`: ?
- `idbobjectstore-delete-exception-order.js`: ?

- `upgrade-transaction-lifecycle-user-aborted.js`: Some kind of transaction error mismatch problem?

- `idbobjectstore_createIndex4-deleteIndex-event_order.js`: unique index (error timing?)

- `transaction-abort-multiple-metadata-revert.js`: ?
- `transaction-abort-index-metadata-revert.js`: ?
- `transaction-abort-object-store-metadata-revert.js`: ?

2. STORE/INDEX RENAME
- `idbindex-rename-abort.js`: ?
- `idbindex-rename-errors.js`: ?
- `idbindex-rename.js`: ?
- `idbobjectstore-rename-abort.js`: ?
- `idbobjectstore-rename-store.js`: ?

3. BLOCKING/VERSIONCHANGE
- `idbdatabase_close.js`: Requires blocking (issue #2)
- `idbdatabase_close2.js`: Requires blocking (issue #2)
- `transaction-lifetime-blocked.js`: Requires blocking (issue #2)
- `transaction-lifetime.js`: `versionchange` event (handling with issue #2)
- `open-request-queue.js`: (Timing out)

LOWER PRIORITY ISSUES (NEXT RELEASE?)

0. NODE ISSUE-RELATED
- `interfaces.js`: Has one failing test due to a bug in Node: https://github.com/axemclion/IndexedDBShim/issues/280

1. BINARY (issue #228)
- `idbfactory_cmp3.js`
- `idbfactory_cmp4.js`
- `idb_binary_key_conversion.js`
- `idb-binary-key-roundtrip.js`
- `idb-binary-key-detached.js`

2. BLOB/FILE
- `keypath-special-identifiers.js`

3. SHARED AND SERVICE WORKERS
- Need to implement as Node shims, stop disabling these tests in node-idb-test.js, and run

4. CLONING
- `keypath-exceptions.js`

// Passing no argument to `node-idb-test.js` will test all of the IndexedDB
//   tests including some worker tests, but only those within the
//  `IndexedDB` directory<commit_msg>- More on code comment<commit_after>/*
// Outstanding or known issues on tests (should give particular priority
//   to 'Timeout' or 'Not Run' tests in case they are our own test environment
//   problems)

0. BREAKING TESTS (NEED TO AVOID ERRORING OUT OF TESTS AND CATEGORIZE)

- `bindings-inject-key.js`, `keypath-exceptions.js`: (Uncaught exceptions has required their complete exclusion for now)
- `idb-binary-key-roundtrip.js`: https://github.com/w3c/web-platform-tests/issues/4817
- See `?` below

0. RACE CONDITIONS
(If these are unsolvable due to checks using timeouts and our
own extra time needed for a transaction, we might at least override
`setTimeout` to extend its length (at least for Node where we are
extending the transaction time (and unlike the browser, able to do
so) so as to make rollbacks possible). This would at least let us
check whether there are other more serious errors we are missing.)

- `idbcursor-source.js`: seems to have its last test in a
    race condition or such to cause pass/fail results to vary
- `idbobjectstore_openKeyCursor.js`: seems to have its last test in a
    race condition or such to cause pass/fail results to vary
- The exception order tests seem to have this problem as well

1. ERROR PRECEDENCE/METADATA REVERSIONS
// Todo: Investigate and add to exclusions/remove mention of files accordingly: https://github.com/w3c/web-platform-tests/issues/2888
- `idbindex_get8.js`: Ensure for sake of error precedence, aborted upgrade transaction flags so attempts to get a store/index will fail as deleted
- `idbindex_getKey8.js`: Ensure for sake of error precedence, aborted upgrade transaction flags so attempts to get a store/index will fail as deleted
- `idbindex_openCursor3.js`: Ensure for sake of error precedence, aborted upgrade transaction flags so attempts to get a store/index will fail as deleted
- `idbindex_openKeyCursor4.js`: Ensure for sake of error precedence, aborted upgrade transaction flags so attempts to get a store/index will fail as deleted

- `idbcursor-advance-exception-order.js`: ?
- `idbobjectstore-deleteIndex-exception-order.js`: ?
- `idbdatabase-createObjectStore-exception-order.js`: ?
- `idbdatabase-deleteObjectStore-exception-order.js`: ?
- `idbdatabase-transaction-exception-order.js`: ?
- `idbindex-query-exception-order.js`: ?
- `idbobjectstore-clear-exception-order.js`: ?
- `idbobjectstore-delete-exception-order.js`: ?
- `idbobjectstore-query-exception-order.js`: ?
- `idbobjectstore-add-put-exception-order.js`: ?
- `idbobjectstore-delete-exception-order.js`: ?

- `upgrade-transaction-lifecycle-user-aborted.js`: Some kind of transaction error mismatch problem?

- `idbobjectstore_createIndex4-deleteIndex-event_order.js`: unique index (error timing?)

- `transaction-abort-multiple-metadata-revert.js`: ?
- `transaction-abort-index-metadata-revert.js`: ?
- `transaction-abort-object-store-metadata-revert.js`: ?

2. STORE/INDEX RENAME
- `idbindex-rename-abort.js`: ?
- `idbindex-rename-errors.js`: ?
- `idbindex-rename.js`: ?
- `idbobjectstore-rename-abort.js`: ?
- `idbobjectstore-rename-store.js`: ?

3. BLOCKING/VERSIONCHANGE
- `idbdatabase_close.js`: Requires blocking (issue #2)
- `idbdatabase_close2.js`: Requires blocking (issue #2)
- `transaction-lifetime-blocked.js`: Requires blocking (issue #2)
- `transaction-lifetime.js`: `versionchange` event (handling with issue #2)
- `open-request-queue.js`: (Timing out)

LOWER PRIORITY ISSUES (NEXT RELEASE?)

0. NODE ISSUE-RELATED
- `interfaces.js`: Has one failing test due to a bug in Node: https://github.com/axemclion/IndexedDBShim/issues/280

1. BINARY (issue #228)
- `idbfactory_cmp3.js`
- `idbfactory_cmp4.js`
- `idb_binary_key_conversion.js`
- `idb-binary-key-roundtrip.js`
- `idb-binary-key-detached.js`

2. BLOB/FILE
- `keypath-special-identifiers.js`

3. SHARED AND SERVICE WORKERS
- Need to implement as Node shims, stop disabling these tests in node-idb-test.js, and run

4. CLONING/PROTOTYPE CHAIN
- `keypath-exceptions.js`
- `bindings-inject-key.js`

// Passing no argument to `node-idb-test.js` will test all of the IndexedDB
//   tests including some worker tests, but only those within the
//  `IndexedDB` directory
{'fraction_non_alphanumeric': 0.10969449121962954, 'fraction_numerical': 0.009141207601635795, 'mean_word_length': 4.434640522875817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1669803', 'n_tokens_mistral': 2750, 'n_tokens_neox': 2645, 'n_words': 831}