Skip to content

fix: resolve CI test failures for Redis temp state and S3 deps#125

Open
miyannishar wants to merge 2 commits intogoogle:mainfrom
miyannishar:fix/ci-test-failures
Open

fix: resolve CI test failures for Redis temp state and S3 deps#125
miyannishar wants to merge 2 commits intogoogle:mainfrom
miyannishar:fix/ci-test-failures

Conversation

@miyannishar
Copy link
Copy Markdown

@miyannishar miyannishar commented May 5, 2026

Summary

Fixes two pre-existing CI test failures:

1. S3 Artifact Tests — CI workflow fix

The CI workflow was using --extra s3 but the project's pyproject.toml only defines a test extra group — there is no s3 group. Reverted to --extra test only. The S3 artifact tests already use pytest.importorskip("aioboto3") to gracefully skip when the dependency is not installed, which is the correct pattern for optional dependencies.

2. Redis Session Test — test_session_state_management AssertionError

RedisSessionService.append_event() was not explicitly filtering temp: prefixed keys from session.state before serializing to Redis. Added defensive filtering after super().append_event() to ensure temp state is never persisted.

Changes

  • .github/workflows/unit-tests.yamluv sync --extra test (removed non-existent --extra s3)
  • src/google/adk_community/sessions/redis_session_service.py — strip State.TEMP_PREFIX keys before Redis persistence

- Install s3 optional dependency in CI (--extra s3) so aioboto3 is
  available and S3 artifact tests run
- Defensively filter temp: prefixed keys in RedisSessionService.append_event
  to ensure temp state is never persisted to Redis
@DeanChensj
Copy link
Copy Markdown
Collaborator

error: Extra s3 is not defined in the project's optional-dependencies table

Could you also resolve this?

The pyproject.toml only defines a 'test' extra group. S3 artifact
tests already use pytest.importorskip('aioboto3') to gracefully skip
when the dependency is not installed.
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.

2 participants