Skip to content

ci: fold test_transformers into the sharded nox job - #692

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
ci/fold-transformers-into-nox
Aug 14, 2026
Merged

ci: fold test_transformers into the sharded nox job#692
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
ci/fold-transformers-into-nox

Conversation

@starfolkai

@starfolkai starfolkai Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Drop the standalone transformers-py job; test_transformers now runs alongside every other session under the sharded nox matrix.
  • Move the Hugging Face model cache into the nox job so shards still avoid re-downloading models across runs.
  • Update checks-passed to no longer gate on transformers-py.

Test plan

  • CI on this PR: confirm test_transformers(...) lands in some shard and passes on Linux.
  • Watch Windows shards — this is a scope expansion vs. the old Ubuntu-only job. If they flake, add a session.skip for sys.platform == "win32" in noxfile.py:test_transformers.

🤖 Generated with Claude Code

Created by Abhijeet Prasad (@AbhiPrasad)

Slack thread

Drop the standalone transformers-py job and let test_transformers run
alongside every other session under the sharded nox matrix. The
Hugging Face model cache moves into the nox job so shards still avoid
re-downloading models across runs.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 057536c491

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "Codex (@codex) address that feedback".

Comment on lines +144 to +145
mise exec python@${{ matrix.python-version }} -- python ./py/scripts/nox-matrix.py ${{ matrix.shard }} 6 \
--exclude-static-checks

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve serialized Transformers cache warmup

When the Hugging Face cache is cold—most notably on the first Windows run—the sharded matrix starts every Python/OS combination concurrently, so none can restore models saved by an earlier Python version. Checking checks.yaml and the parametrized test_transformers session in py/noxfile.py, up to eight jobs per OS can therefore fetch the same five models simultaneously, recreating the download stampede that the removed max-parallel: 1 explicitly prevented and risking Hugging Face throttling or CI timeouts; retain a serialized cache-warming/dedicated job before including these sessions in the shards.

AGENTS.md reference: AGENTS.md:L17-L21

Useful? React with 👍 / 👎.

@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit f3f2f8d into main Aug 14, 2026
82 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the ci/fold-transformers-into-nox branch August 14, 2026 19:52
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