Skip to content

chore(deps): upgrade Python and GitHub Actions dependencies - #333

Merged
zhsama merged 2 commits into
mainfrom
chore/upgrade-dependencies-20261008
Oct 9, 2026
Merged

zhsama merged 2 commits into
mainfrom
chore/upgrade-dependencies-20261008

Conversation

@WH-2099

@WH-2099 WH-2099 commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Important

  1. Make sure you have read our contribution guidelines
  2. Search existing issues and pull requests to confirm this change is not a duplicate
  3. Open or identify the issue this pull request resolves or advances
  4. Use a Conventional Commits title for this pull request, and mark breaking changes with !
  5. Remember that the pull request title will become the squash merge commit message
  6. If CLA Assistant prompts you, sign CLA.md in the pull request conversation

Related Issue

Closes #332.
Replaces the closed dependency PRs #297, #329, #330, and #331.

Summary

Refresh the complete dependency environment with uv lock --upgrade, updating 49 runtime, development, and transitive packages.
This includes pypdf 6.19.0 and urllib3 2.8.0, which cover the eight currently open lockfile security alerts, plus newer transformers, ty, and prek releases than the superseded PRs.
Raise the published pypdf minimum to 6.19.0 and the build backend minimum to uv_build 0.12.24.

Update all available stable GitHub Actions releases while retaining commit SHA pins: setup-uv 10.2.0, upload-artifact 7.0.2, and download-artifact 8.0.2.
Adapt generator annotations, constructor decorators, JSON value annotations, and test inputs to the updated Ruff and ty checks.
Remove an unnecessary iterable truthiness check and unused graph-test initialization.

Four packages remain below their latest releases because current upstream requirements prevent further upgrades:

Package Selected Latest Constraint
filelock 3.32.7 4.0.12 unstructured requires <4.0.0
huggingface-hub 1.33.0 2.2.0 tokenizers requires <2.0
installer 0.7.0 1.0.1 unstructured requires <1.0.0
thinc 8.3.13 9.1.1 spacy requires <8.4.0

Validation

  • just check: passed, including lock consistency, formatting, Ruff, ty, and import boundaries.
  • Python 3.12: uv run --locked --python 3.12 pytest -n 4 — 956 passed.
  • Python 3.13: the same full suite in a separate uv environment — 956 passed.
  • uv build --no-create-gitignore --no-sources: wheel and source distribution built successfully.
  • Wheel metadata checked for pypdf>=6.19.0 and the supported Python range.
  • Action release tags and pinned commit SHAs verified against the official repositories.

The branch includes the documentation review merged in #335.
Documentation freshness and link checks now pass on both supported Python versions.
The release and publication workflows have not been executed.

Checklist

  • This pull request links the issue it resolves or advances
  • This pull request title follows Conventional Commits, and any breaking change is marked with !
  • If CLA Assistant prompted me, I signed CLA.md in the pull request conversation

Copilot AI balanced review requested due to automatic review settings October 8, 2026 16:39
@WH-2099 WH-2099 self-assigned this Oct 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The broad dependency refresh affects 49 packages while the required full test suite remains red from the documented pre-existing deadline failure.

0 open findings

What changed in this PR

Refreshes Python and GitHub Actions dependencies, including security-related pypdf and urllib3 upgrades, with compatibility adjustments for updated tooling.

Changes:

  • Refreshes the Python lockfile and raises pypdf and uv_build minimums.
  • Updates pinned GitHub Actions releases.
  • Adapts annotations, constructors, utilities, and tests to updated Ruff and ty checks.
File Description
uv.lock Refreshes resolved dependencies.
pyproject.toml Raises pypdf and uv_build minimums.
.github/​workflows/​test.yml Updates setup-uv.
.github/​workflows/​pr.yml Updates setup-uv.
.github/​workflows/​release.yml Updates setup-uv and artifact actions.
src/​graphon/​variables/​utils.py Simplifies iterable extension.
src/​graphon/​runtime/​execution.py Corrects context-manager annotations.
src/​graphon/​file/​runtime.py Corrects context-manager annotation.
src/​graphon/​engine/​worker/​worker.py Corrects context-manager annotation.
src/​graphon/​model_runtime/​model_providers/​base/​large_language_model.py Simplifies JSON value annotations.
src/​graphon/​dsl/​slim/​llm.py Removes constructor override annotation.
src/​graphon/​nodes/​code/​code_node.py Removes constructor override annotation.
src/​graphon/​nodes/​http_request/​node.py Removes constructor override annotation.
src/​graphon/​nodes/​human_input/​human_input_node.py Removes constructor override annotation.
src/​graphon/​nodes/​llm/​node.py Removes constructor override annotation.
src/​graphon/​nodes/​parameter_extractor/​parameter_extractor_node.py Removes constructor override annotation.
src/​graphon/​nodes/​template_transform/​template_transform_node.py Removes constructor override annotation.
src/​graphon/​nodes/​tool/​tool_node.py Removes constructor override annotation.
tests/​engine/​test_cooperative_container_execution.py Updates generator annotation.
tests/​engine/​test_file_runtime.py Updates generator annotation.
tests/​engine/​test_layer_node_run_context.py Updates generator annotations.
tests/​graph/​test_graph_validation.py Removes obsolete test initialization.
tests/​nodes/​http_request/​test_dispatch.py Passes typed node data directly.
tests/​nodes/​if_else/​test_entities.py Passes typed node data directly.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI balanced review requested due to automatic review settings October 9, 2026 10:03
@WH-2099
WH-2099 force-pushed the chore/upgrade-dependencies-20261008 branch from d49195e to c13684e Compare October 9, 2026 10:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The build-backend floor remains behind the latest stable uv-build release requested by issue #332.

1 open finding

🧠 Review effort: Balanced

Comment thread pyproject.toml Outdated
Copilot AI balanced review requested due to automatic review settings October 9, 2026 10:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The broad runtime and transitive dependency refresh warrants final human review despite comprehensive validation.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced

@zhsama
zhsama merged commit 325e052 into main Oct 9, 2026
9 checks passed
@zhsama
zhsama deleted the chore/upgrade-dependencies-20261008 branch October 9, 2026 11:19
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.

chore(deps): consolidate and upgrade all dependencies

3 participants