Fix workflow duplication, resource leaks, and datetime timezone bugs#17
Merged
heidi-dang merged 4 commits intomainfrom Jan 31, 2026
Merged
Fix workflow duplication, resource leaks, and datetime timezone bugs#17heidi-dang merged 4 commits intomainfrom
heidi-dang merged 4 commits intomainfrom
Conversation
- Update CI workflow to only run on pushes to main - Add pip caching to CI workflow Python job - Fix all auto-fixable linting issues (imports, type annotations) - Add logging to auth.py instead of print - Configure per-file ignores for T201 (print) in CLI tools - All linting checks now pass - Security tests pass Co-authored-by: heidi-dang <35790+heidi-dang@users.noreply.github.com>
- Fix database connection leaks in progress.py by using context managers - Add logging to all exception handlers in progress.py - Properly close SQLite connections even when exceptions occur - Add detailed error logging for better debugging Co-authored-by: heidi-dang <35790+heidi-dang@users.noreply.github.com>
- Fix naive datetime usage in registry.py (use UTC) - Fix datetime initialization in parallel_orchestrator.py - Add comprehensive error logging to prompts.py - Prevent timezone-related bugs from mixing naive and aware datetimes Co-authored-by: heidi-dang <35790+heidi-dang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix workflow issues and refactor entire code
Fix workflow duplication, resource leaks, and datetime timezone bugs
Jan 31, 2026
heidi-dang
approved these changes
Jan 31, 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.
CI workflows were running duplicate jobs on PRs. Codebase had resource leaks in SQLite connections and naive datetime usage causing timezone comparison failures.
Workflow
pull_requesttrigger fromci.yml(now push-only;pr-check.ymlhandles PRs)Resource Management
Before:
After:
Fixed 3 instances in
progress.py.Datetime Consistency
Issue: Mixed naive and UTC-aware datetimes cause
TypeErroron comparison.Fixed: 6 instances across
registry.pyandparallel_orchestrator.py:datetime.now()→datetime.now(UTC)session_start_time: datetime = None→datetime.now(UTC)(preventsAttributeError)Error Visibility
Added logging to 12 silent exception handlers:
progress.py: Database ops, webhook failuresprompts.py: Template loading, file copy failuresserver/routers/auth.py: Token revocationCode Quality
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cdn.jsdelivr.net/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
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.