Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

fix(ci): drop unpinnable benchmarks/requirements.txt install (#1345)

Mohd Kaifd135ad185ff3
diff --git a/.github/requirements/benchmark-extra.in b/.github/requirements/benchmark-extra.in
index 80906b1b..c03dcba2 100644
--- a/.github/requirements/benchmark-extra.in
+++ b/.github/requirements/benchmark-extra.in
@@ -11,3 +11,4 @@ python-docx
beautifulsoup4
chardet
langdetect
+en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl
diff --git a/.github/requirements/benchmark-extra.txt b/.github/requirements/benchmark-extra.txt
index 443da14b..5754a2ba 100644
--- a/.github/requirements/benchmark-extra.txt
+++ b/.github/requirements/benchmark-extra.txt
@@ -408,6 +408,9 @@ cuda-toolkit==13.0.3.0 \
# via
# -c requirements-ci.txt
# torch
+en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl \
+ --hash=sha256:1932429db727d4bff3deed6b34cfc05df17794f4a52eeb26cf8928f7c1a0fb85
+ # via -r .github/requirements/benchmark-extra.in
et-xmlfile==2.0.0 \
--hash=sha256:7a91720bc756843502c3b7504c77b8fe44217c85c537d85037f0f536151b2caa \
--hash=sha256:dab3f4764309081ce75662649be815c4c9081e88f0837825f90fd28317d4da54
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
index 85c3bd3e..f37b67d3 100644
--- a/.github/workflows/benchmark.yml
+++ b/.github/workflows/benchmark.yml
@@ -44,12 +44,20 @@ jobs:
pip install -r .github/requirements/pep517-build.txt --require-hashes
pip install --no-deps --no-build-isolation -e .
pip install -r .github/requirements/base-deps.txt --require-hashes
- # NOTE: benchmarks/ does not currently exist in this repo, so this
- # step and the run below it fail on any real invocation - pre-existing,
- # unrelated to this pinning change. Left as-is since there's nothing
- # to hash without knowing what belongs there.
- pip install -r benchmarks/requirements.txt
- python -m spacy download en_core_web_sm
+ # NOTE: benchmarks/ does not currently exist in this repo (neither
+ # requirements.txt nor benchmarks_runner.py below), so this job
+ # already fails on any real invocation - pre-existing, unrelated to
+ # this pinning change. The `pip install -r benchmarks/requirements.txt`
+ # step that used to be here is dropped rather than fixed: there's
+ # nothing to hash-pin without knowing what that file should
+ # contain, and an unpinned install here would just re-trip
+ # Scorecard's Pinned-Dependencies check for no real benefit, since
+ # the job can't run to completion regardless.
+ #
+ # `python -m spacy download en_core_web_sm` fetches an unpinned,
+ # unhashed wheel from spacy-models' GitHub releases - replaced with
+ # a hash-pinned direct-URL install of the same 3.8.0 model (matches
+ # the spacy==3.8.15 pinned in base-deps.txt) via benchmark-extra.txt.
pip install -r .github/requirements/benchmark-extra.txt --require-hashes
- name: Execute Benchmarks (Real Mode)