Skip to content

chore: remove leftover networkx installs, pin and comments (post-#3041) - #3056

Merged
squid-protocol merged 1 commit into
mainfrom
chore/networkx-leftovers
Sep 15, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
chore/networkx-leftovers

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Follow-up to #3054 (#3041, the native graph engine epic #3033). #3054 removed networkx from the engine, but several install lines, a pin and comments still referred to it. This PR cleans those up. It changes no engine behaviour or output.

What changed

  • Install instructions users copy: action.yml's full_precision step and its input description, plus the CI templates in templates/{azure,bitbucket,github,gitlab}/ and templates/scan.yml, no longer pip install networkx. The action's description no longer says Blast Radius needs an optional engine.
  • The repo's own pipeline files: azure-pipelines.yml and bitbucket-pipelines.yml (two lines) drop networkx.
  • rosetta-audit's baseline venv: drops networkx. It had been kept only because the baseline was a pre-Native graph engine: remove networkx from the runtime #3041 main build that still read networkx to decide its mode. Now that Native graph engine: remove networkx from the runtime (#3041) #3054 is merged, the baseline is main, which doesn't.
  • gitgalaxy/requirements.txt: drops the networkx==3.6.1 pin. Nothing installs from this file: CI's if [ -f requirements.txt ] looks at the repo root.
  • Stale comments: comments in galaxyscope.py, record_keeper.py and llm_recorder.py and test docstrings no longer name "no networkx" as a reason a metric can be None. The real reasons now are "past its work budget" or "a failed computation".

Kept on purpose

  • networkx in the smoke-test and full-suite CI installs. It's the test-only oracle for tests/tools/graph_parity.py, and without it the parity tests would skip instead of run.
  • Comments that describe history, such as why PageRank went native, the old 500 cap, or a past CI incident.
  • numpy: its only user is the ML threat model in security_auditor.py (the feature matrix's log1p/nan/argmax). Both pandas and xgboost require numpy themselves, so it stays in the full extra. The graph engine never needed it.

Verification

  • pytest passes on the touched test files (220 passed), including test_no_networkx_runtime.py.
  • audit_check.py: all clear.
  • Every edited workflow, action and template still parses as YAML. The two GitLab CI component files are multi-document, so they were checked with safe_load_all.
  • No golden-master impact: only comments, CI install lines and a dev pin changed.

🤖 Generated with Claude Code

#3054 removed networkx from the engine; these still installed or cited it.

- action.yml full_precision step + description, templates/{azure,bitbucket,
  github,gitlab}, templates/scan.yml, azure-/bitbucket-pipelines.yml: stop
  installing networkx.
- rosetta-audit baseline venv: drop networkx (the baseline is post-#3041
  main now).
- gitgalaxy/requirements.txt: drop the networkx==3.6.1 pin.
- Comments and test docstrings: None now means "past its work budget" or
  "a failed computation", never "no networkx".

Kept: networkx in the smoke/full-suite test installs (the parity oracle).
numpy stays: the ML threat model (pandas/xgboost) requires it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@squid-protocol squid-protocol added the enhancement New feature, sensor, or structural signature label Sep 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 08fb775 into main Sep 15, 2026
38 of 39 checks passed
@squid-protocol
squid-protocol deleted the chore/networkx-leftovers branch September 15, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, sensor, or structural signature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant