Skip to content

fix: multiple correctness and reliability improvements across NetSM#2

Open
XavierJiezou with Copilot wants to merge 5 commits into
mainfrom
copilot/check-for-optimization-points
Open

fix: multiple correctness and reliability improvements across NetSM#2
XavierJiezou with Copilot wants to merge 5 commits into
mainfrom
copilot/check-for-optimization-points

Conversation

Copilot AI commented Apr 30, 2026

Copy link
Copy Markdown
  • Migrate [tool.poetry.dev-dependencies][tool.poetry.group.dev.dependencies]
  • Remove unreachable Tsinghua PyPI mirror source (was blocking poetry lock)
  • Regenerate poetry.lock with poetry lock
  • Verified poetry install succeeds

Copilot AI and others added 2 commits April 30, 2026 17:13
- core.py: rename __format__ -> _format_speed to avoid Python dunder conflict
- core.py: convert speed from @Property to regular method, enabling interval param
- core.py: guard addrs with AF_INET fallback to prevent KeyError on non-IPv4 NICs
- core.py: intersect NIC sets between snapshots in speed() to handle interface changes
- cli.py: pass NetSM instance into generate_table to avoid redundant instantiation
- cli.py: eliminate double generate_table call in non-incessant mode (saves 1 sec)
- cli.py: use speed.get(nic) and addrs[nic].get('address') to prevent KeyError
- tests: update to use speed() and _format_speed
- pyproject.toml: fix python_functions = test_* and remove missing integration dir
- CI: bump actions/checkout, setup-python, cache to v4; replace deprecated set-output
- codecov.yml: install local code instead of stale PyPI release; bump codecov action v4

Agent-Logs-Url: https://github.com/XavierJiezou/NetSM/sessions/19ba3440-ec77-4eda-ac05-176fc20d0550

Co-authored-by: XavierJiezou <43515350+XavierJiezou@users.noreply.github.com>
Agent-Logs-Url: https://github.com/XavierJiezou/NetSM/sessions/19ba3440-ec77-4eda-ac05-176fc20d0550

Co-authored-by: XavierJiezou <43515350+XavierJiezou@users.noreply.github.com>
…` in poetry source config

Agent-Logs-Url: https://github.com/XavierJiezou/NetSM/sessions/b825d4de-3690-4d24-b82f-9cd4a6138cb3

Co-authored-by: XavierJiezou <43515350+XavierJiezou@users.noreply.github.com>
…, regenerate lock file

Agent-Logs-Url: https://github.com/XavierJiezou/NetSM/sessions/9cb7725d-3aa1-4c1c-bedd-88762fbec722

Co-authored-by: XavierJiezou <43515350+XavierJiezou@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants