Commit Graph

1235 Commits

Author SHA1 Message Date
Gaius 4c6afc52a8
chore(ci/Dockerfile.debug): add flamegraph for debug image (#1020)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-05 12:37:48 +08:00
Gaius 033e67a82f
fix(workflows): rename debug image cache
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-04 23:36:03 +08:00
Gaius 232ba0a5e7
fix(dragonfly-client/resource/piece_collector.rs): remove download piece number (#1019)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-04 22:57:35 +08:00
Gaius 8b7645df2a
feat(dragonfly-client/proxy): eliminate potential memory leak in piece reader handling (#1018)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-03 22:47:15 +08:00
dependabot[bot] 48c996375a
chore(deps): Bump serde_json from 1.0.138 to 1.0.140 (#1013)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.138 to 1.0.140.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.138...v1.0.140)

---
updated-dependencies:
- dependency-name: serde_json
  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-03 21:07:32 +08:00
dependabot[bot] b0045ffc14
chore(deps): Bump termion from 4.0.3 to 4.0.4 (#1015)
Bumps termion from 4.0.3 to 4.0.4.

---
updated-dependencies:
- dependency-name: termion
  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-03 21:06:59 +08:00
dependabot[bot] 75fadcf7a0
chore(deps): Bump chrono from 0.4.39 to 0.4.40 (#1016)
Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.39 to 0.4.40.
- [Release notes](https://github.com/chronotope/chrono/releases)
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.39...v0.4.40)

---
updated-dependencies:
- dependency-name: chrono
  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-03 21:06:49 +08:00
dependabot[bot] 905a727535
chore(deps): Bump reqwest-tracing from 0.5.5 to 0.5.6 (#1014)
Bumps [reqwest-tracing](https://github.com/TrueLayer/reqwest-middleware) from 0.5.5 to 0.5.6.
- [Release notes](https://github.com/TrueLayer/reqwest-middleware/releases)
- [Commits](https://github.com/TrueLayer/reqwest-middleware/commits)

---
updated-dependencies:
- dependency-name: reqwest-tracing
  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-03 21:06:44 +08:00
Gaius a3dfaa6711
chore(workflows/docker.yaml): add debug suffix for trivy (#1017)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-03 21:04:55 +08:00
dependabot[bot] 38b83967e9
chore(deps): Bump anyhow from 1.0.95 to 1.0.97 (#1012)
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.95 to 1.0.97.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.95...1.0.97)

---
updated-dependencies:
- dependency-name: anyhow
  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-03 21:03:09 +08:00
Gaius eadbc46e51
feat(dragonfly-client/proxy): remove finished_piece_readers when copy finished (#1011)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-03 17:54:46 +08:00
Gaius cd9f5ca356
feat(dragonfly-client/proxy): add switch for cache in proxy (#1010)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-03 17:45:10 +08:00
Gaius 545bbe5902
chore(ci/Dockerfile.debug): remove --debug from cargo build
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-03 12:16:58 +08:00
Gaius 6440b91fee
chore(workflows/docker.yml): build debug image for client (#1009)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-03 11:33:41 +08:00
Gaius 1af3cccb64
feat(dragonfly-client/proxy): optimize map_or in proxy (#1007)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-27 09:23:25 +08:00
Gaius 31e4d136d0
feat(dragonfly-client-storage): optimize hard link handling and cache logic (#1005)
- Bump all crate versions from 0.2.15 to 0.2.16
- Add cross-platform device/inode check for hard link operations
- Refactor hard link logic to remove redundant helper methods
- Implement proper file existence checks with same-device/inode validation

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-27 00:23:03 +08:00
Gaius 300bb7b786
chore(release): set toolchain to 1.82.0 (#1006)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-27 00:22:25 +08:00
Gaius 746adece0a
fix(dragonfly-client/proxy): resolve OOM issues caused by LRU cache memory leak (#1004)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-26 18:50:50 +08:00
Gaius 237d3d7173
feat: cleaning up Unix Domain Sockets to avoid crashes (#1003)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-26 18:11:31 +08:00
Gaius 5e659a210b
feat: remove piece_length in Register process (#1002)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-26 12:19:55 +08:00
Gaius 5b0da70938
feat(dragonfly-client-util): remove wyhash package (#1001)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-25 15:14:44 +08:00
dependabot[bot] 25397ff62a
chore(deps): Bump uuid from 1.13.1 to 1.14.0 (#996)
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/1.13.1...v1.14.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-02-25 10:41:51 +08:00
dependabot[bot] 49a7809220
chore(deps): Bump github/codeql-action from 3.28.9 to 3.28.10 (#1000)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.9 to 3.28.10.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](9e8d0789d4...b56ba49b26)

---
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-02-25 10:40:56 +08:00
dependabot[bot] 6bde270d2a
chore(deps): Bump blake3 from 1.5.5 to 1.6.0 (#999)
Bumps [blake3](https://github.com/BLAKE3-team/BLAKE3) from 1.5.5 to 1.6.0.
- [Release notes](https://github.com/BLAKE3-team/BLAKE3/releases)
- [Commits](https://github.com/BLAKE3-team/BLAKE3/compare/1.5.5...1.6.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-02-25 10:40:24 +08:00
dependabot[bot] 532da5af0e
chore(deps): Bump tempfile from 3.16.0 to 3.17.1 (#998)
Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.16.0 to 3.17.1.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.16.0...v3.17.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-02-25 10:40:05 +08:00
dependabot[bot] c14586f7c9
chore(deps): Bump clap from 4.5.29 to 4.5.30 (#997)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.29 to 4.5.30.
- [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.29...clap_complete-v4.5.30)

---
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-02-25 10:39:45 +08:00
dependabot[bot] 7a0a524189
chore(deps): Bump serde from 1.0.217 to 1.0.218 (#995)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.217 to 1.0.218.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.217...v1.0.218)

---
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-02-25 10:39:26 +08:00
Gaius 259ebc0d52
feat: add piece length for calculating task id (#994)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-24 18:13:41 +08:00
Gaius 6d6a802f09
feat: add X-Dragonfly-Output-Path header for proxy (#993)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-24 12:06:28 +08:00
Gaius c3911f0469
test(dragonfly-client-storage): add test case for has_enough_space (#992)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-20 20:21:49 +08:00
Gaius bbc6c29371
chore(workflows/docker): fix image-ref for dfinit in trivy scanner (#991)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-19 10:39:38 +08:00
Gaius 617db57361
chore: update cargo version to 0.2.12 (#990)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-18 22:49:44 +08:00
dependabot[bot] 8c9d71389f
chore(deps): Bump hyper from 1.5.2 to 1.6.0 (#988)
Bumps [hyper](https://github.com/hyperium/hyper) from 1.5.2 to 1.6.0.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v1.5.2...v1.6.0)

---
updated-dependencies:
- dependency-name: hyper
  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-02-18 10:09:08 +08:00
dependabot[bot] 49152c5a18
chore(deps): Bump bytesize from 1.3.0 to 1.3.2 (#987)
Bumps [bytesize](https://github.com/bytesize-rs/bytesize) from 1.3.0 to 1.3.2.
- [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.0...v1.3.2)

---
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-02-18 10:08:51 +08:00
dependabot[bot] 3f287b8f2e
chore(deps): Bump clap from 4.5.28 to 4.5.29 (#986)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.28 to 4.5.29.
- [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.28...clap_complete-v4.5.29)

---
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-02-18 10:08:36 +08:00
dependabot[bot] c5a7804f12
chore(deps): Bump openssl from 0.10.70 to 0.10.71 (#984)
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.70 to 0.10.71.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.70...openssl-v0.10.71)

---
updated-dependencies:
- dependency-name: openssl
  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-02-18 10:08:19 +08:00
Gaius 3495d98f23
chore: rename image-ref in Trivy vulnerability scanner actions (#989)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-18 10:07:18 +08:00
dependabot[bot] 684eafcad2
chore(deps): Bump toml_edit from 0.22.23 to 0.22.24 (#985)
Bumps [toml_edit](https://github.com/toml-rs/toml) from 0.22.23 to 0.22.24.
- [Commits](https://github.com/toml-rs/toml/compare/v0.22.23...v0.22.24)

---
updated-dependencies:
- dependency-name: toml_edit
  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-02-17 22:44:02 +08:00
Gaius 42c29062b6
chore: add trivy action for vulnerability scanner (#983)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-17 11:12:10 +08:00
Gaius d0fa28a879
feat: add concurrency limit for grpc server (#982)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-14 18:31:51 +08:00
Gaius 991ecd34ac
feat: set permissions for Unix Domain Socket in dfdaemon_download (#981)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-14 14:10:12 +08:00
Gaius 04c71e6e2b
feat: calculate digest of the persistent cache piece to check the integrity of the metadata (#980)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-14 12:00:53 +08:00
KennyMcCormick 32c99b711e
add checksum in download request to verify its consistency (#979)
Signed-off-by: cormick <cormick1080@gmail.com>
2025-02-14 10:37:57 +08:00
Gaius 3339d5ca2f
feat: bump api from v2.1.23 to v2.1.25 and optimize gc for persistent cache task (#978)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-12 17:23:49 +08:00
Gaius ac0dbbd11d
chore(ci/Dockerfile): add iotop for client image (#977)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-12 14:02:44 +08:00
Gaius 07d7d834a0
chore(ci/Dockerfile): add fio for client image (#976)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-12 12:06:17 +08:00
Gaius d56dae38ab
feat: add iperf3 for Dockerfile and change is_expired for PersistentCacheTask (#975)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-11 20:35:51 +08:00
Gaius a33f861443
feat: get absolute path for dfdaemon import file (#974)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-11 18:41:16 +08:00
Gaius 4407ecd2fd
fix: if disk has no enough space, client return failed (#973)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-11 12:34:16 +08:00
dependabot[bot] 5b287feccc
chore(deps): Bump bytes from 1.9.0 to 1.10.0 (#971)
Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.9.0 to 1.10.0.
- [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.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: bytes
  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-02-11 11:03:44 +08:00