Skip to content

test(e2e): read Redis lifecycle limits from execution spec - #101

Merged
rcyw merged 1 commit into
inclusionAI:developfrom
rcyw:dev/redis-lifecycle-assertion-20261016
Oct 16, 2026
Merged

rcyw merged 1 commit into
inclusionAI:developfrom
rcyw:dev/redis-lifecycle-assertion-20261016

Conversation

@rcyw

@rcyw rcyw commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

The Redis lifecycle node-pin/delete case reads limits from the retired spec.sandbox field and raises KeyError before checking the configured limits and command execution. Read spec.execution.limits, matching the current persisted EnvironmentSpec, while preserving all existing assertions.

Validation:

  • Single-file Ruff check passes.
  • python -m tests.e2e.run --level full --case redis-lifecycle --require-clean-redis: all four cases pass, zero skips, with a clean Redis reservation ledger before and after.
  • Tested on a task-owned MY Linux/amd64 runsc deployment, reusing the audited node image for AKernel 9f247186, sandboxd d5886b42 and ADX/Execd ce80a189. The image and production SDK code are unchanged; the SDK imports from the candidate checkout. The complete E2E suite was not rerun.

The persisted EnvironmentSpec stores limits under execution. Reading the
retired sandbox key raises KeyError before the limit and command checks.
Use the current field while preserving the node-pin, held-resource, CPU,
memory, command and deletion assertions.

Signed-off-by: wayne <rcywjo@gmail.com>
@rcyw
rcyw requested a review from WenYuLuo October 16, 2026 04:27
@WenYuLuo

Copy link
Copy Markdown
Collaborator

lgtm

@hky1999 hky1999 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@rcyw
rcyw merged commit cc9ff61 into inclusionAI:develop Oct 16, 2026
11 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.

3 participants