project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.19k stars 1.91k forks source link

[Test Failed] TestAclEvent on Darwin occasionally fails with CoreData error related to `/tmp/chip_kvs` #30533

Open ksperling-apple opened 7 months ago

ksperling-apple commented 7 months ago

Test issue(s)

Examples of failed jobs: https://github.com/project-chip/connectedhomeip/actions/runs/6713932972/job/18246354524 https://github.com/project-chip/connectedhomeip/actions/runs/6897625019/job/18766145859

Platform

darwin

Anything else?

FAILED: mac_x64_gcc/gen/src/app/tests/TestAclEvent.run.pw_pystamp 
python3 ../../third_party/pigweed/repo/pw_build/py/pw_build/python_runner.py --gn-root ../../ --current-path ../../src/app/tests --default-toolchain=//third_party/pigweed/repo/pw_toolchain/default:default --current-toolchain=//build/toolchain/host:mac_x64_gcc --touch mac_x64_gcc/gen/src/app/tests/TestAclEvent.run.pw_pystamp --capture-output --module pw_unit_test.test_runner --python-virtualenv-config python/gen/matter_build_venv/venv_metadata.json --python-dep-list-files mac_x64_gcc/gen/src/app/tests/TestAclEvent.run_metadata_path_list.txt -- --runner ../../third_party/pigweed/repo/targets/host/run_test --test mac_x64_gcc/tests/TestAclEvent
ERR ../../third_party/pigweed/repo/targets/host/run_test exited with status 134
OUT [Pid: 21999]
CoreData: error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSCocoaErrorDomain (512)
CoreData: annotation: userInfo:
CoreData: annotation:   reason : File appeared during sanity check; this seems suspicious
CoreData: annotation: storeType: SQLite
CoreData: annotation: configuration: (null)
CoreData: annotation: URL: file:///tmp/chip_kvs
CoreData: error: (6922) I/O error for database at /tmp/chip_kvs.  SQLite error code:6922, 'disk I/O error'
CoreData: error: Encountered exception I/O error for database at /tmp/chip_kvs.  SQLite error code:6922, 'disk I/O error' with userInfo {
    NSFilePath = "/tmp/chip_kvs";
    NSSQLiteErrorDomain = 6922;
} in createSchema for store: <NSSQLiteConnection: 0x613000001000>
CoreData: error: addPersistentStoreWithType:configuration:URL:options:error: returned error NSSQLiteErrorDomain (6922)
CoreData: annotation: userInfo:
CoreData: annotation:   NSFilePath : /tmp/chip_kvs
CoreData: annotation:   NSSQLiteErrorDomain : 6922
CoreData: annotation: storeType: SQLite
CoreData: annotation: configuration: (null)
CoreData: annotation: URL: file:///tmp/chip_kvs
bzbarsky-apple commented 7 months ago

That sounds like two different things are trying to use the same storage at the same time...