Skip to content

Hold the floor leg to a release cutoff, name the CPU integration job, and state the CHANGELOG rule - #783

Merged
amazloumi merged 4 commits into
mainfrom
ci/pin-floor-leg-and-changelog-rule
Dec 6, 2026
Merged

amazloumi merged 4 commits into
mainfrom
ci/pin-floor-leg-and-changelog-rule

Conversation

@Naeemkh

@Naeemkh Naeemkh commented Dec 5, 2026

Copy link
Copy Markdown
Member

Summary

Three CI and contributor-guidance changes, one commit each. Nothing under kempnerforge/, tests/ or scripts/ changes, and CHANGELOG.md is untouched.

#746 item 3: the floor leg installs only releases uploaded before a cutoff (.github/workflows/ci.yml). The leg's uv pip install --resolution lowest-direct holds its 19 direct requirements (the 17 declared dependencies and pytest with pytest-timeout) at their lowest allowed versions, but the other 102 packages it installs (122 in all, counting kempnerforge itself) resolved on every run to the newest release the requirements allowed, so an upstream release alone could turn the required unit-tests check red on every PR. On 2026-12-05, main's floor leg installed fastapi 0.165.1 at 06:51 UTC and 0.165.2 at 15:31 UTC; between 2026-11-15 and 2026-12-05, 23 of those pins moved. The install now ends with --exclude-newer 2026-12-05T00:00:00Z, so uv considers only files uploaded before that time.

  • The date reproduces a green run. With it, uv 0.13.13 (what main's floor jobs ran) and uv 0.9.16 both resolve exactly the 122 packages that main's floor job installed at 06:51 UTC on 2026-12-05 (run 47490962642, the first green run on main of the leg with Declare numpy, pyarrow and pandas, and check that every floor installs #764's floors: 6634 passed). The 2026-12-01 suggested in planning would install 9 packages at older versions, a combination that no CI run with Declare numpy, pyarrow and pandas, and check that every floor installs #764's floors has installed: cryptography 50.0.2, fastapi 0.165.0, filelock 4.3.2, google-auth 2.63.1, idna 3.20, opentelemetry-api and opentelemetry-sdk 1.45.2, opentelemetry-semantic-conventions 0.66b2 and regex 2026.11.30. Main's newest green floor run (18:50 UTC on 2026-12-05, at this branch's base) took fastapi 0.165.2, uploaded at 12:53 UTC, so with this PR the leg goes back to fastapi 0.165.1; every other package is the same.
  • It is a full UTC timestamp because uv reads a bare date in the system's time zone, which differs between the cluster and GitHub's runners.
  • A YAML comment above the step explains the cutoff and says that a PR that raises a bound, or adds a dependency, to a release uploaded after it moves the date forward in the same PR, to a time already past at which the leg passes, as a UTC timestamp. The rich<14.3.4 constraint, the check step and the leg's place in the required unit-tests check stay as they were.
  • Neither scripts/check_dependency_floors.py nor its test reads the install command, so neither changes.
  • Docs: docs/getting-started/install.md (Dependency floors) and CONTRIBUTING.md (Dependencies) describe the cutoff and when to move it.
  • What a contributor will notice: a PR that raises a bound, or adds a dependency, past the cutoff fails the floor leg's install until it moves the date (see Testing). The leg also stops picking up new releases of the packages no bound fixes: its environment changes only when the date moves.

#336, CPU part: the job that runs tests/integration/ on a CPU runner is named for it.

  • gpu-tests is now integration-cpu, with the same trigger (manual dispatch only) and the same steps. Most of the tier skips there: at this head, the job's command passes 18 tests and skips 139 in a CPU replica of the job's environment (Python 3.14.2, torch 2.14.1), and the last dispatched gpu-tests run on GitHub (run 39974012567, 2026-10-23) passed 18 and skipped 85.
  • No required check, workflow, doc or skill names the old job. The Protect main ruleset requires only unit-tests and lint, the classic branch protection requires no checks, and on main git grep gpu-tests finds only the job and its CONTRIBUTING.md row, both changed here.
  • CONTRIBUTING.md: the CI table's row says the job runs on a CPU runner, where the integration tests that need a GPU skip. A new paragraph under the table says that every job runs on a CPU runner, that no workflow runs the GPU tiers (tests/distributed/, tests/e2e/, tests/smoke/) or the integration tests that need a GPU, and that the Codecov report and badge count the unit tests alone.
  • README.md: the codecov badge's alt text and title say it counts the unit tests alone, and the Contributing section says so in a visible sentence.
  • Still open in No GPU test runs in CI: gpu-tests is manual-only and runs on a CPU runner #336: the scheduled GPU runner. It needs an org admin to register a self-hosted runner on a cluster GPU node (on schedule and workflow_dispatch only, never on pull_request), and the GPU hours it would use.

#492: PRs leave CHANGELOG.md alone, and GitHub's release notes group merged PRs by label.

  • CONTRIBUTING.md (Step 5, PR guidelines): a PR leaves CHANGELOG.md alone and puts every user-visible change and behavior note in its Summary. Each release's section of CHANGELOG.md is written when the release is cut, from GitHub's generated release notes and those Summaries.
  • .github/PULL_REQUEST_TEMPLATE.md: the Summary comment says the same in one line.
  • .github/release.yml (new): the generated notes list merged PRs under Enhancements (enhancement), Bug fixes (bug), Documentation (documentation), Dependencies (dependencies) and Other changes (*), and leave out PRs labeled duplicate, invalid or wontfix. The names match gh label list. The catch-all matters here: 96 of the last 150 merged PRs (2026-11-04 to 2026-12-05) carry none of the four labels, 77 of them only core or no label at all, and GitHub's docs say labels: '*' is required to display a catch-all category.
  • ci.yml: the changes job lists .github/release.yml among the files that do not run the unit tests.

For the maintainer: defaults taken, each yours to reverse

  1. One cutoff date rather than a constraints file of the 102 other pins (Dependency-floor CI leg: numpy, pyarrow and pandas have no floor, a floor set too low still passes, and unpinned packages can turn it red #746's first option): it pins the same set, and moving it is a one-line change that re-resolves every package together. It is not [tool.uv] exclude-newer in pyproject.toml, which would also hold back uv lock for everyone.
  2. The cutoff is 2026-12-05T00:00:00Z, not 2026-12-01 (reason above), written as a UTC timestamp.
  3. The leg stays required; Dependency-floor CI leg: numpy, pyarrow and pandas have no floor, a floor set too low still passes, and unpinned packages can turn it red #746's other option, making it non-required, is not taken.
  4. The job is named integration-cpu, with no separate display name.
  5. README: the badge's alt text and title, plus one sentence under Contributing; nothing is added under the badge row.
  6. release.yml: Enhancements before Bug fixes, the titles above, and the Other changes catch-all. It has no category for core, vlm or image_understanding, and Dependabot's python:uv label is not added to Dependencies.
  7. The CHANGELOG rule sits in Step 5's PR guidelines and the template's Summary comment. The release-time step is one sentence, not a release checklist.
  8. To get past the cutoff, the YAML comment and the docs say to move the date, not to exempt one package with --exclude-newer-package, which uv's own error hint suggests (see Testing). Every package then moves together, and per-package exceptions do not pile up.

Merging: at 4dbfe32, on main 3899909, git merge-tree merges cleanly with each open PR: #777, #776, #775, #770, #709 and #648, and none of them changes a file this branch changes. A later video extra (#399) would edit the same install line.

Testing

  • uv run ruff check . passes
  • uv run ruff format --check . passes
  • uv run pyright kempnerforge/ passes (0 errors)
  • uv run pytest tests/unit/ -v --timeout=60: passes in the floor environment this PR's install command builds, apart from 42 failures that only the cluster has (below); not rerun in the uv.lock environment, since no Python file changes, and this PR's own CI runs all three unit legs
  • If distributed code changed: uv run torchrun --nproc_per_node=4 -m pytest tests/distributed/ -v (not run: no distributed code changes)
  • If training loop / parallelism / optimizers changed: uv run pytest tests/e2e/ --e2e -v (not run: no such changes)

After two independent reviews, 4dbfe32 rewords the cutoff's description in ci.yml's comment, install.md and CONTRIBUTING.md (it narrows candidates rather than choosing the newest release, and a moved date is a past UTC timestamp) and points the GPU-tier note at GPU Access on SLURM Clusters. At 4dbfe32 both YAML files parse, Sphinx -W builds, and test_check_dependency_floors.py with the doc-pages test passes (31 passed).

All on CPU, at 265a756 on main 3899909.

The floor environment, built by the floor leg's install command as this branch's ci.yml writes it, run by uv 0.13.13 (the release main's floor jobs downloaded on 2026-12-05) on Python 3.12.11:

  • It installs 122 packages, name for name and version for version the list main's green floor job installed at 06:51 UTC on 2026-12-05 (job 145583604481).
  • scripts/check_dependency_floors.py --group video: exit 0, "All 17 declared dependencies are installed at their lower bounds."
  • pytest tests/unit/ --timeout=60, with the temporary directory on the cluster's NFS scratch: 6627 passed, 15 skipped and 42 failed, every failure from one of two causes that only the cluster has. 38 are VLM and video dataset tests that load the gpt2 tokenizer, which the cluster's offline Hugging Face cache no longer holds (LocalEntryNotFoundError); CI's runners download it. 4 are test_hooks.py::TestActivationStoreParallel cases whose temporary directory on NFS cannot be removed at cleanup (OSError: [Errno 39] Directory not empty), the NFS race Declare numpy, pyarrow and pandas, and check that every floor installs #764 described at these floors; run alone, the file fails 4 cases the same way. CI's floor job installed this exact package set at 06:51 UTC on 2026-12-05 and passed 6634 tests with none failing.

The cutoff, both ways (dry runs of the same install command, with uv 0.13.13 and uv 0.9.16 giving the same result in every row):

--exclude-newer Against the 122 packages of the green 06:51 UTC run
none, as on main (resolved at 18:45 UTC on 2026-12-05) fastapi 0.165.2 instead of 0.165.1
2026-12-01T00:00:00Z 9 packages older (listed in the Summary)
2026-12-04T00:00:00Z 7 packages older (cryptography, filelock, google-auth, idna and the three opentelemetry packages)
2026-12-05T00:00:00Z, this PR identical
  • A dependency past the cutoff fails loudly. With fastapi>=0.165.2 added to the dependencies, the install exits 1 with No solution found when resolving dependencies and uv's hint: "fastapi was filtered by exclude-newer to only include packages uploaded before 2026-12-05T00:00:00Z. The latest version satisfying the requirement is v0.165.2, published at 2026-12-05T12:53:14.663Z. Consider using exclude-newer-package to override the cutoff for this package." Without the cutoff, the same install takes fastapi 0.165.2.
  • The cutoff does not make the rich constraint redundant: without --constraint, the capped install takes rich 15.0.0.

Also checked:

  • ci.yml and release.yml parse with yaml.safe_load at each commit, and validate against SchemaStore's github-workflow.json and github-release-config.json with the jsonschema library: 0 errors each. As a control, a job id integration cpu and a category without labels each fail. actionlint was not available.
  • The changes filter, evaluated per file: .github/release.yml, the PR template, CONTRIBUTING.md, README.md and docs/ are not code, and ci.yml is, so this PR's own CI runs all three unit legs, including the floor leg with the new install command.
  • In a CPU replica of CI's uv.lock environment (Python 3.14.2, torch 2.14.1): tests/unit/test_check_dependency_floors.py and the doc-pages test (TestCliParsing::test_documented_commands_write_each_override_with_an_equals_sign) pass (31 passed), and the integration-cpu command passes 18 and skips 139, every skip for a missing CUDA device.
  • sphinx-build -W --keep-going -b html docs builds, and the rendered contributing.html and getting-started/install.html carry the new text.
  • codebase-map.json needs no entry (it lists no .github files), and map_counts.py reports only main's known mismatches.
  • The renamed job was not dispatched on GitHub; it runs on manual dispatch only.

Contribution terms

Closes #746
Closes #492
Part of #336 (the scheduled GPU runner remains)

@amazloumi
amazloumi self-requested a review December 5, 2026 21:01
@codecov

codecov Bot commented Dec 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@amazloumi amazloumi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve. The floor leg's install with the cutoff resolves exactly the 122 packages of main's last green floor run, the check and unit tests pass on it, the renamed job is not a required check, and the CHANGELOG rule matches the repo's policy.

@amazloumi
amazloumi merged commit bdaf4a4 into main Dec 6, 2026
11 checks passed
@amazloumi
amazloumi deleted the ci/pin-floor-leg-and-changelog-rule branch December 6, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants