Repository navigation
test(gaia): pin the flagship's index root to _code_search_start - #4663
Merged
Merged
Conversation
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 required
Unit Tests (Linux, py3.12)check fails onmainfor every PR. #4647 changed where the flagship starts code search, but the test that pins that choice still expected the old rule. This brings the test in line with the agent, and adds a case for the bug #4647 actually fixed: the first allowed path doesn't exist yet.Closes #4660
Test plan
python -m pytest tests/unit/test_project_map.pypasses (88 passed)python util/lint.py --allpassesUnit Tests (Linux, py3.12)is green on this PR🔍 Technical details
self._project_map_root() or _code_search_start(allowed)._IndexRootAgentcalls the flagship's real_code_search_start. The test pulls that one function out ofagent.pywithastand compiles it, so it doesn't have to importGaiaAgent, which the file avoids because of the editable-install problem. That way the stand-in can't drift from the helper's logic.test_the_index_skips_an_allowed_path_that_does_not_exist:allowed[0]is missing andallowed[1]exists. It fails under the oldallowed[0]rule and passes under the new one.tests/unit/suite couldn't finish in this job (missing optional test deps such asresponses, and a time limit). The change only touches this test file.