Skip to content

fix(lcb-service): pin base image to Python 3.11 to match LiveCodeBench - #457

Open
liayan wants to merge 1 commit into
mlcommons:mainfrom
liayan:fix/lcb-service-python-3.11-base-image
Open

fix(lcb-service): pin base image to Python 3.11 to match LiveCodeBench#457
liayan wants to merge 1 commit into
mlcommons:mainfrom
liayan:fix/lcb-service-python-3.11-base-image

Conversation

@liayan

@liayan liayan commented Aug 19, 2026

Copy link
Copy Markdown
Member

LiveCodeBench requires Python >= 3.10, and its README uses uv venv --python 3.11. Switch both build/runtime stages from dhi.io/python:3.14-debian13(-sfw-dev) to dhi.io/python:3.11-debian13(-sfw-dev) to match.

This is related to #433
#433 (comment)

Python 3.14 changed the Linux multiprocessing default to forkserver. With the shipped Python 3.14 service image, grading child processes died during startup, leaving evaluation stuck at 0/N.

After discussion, the current conclusion is to revert the base image to Python 3.11. An explicit spawn solution is still worth investigating, but it needs additional performance evaluation before we consider adopting it.

What does this PR do?

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor/cleanup

Related issues

Testing

  • Tests added/updated
  • All tests pass locally
  • Manual testing completed

Checklist

  • Code follows project style
  • Pre-commit hooks pass
  • Documentation updated (if needed)

@liayan
liayan requested a review from a team August 19, 2026 18:47
@github-actions

Copy link
Copy Markdown

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@github-actions github-actions Bot added the size/normal PR Review Policy: <=500 non-test lines & <=20 files label Aug 19, 2026
…r the base image

LiveCodeBench requires-python >= 3.10 and its README uses `uv venv --python 3.11`.
Switch both build/runtime stages from dhi.io/python:3.14-debian13(-sfw-dev) to
dhi.io/python:3.11-debian13(-sfw-dev) to match.
@liayan
liayan force-pushed the fix/lcb-service-python-3.11-base-image branch from 515d744 to a8531de Compare August 19, 2026 18:53
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@463c676). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #457   +/-   ##
=======================================
  Coverage        ?   80.98%           
=======================================
  Files           ?      150           
  Lines           ?    20208           
  Branches        ?        0           
=======================================
  Hits            ?    16366           
  Misses          ?     3842           
  Partials        ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@liayan liayan changed the title fix(lcb-service): mirror LiveCodeBench's own Python version (3.11) fix(lcb-service): pin base image to Python 3.11 to match LiveCodeBench Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/normal PR Review Policy: <=500 non-test lines & <=20 files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants