Skip to content

Conversation

willccbb
Copy link
Owner

Description

Adds a Kubernetes execution backend to the livecodebench environment, providing a scalable and cloud-native alternative to the existing Docker-based execution. This implementation is self-contained within the environments/livecodebench directory and acts as a drop-in replacement, supporting both local (kind/minikube) and remote Kubernetes clusters.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Test improvement

Testing

  • All existing tests pass (Docker backend functionality is preserved)
  • New tests have been added to cover the changes (basic functionality can be verified by running kubernetes_sandbox.py directly)
  • Tests have been run locally with python -m pytest tests/

Test Coverage

  • Current coverage: ___%
  • Coverage after changes: ___%

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (KUBERNETES_USAGE.md added)
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Additional Notes

  • Users can now specify backend="kubernetes" when loading the livecodebench environment.
  • pyyaml is added as an optional dependency, required only when using the Kubernetes backend.
  • Comprehensive usage instructions and configuration options are available in environments/livecodebench/KUBERNETES_USAGE.md.

Open in WebOpen in CursorOpen Docs

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

3 participants