Skip to content

Support cgroup v1 and v2 resource verification - #55

Merged
hanhainebula merged 5 commits into
mainfrom
fix/cgroup-v1-v2-compatibility
Nov 19, 2026
Merged

hanhainebula merged 5 commits into
mainfrom
fix/cgroup-v1-v2-compatibility

Conversation

@hanhainebula

Copy link
Copy Markdown
Collaborator

Summary

Support resource verification on both cgroup v1 and v2 hosts for six resource-constrained tasks.

  • Read CPU and memory limits and counters through a shared cgroup adapter, including effective v1 ancestor limits.
  • Monitor v1 OOM events for Budgeted Bimetric Retrieval and Large-scale Formula Retrieval.
  • Report missing or invalid resource evidence as an invalid measurement.
  • Check Harbor trial results when summarizing batches, including setup failures and valid zero scores.
  • Update runtime documentation and compatibility tests.

Validation

  • Passed all 450 repository unit tests.
  • Passed merge-ready static checks for the six affected tasks.
  • Tested v1 ancestor limits and Formula memory checks in a Linux v1 OCI container.
  • Passed 21 Formula tests in a v2 Docker container.
  • Verified Harbor handling of setup failure, a valid zero score and an invalid cgroup measurement.
  • Independently reviewed and replayed 1,287 historical native Harbor results.

The changes preserve the existing scoring formulas and task budgets. Historical results and trajectories remain unchanged.

@hanhainebula
hanhainebula merged commit bec6079 into main Nov 19, 2026
4 checks passed
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.

1 participant