Repository: nervosnetwork/ckb (language: rust)

Issue:
Unexpected Dirty Files Generated After Running `make bench-test` in CKB Project
## Bug Report

I have noticed that after executing the command `make bench-test` in the root directory of the CKB project, there are some unexpected dirty files generated. This issue has started occurring recently, as it was not observed before.


### Current Behavior

`make bench-test` generated some untracked dirty files. I guess this may be caused by ligh-client related code.

![Screenshot_20231225_213434](https://github.com/nervosnetwork/ckb/assets/46400566/0f694f4a-cc60-4f93-aad2-bede7590f36c)


### Expected Behavior
Running `make bench-test` should not result in the creation of any unwanted or untracked files.


### Environment

- **CKB version**: latest develop commit: [5c3e0bb916db4f8ac302bf62def47247af584c07](https://github.com/nervosnetwork/ckb/tree/5c3e0bb916db4f8ac302bf62def47247af584c07)
- **Chain**: /
- **Operating system**: NixOS unstable
- **Arch**: x64
- **Installation**: Built from source

### Additional context/Screenshots




Discussion / hints:

Fix patch:
diff --git a/benches/benches/benchmarks/resolve.rs b/benches/benches/benchmarks/resolve.rs
index ebc278351b..29ce56bc8c 100644
--- a/benches/benches/benchmarks/resolve.rs
+++ b/benches/benches/benchmarks/resolve.rs
@@ -5,6 +5,7 @@ use ckb_chain_spec::{ChainSpec, IssuedCell};
 use ckb_jsonrpc_types::JsonBytes;
 use ckb_resource::Resource;
 use ckb_shared::{Shared, SharedBuilder, Snapshot};
+use ckb_types::global::DATA_DIR;
 use ckb_types::{
     bytes::Bytes,
     core::{
@@ -123,6 +124,11 @@ pub fn gen_txs_from_genesis(block: &BlockView) -> Vec<TransactionView> {
 fn bench(c: &mut Criterion) {
     let mut group = c.benchmark_group("resolve");
 
+    let tmp_dir = tempfile::tempdir().expect("create tmp_dir failed");
+    DATA_DIR
+        .set(tmp_dir.path().join("data"))
+        .expect("DATA_DIR set only once");
+
     group.bench_with_input(BenchmarkId::new("resolve", SIZE), &SIZE, |b, txs_size| {
         b.iter_batched(
             || setup_chain(*txs_size),


Test patch: