Skip to content

Conversation

@hittyt
Copy link
Collaborator

@hittyt hittyt commented Feb 3, 2026

Summary

Implements the OpenSpec definition for host and pvc volume backends as described in OSEP-0003. This includes:

  • OpenAPI schema definitions for Volume, HostBackend, PVCBackend, AccessMode
  • Server-side Pydantic models with validation
  • Comprehensive validator functions for volume configurations
  • Volume-related error codes
  • Auto-generated SDK models

The proposal status is updated to 'implementing'.

Refs: OSEP-0003

Testing

  • Not run (explain why)
  • Unit tests
  • Integration tests
  • e2e / manual verification

Breaking Changes

  • None
  • Yes (describe impact and migration path)

Checklist

  • Linked Issue or clearly described motivation need mount a local file directory #110
  • Added/updated docs (if needed)
  • Added/updated tests (if needed)
  • Security impact considered
  • Backward compatibility considered

Implements the OpenSpec definition for host and pvc volume backends
as described in OSEP-0003. This includes:

- OpenAPI schema definitions for Volume, HostBackend, PVCBackend, AccessMode
- Server-side Pydantic models with validation
- Comprehensive validator functions for volume configurations
- Volume-related error codes
- Unit tests for schema models and validators (73 tests)
- Auto-generated SDK models

The proposal status is updated to 'implementing'.

Refs: OSEP-0003
@Pangjiping Pangjiping added documentation Improvements or additions to documentation feature New feature or request component/k8s For kubernetes runtime labels Feb 3, 2026
@hittyt hittyt mentioned this pull request Feb 4, 2026
11 tasks
Add retry mechanism and initialization delay to reduce flaky test
failures in multi-language context tests:

- Add run_with_retry helper with exponential backoff (max 3 retries)
- Add 0.2s delay after context creation for kernel initialization
- Apply retry logic to test_06 cross-language execution tests

This addresses intermittent failures where execution returns empty
results due to kernel not being fully ready.
Improve test stability by catching and retrying on network errors:

- Add exception handling for RemoteProtocolError, connection reset, etc.
- Add create_context_with_retry helper for context creation
- Increase initial retry delay to 2s for better recovery
- Add cleanup retry in managed_ctx to handle server disconnects
- Detect retryable errors by checking error message keywords

This addresses CI failures where the server disconnects mid-request.
Increase sleep from 5ms to 2000ms to allow NetworkPolicy sidecar
to fully initialize before testing egress rules.

The previous 5ms delay was insufficient for the sidecar to be ready,
causing curl to github.com to succeed when it should have been blocked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/k8s For kubernetes runtime documentation Improvements or additions to documentation feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants