Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 11:23
· 31 commits to main since this release

English

Added

  • Enhanced comprehensive test coverage with async ping error handling and performance tests
  • Added stress testing, memory usage, backpressure, and performance benchmark tests
  • Enabled pytest parallel execution with -n logical option
  • Added comprehensive async ping test coverage
  • Added cross-platform architecture explanation
  • Improved README with platform support details

Changed

  • Unified timeout control across all ping operations
  • Optimized async ping receiving logic, removed redundant blocking operations
  • Refactored ICMP ping timeout calculation logic and result validation
  • Migrated async ping result channels from blocking standard channels to Tokio async channels
  • Simplified platform adaptation by using pinger library for all platforms
  • Adjusted test assertions to be more resilient
  • Upgraded pyo3 and related libraries to version 0.27
  • Upgraded pyo3-log to version 0.13
  • Upgraded pinger to version 2.1.1
  • Upgraded pre-commit-hooks version
  • Adjusted Makefile pre-commit startup command
  • Optimized pyproject.toml dependency configuration and classification information

Fixed

  • Adjusted async multiple ping test timeout parameters and result assertions to avoid flaky tests
  • Fixed Windows platform ping timeout packet count calculation
  • Fixed async ping timeout handling - now attempts to receive remaining results before stopping
  • Fixed ping timeout logic and cross-platform timeout calculation
  • Adjusted ping default timeout to 1000ms

Removed

  • Removed Windows-specific ping implementation and related utility code
  • Removed IP resolution and timing-related Windows utility code

简体中文

Added

  • 增强异步 ping 错误处理和性能测试的全面测试覆盖
  • 新增压力测试、内存使用、背压和性能基准测试
  • 启用 pytest 并行执行测试,使用 -n logical 选项
  • 新增全面的异步 ping 测试覆盖
  • 新增跨平台架构说明
  • 完善 README 中的平台支持详情

Changed

  • 统一所有 ping 操作的超时控制机制
  • 优化异步 ping 接收逻辑,移除多余的阻塞操作
  • 重构 ICMP ping 超时计算逻辑和结果判断
  • 将异步 ping 结果通道从阻塞标准通道迁移到 Tokio 异步通道
  • 简化平台适配逻辑,统一使用 pinger 库处理所有平台
  • 调整测试断言,提高稳健性
  • 升级 pyo3 及相关库至 0.27 版本
  • 升级 pyo3-log 至 0.13 版本
  • 升级 pinger 至 2.1.1 版本
  • 升级 pre-commit-hooks 版本
  • 调整 Makefile 中 pre-commit 启动命令
  • 优化 pyproject.toml 依赖配置和分类信息

Fixed

  • 调整异步多次 ping 测试的超时参数和结果断言,避免测试偶发失败
  • 修正 Windows 平台 ping 超时包数计算逻辑
  • 修正异步 ping 超时处理 - 超时后先尝试接收剩余结果再停止
  • 修正 ping 超时逻辑及跨平台超时计算
  • 调整 ping 默认超时时间为 1000 毫秒

Removed

  • 移除 Windows 平台专用 ping 实现及相关工具代码
  • 移除 IP 解析和定时相关的 Windows 工具代码