Commit Graph

1235 Commits

Author SHA1 Message Date
dependabot[bot] 7d23837943
chore(deps): Bump clap from 4.5.31 to 4.5.34 (#1070)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.31 to 4.5.34.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.5.31...clap_complete-v4.5.34)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-31 21:18:58 +08:00
dependabot[bot] 531ade4a3c
chore(deps): Bump bytesize from 1.3.2 to 1.3.3 (#1069)
Bumps [bytesize](https://github.com/bytesize-rs/bytesize) from 1.3.2 to 1.3.3.
- [Release notes](https://github.com/bytesize-rs/bytesize/releases)
- [Changelog](https://github.com/bytesize-rs/bytesize/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bytesize-rs/bytesize/compare/v1.3.2...v1.3.3)

---
updated-dependencies:
- dependency-name: bytesize
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-31 21:18:37 +08:00
dependabot[bot] 6d5515de81
chore(deps): Bump blake3 from 1.7.0 to 1.8.0 (#1067)
Bumps [blake3](https://github.com/BLAKE3-team/BLAKE3) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/BLAKE3-team/BLAKE3/releases)
- [Commits](https://github.com/BLAKE3-team/BLAKE3/compare/1.7.0...1.8.0)

---
updated-dependencies:
- dependency-name: blake3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-31 21:18:09 +08:00
Gaius ddde4da033
feat(dragonfly-client/src/proxy): add port parameter to HTTPS proxy handler (#1066)
- Modified `https_handler` to extract port from URI, defaulting to 443 if not present
- Updated `upgraded_tunnel` and `upgraded_handler` to accept port parameter
- Adjusted URI construction in `upgraded_handler` to include port in HTTPS format

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-31 18:33:57 +08:00
Gaius 83bbf1973a
test(dragonfly-client-storage): add unit tests for content and fix doctest syntax (#1065)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-31 11:52:03 +08:00
Gaius 250f083980
feat: optimize hard link and copy logic (#1064)
* feat: optimize hard link and copy logic

Refer to https://github.com/dragonflyoss/design/blob/main/systems-analysis/file-download-workflow-with-hard-link/README.md

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-28 18:29:20 +08:00
Gaius 501a4cdf66
chore(ci/Dockerfile): add benches for dragonfly-client-storage
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-27 22:48:54 +08:00
Gaius ce4b748c19
feat: remove repeat piece from piece collector (#1062)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-27 22:37:43 +08:00
Gaius 4f3e2f6e4f
feat: optimize benches for cache and lru cache (#1063)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-27 22:16:22 +08:00
SouthWest7 47d2222900
test: add benchmarks for dragonfly-client-storage/cache (#1057)
Signed-off-by: southwest miao <1403572259@qq.com>
2025-03-27 18:24:49 +08:00
Gaius 216ac0937a
feat(dragonfly-client): reducing lock contention and improving concurrency (#1061)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-27 14:27:44 +08:00
Gaius ac7f2d7388
feat(dragonfly-client/src/resource): reuse grpc client in piece downloader (#1060)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-27 10:26:09 +08:00
Gaius 991855ef21
feat(dragonfly-client/src/grpc): support exchange_ib_verbs_queue_pair_endpoint api (#1059)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-25 21:03:32 +08:00
dependabot[bot] d5ddb0eee0
chore(deps): Bump blake3 from 1.6.0 to 1.7.0 (#1056)
Bumps [blake3](https://github.com/BLAKE3-team/BLAKE3) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/BLAKE3-team/BLAKE3/releases)
- [Commits](https://github.com/BLAKE3-team/BLAKE3/compare/1.6.0...1.7.0)

---
updated-dependencies:
- dependency-name: blake3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 12:19:02 +08:00
dependabot[bot] 139d106716
chore(deps): Bump bytes from 1.10.0 to 1.10.1 (#1055)
Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.10.0...v1.10.1)

---
updated-dependencies:
- dependency-name: bytes
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 12:18:48 +08:00
dependabot[bot] 3f5def40c3
chore(deps): Bump http-body-util from 0.1.2 to 0.1.3 (#1054)
Bumps [http-body-util](https://github.com/hyperium/http-body) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/hyperium/http-body/releases)
- [Commits](https://github.com/hyperium/http-body/compare/http-body-util-v0.1.2...http-body-util-v0.1.3)

---
updated-dependencies:
- dependency-name: http-body-util
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 12:18:35 +08:00
dependabot[bot] 94ce2f7334
chore(deps): Bump tempfile from 3.18.0 to 3.19.1 (#1053)
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.18.0 to 3.19.1.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.18.0...v3.19.1)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 12:18:20 +08:00
dependabot[bot] 44e4ad63cd
chore(deps): Bump github/codeql-action from 3.28.11 to 3.28.12 (#1051)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.11 to 3.28.12.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](6bb031afdd...5f8171a638)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 12:17:29 +08:00
dependabot[bot] a7f006fb00
chore(deps): Bump http from 1.2.0 to 1.3.1 (#1052)
Bumps [http](https://github.com/hyperium/http) from 1.2.0 to 1.3.1.
- [Release notes](https://github.com/hyperium/http/releases)
- [Changelog](https://github.com/hyperium/http/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/http/compare/v1.2.0...v1.3.1)

---
updated-dependencies:
- dependency-name: http
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-24 20:58:04 +08:00
Gaius 2e46546bb6
feat(dragonfly-client-storage): optimize lru cache
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-24 13:56:49 +08:00
SouthWest7 3111106f4a
test(dragonfly-client-storage): add unit tests for `lru_cache` and `cache` module. (#1050)
Signed-off-by: Gaius <gaius.qi@gmail.com>
Signed-off-by: southwest miao <1403572259@qq.com>
Co-authored-by: Gaius <gaius.qi@gmail.com>
2025-03-24 13:40:06 +08:00
dependabot[bot] b9b784289b
chore(deps): Bump wiremock from 0.6.2 to 0.6.3 (#1044)
Bumps [wiremock](https://github.com/LukeMathWalker/wiremock-rs) from 0.6.2 to 0.6.3.
- [Changelog](https://github.com/LukeMathWalker/wiremock-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/LukeMathWalker/wiremock-rs/compare/v0.6.2...v0.6.3)

---
updated-dependencies:
- dependency-name: wiremock
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-18 11:47:37 +08:00
dependabot[bot] 31a7afeb41
chore(deps): Bump serde from 1.0.218 to 1.0.219 (#1045)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.218 to 1.0.219.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.218...v1.0.219)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-18 11:47:11 +08:00
dependabot[bot] de676ee5bf
chore(deps): Bump uuid from 1.15.1 to 1.16.0 (#1046)
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.15.1 to 1.16.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/v1.15.1...v1.16.0)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-18 11:46:51 +08:00
dependabot[bot] 667d6667c6
chore(deps): Bump aquasecurity/trivy-action from 0.29.0 to 0.30.0 (#1049)
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.29.0 to 0.30.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](18f2510ee3...6c175e9c40)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-18 11:44:09 +08:00
Gaius 8e79b1b72f
chore(ci/Dockerfile): add infiniband-diags and libibverbs-utils for container (#1043)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-17 14:10:59 +08:00
Gaius fcea789ec8
feat: remove proxy cache (#1042)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-14 19:07:51 +08:00
Gaius e5b8dcb383
refactor: optimize storage cache (#1041)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-14 18:49:37 +08:00
Gaius 70eca028cd
refactor(dragonfly-client-storage): optimize lru_cache for storage (#1040)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-14 15:49:56 +08:00
SouthWest7 9ca89909f3
feat: add a LRU cache module for preheat jobs (#945)
Signed-off-by: southwest miao <1403572259@qq.com>
2025-03-14 13:47:53 +08:00
Gaius beff3f87b3
chore(ci/Dockerfile): add tools for image (#1039)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-13 19:43:47 +08:00
Gaius 6bc3fbbd48
fix(dragonfly-client-storage): improve hard link handling in content storage (#1038)
- Bumped version from 0.2.18 to 0.2.19 across all packages
- Modified hard link logic in content.rs to:
  - Move existence check after initial hard link attempt
  - Handle AlreadyExists error case more gracefully
  - Apply consistent behavior for both regular and persistent cache tasks
- Maintains original functionality while improving error handling flow

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-13 17:51:15 +08:00
Gaius 316cb541dd
chore: update version to 0.2.18
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-13 11:45:18 +08:00
Gaius 21a2065d7b
chore(ci/Dockerfile): add bottom for client image (#1037)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-13 11:41:32 +08:00
Gaius a75988717c
test(dragonfly-client-storage): optimize engine tests (#1036)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-11 22:37:21 +08:00
Chongzhi Deng e34d07f419
test: add unit tests for RocksdbStorageEngine (#1035)
Signed-off-by: BruceAko <chongzhi@hust.edu.cn>
2025-03-11 20:31:43 +08:00
Gaius 79a0aa25c8
chore: change the registry origin from dockerhub to ecr (#1034)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-11 16:37:32 +08:00
dependabot[bot] 604a0d079b
chore(deps): Bump github/codeql-action from 3.28.10 to 3.28.11 (#1033)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.10 to 3.28.11.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](b56ba49b26...6bb031afdd)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 11:05:37 +08:00
dependabot[bot] 0db01708fe
chore(deps): Bump tempfile from 3.17.1 to 3.18.0 (#1032)
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.17.1 to 3.18.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.17.1...v3.18.0)

---
updated-dependencies:
- dependency-name: tempfile
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 11:05:09 +08:00
dependabot[bot] c3784719dc
chore(deps): Bump uuid from 1.14.0 to 1.15.1 (#1031)
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.14.0 to 1.15.1.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/v1.14.0...v1.15.1)

---
updated-dependencies:
- dependency-name: uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 11:04:25 +08:00
dependabot[bot] b469ce9a74
chore(deps): Bump tokio from 1.43.0 to 1.44.0 (#1029)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.43.0 to 1.44.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.43.0...tokio-1.44.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 11:04:06 +08:00
dependabot[bot] a9f85fa5e7
chore(deps): Bump clap from 4.5.30 to 4.5.31 (#1028)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.30 to 4.5.31.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.30...v4.5.31)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 11:03:29 +08:00
dependabot[bot] 1d821bf636
chore(deps): Bump reqwest-middleware from 0.4.0 to 0.4.1 (#1030)
Bumps [reqwest-middleware](https://github.com/TrueLayer/reqwest-middleware) from 0.4.0 to 0.4.1.
- [Release notes](https://github.com/TrueLayer/reqwest-middleware/releases)
- [Commits](https://github.com/TrueLayer/reqwest-middleware/commits)

---
updated-dependencies:
- dependency-name: reqwest-middleware
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 10:59:23 +08:00
Gaius c91138d2eb
feat(dragonfly-client): optimize piece download performance (#1027)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-07 16:55:19 +08:00
Gaius 32a102da38
feat: add static SUPPORTED_HTTP_PROTOCOLS for proxy (#1026)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-07 14:50:33 +08:00
Gaius 0f04e07797
feat: add certs cache for generating self-signed certs (#1025)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-07 14:25:19 +08:00
Gaius 85ad3f81d0
feat: optimize profile.release and remove tracing-flame (#1024)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-06 20:27:07 +08:00
Gaius 68bc6df1b2
feat: change crc to crc32fast (#1023)
* feat: change crc to crc32fast

Signed-off-by: Gaius <gaius.qi@gmail.com>

* feat: update

Signed-off-by: Gaius <gaius.qi@gmail.com>

* feat: update

Signed-off-by: Gaius <gaius.qi@gmail.com>

---------

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-06 13:58:03 +08:00
Gaius 00ef5fdfbd
refactor(dragonfly-client-storage): optimize buffer creation sequence for better readability (#1022)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-05 22:39:59 +08:00
Gaius 22c37712f0
feat(dragonfly-client/proxy): improved data transfer efficiency in the proxy (#1021)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-05 19:15:15 +08:00