Conversation
…ndling Co-authored-by: allen0099 <22383656+allen0099@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix errors in the current workflow
Fix tox workflow failures due to missing Redis/Memcached services
Dec 15, 2025
allen0099
approved these changes
Dec 15, 2025
Owner
|
@copilot 修正 workflow 錯誤 |
Co-authored-by: allen0099 <22383656+allen0099@users.noreply.github.com>
Author
Copilot
AI
changed the title
Fix tox workflow failures due to missing Redis/Memcached services
Fix workflow errors: missing services, deprecated commands, and exception handling
Dec 15, 2025
ShivanshShukla
added a commit
to ShivanshShukla/FastAPI-CacheX
that referenced
this pull request
Sep 25, 2026
…len0099#64) - Set _is_held = True synchronously at entry of acquire() before the first await to prevent shared-instance race conditions. - Format CHANGELOG.md entries with bold summaries and link allen0099#64 on both. - Revert zensical.zh-TW.toml edit. - Update docs/LOCK.md to detail TTL expiration behavior and default timeout=None indefinite blocking. - Move PYI034 ignore inline on __aenter__ line in lock.py. - Update test_lock_shared_instance_raises_runtime_error in tests/test_lock.py to use YieldingMemoryBackend.
ShivanshShukla
added a commit
to ShivanshShukla/FastAPI-CacheX
that referenced
this pull request
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The workflows had multiple issues: the tox workflow was missing Redis and Memcached services, the publish workflow used deprecated GitHub Actions syntax, and Redis connection tests were crashing with unhandled exceptions when Redis was unavailable.
Changes
.github/workflows/tox.yml: Added Redis and Memcached service containers to match test.yml and coverage.yml configurations.github/workflows/publish.yml: Replaced deprecated::set-outputcommand with$GITHUB_OUTPUTenvironment file approach to resolve GitHub Actions deprecation warningstests/backends/test_redis.py: Expanded exception handling inis_redis_running()to catchConnectionRefusedErrorandOSErrorin addition toTimeoutErrorTests now skip gracefully when services are unavailable instead of failing with unhandled exceptions, and all workflows use current GitHub Actions syntax without deprecation warnings.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.