fix(ci): restore compatibility after refactor and unblock tests#42
Merged
lexasub merged 5 commits intolexasub:mainfrom Mar 23, 2026
Merged
fix(ci): restore compatibility after refactor and unblock tests#42lexasub merged 5 commits intolexasub:mainfrom
lexasub merged 5 commits intolexasub:mainfrom
Conversation
- Auto-fix 64 errors via ruff check --fix (f-string, unused imports, etc.) - Remove duplicate analyze_stacktrace command in cli.py (F811) - Fix commit_hash → commit variable reference in cli.py (F821) - Rename _KIND_TO_LABEL → KIND_TO_LABEL in graph_updater_service (F821) - Remove stale self._extract_rust_edges call in edge_extractor (F821) - Remove unused labels_str, lang_map, label_query variables (F841) - Fix ambiguous variable l → lang_val in parsing_service (E741) - Remove duplicate dict key in schema_manager.list_indexes (F601) - Move imports before code in parsing/__init__.py (E402) - Add noqa annotations for forward-ref string annotations (F821) - Apply ruff format to all files Closes pre-existing lint issues to unblock CI for future PRs.
added 2 commits
March 23, 2026 20:17
…rash test_phase2.py runs tests at module level and calls sys.exit(1) at EOF, which crashes the entire pytest runner during collection. Wrapping all execution code in main() with an if __name__ guard fixes CI.
- restore legacy module paths with compatibility shims for moved public modules - add back ast_rag.repositories.queries used by graph_updater_service - fix parsing package import order to avoid circular import during initialization - update stale tests to current module layout and make Neo4j-dependent test skip locally when unavailable - ignore generated summary cache artifact
added 2 commits
March 23, 2026 21:01
update_project_dry_run compares revisions across commits. The default Actions checkout depth of 1 leaves the base commit unavailable in pull request runs, so the diff-based test fails only on GitHub. Fetch full history so diff-based code paths run against real commit objects in CI.
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.
Description
This PR started as repo-wide Ruff cleanup, but the cleanup exposed older breakage from the March refactor. I expanded the branch to restore compatibility with the current architecture and get CI back to a green baseline without changing core indexing or query behavior.
What changed
ruff formattests/test_phase2.pyin a__main__guard so pytest collection no longer exits the runnerast_rag.repositories.queriesused bygraph_updater_serviceast_rag.services.parsingpackage initialization order to avoid a circular import during import-time setupast_rag.ast_rag_apiast_rag.ast_rag_mcpast_rag.graph_updaterast_rag.language_queriesast_rag.parse_cacheast_rag.summarizerast_rag.watcher.ast_rag_summary_cache.jsonWhy this fits the current architecture
queries.pyhelper module expected by the current service layerVerification
ruff check ast_rag/ruff format --check ast_rag/ tests/pytest tests/ -v --tb=short95 passed, 1 skippedtestcheck passed on this PR: https://github.com/lexasub/raged/actions/runs/23445517499Notes