Failing tests in release 0.0.52 #39

Closed
opened 2026-02-16 17:24:56 -05:00 by yindo · 1 comment
Owner

Originally created by @adamcstephens on GitHub (Jun 7, 2025).

Tests are failing on released version, looks like maybe a sorting mismatch. Looking through the Actions workflows, I don't immediately see any jobs which would exercise these tests.

--- FAIL: TestGetContextFromPaths (0.00s)
    prompt_test.go:43:
                Error Trace:    /home/adam/git/opencode/internal/llm/prompt/prompt_test.go:43
                Error:          Not equal:
                                expected: "# From:/tmp/TestGetContextFromPaths737290226/001/file.txt\nfile.txt: test content\n# From:/tmp/TestGetContextFromPaths737290226/001/directory/file_a.txt\ndirectory/file_a.txt: test content\n# From:/tmp/TestGetContextFromPaths737290226/001/directory/file_b.txt\ndirectory/file_b.txt: test content\n# From:/tmp/TestGetContextFromPaths737290226/001/directory/file_c.txt\ndirectory/file_c.txt: test content"
                                actual  : "# From:/tmp/TestGetContextFromPaths737290226/001/directory/file_a.txt\ndirectory/file_a.txt: test content\n# From:/tmp/TestGetContextFromPaths737290226/001/directory/file_b.txt\ndirectory/file_b.txt: test content\n# From:/tmp/TestGetContextFromPaths737290226/001/file.txt\nfile.txt: test content\n# From:/tmp/TestGetContextFromPaths737290226/001/directory/file_c.txt\ndirectory/file_c.txt: test content"

                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -1,3 +1 @@
                                -# From:/tmp/TestGetContextFromPaths737290226/001/file.txt
                                -file.txt: test content
                                 # From:/tmp/TestGetContextFromPaths737290226/001/directory/file_a.txt
                                @@ -6,2 +4,4 @@
                                 directory/file_b.txt: test content
                                +# From:/tmp/TestGetContextFromPaths737290226/001/file.txt
                                +file.txt: test content
                                 # From:/tmp/TestGetContextFromPaths737290226/001/directory/file_c.txt
                Test:           TestGetContextFromPaths
Originally created by @adamcstephens on GitHub (Jun 7, 2025). Tests are failing on released version, looks like maybe a sorting mismatch. Looking through the Actions workflows, I don't immediately see any jobs which would exercise these tests. ``` --- FAIL: TestGetContextFromPaths (0.00s) prompt_test.go:43: Error Trace: /home/adam/git/opencode/internal/llm/prompt/prompt_test.go:43 Error: Not equal: expected: "# From:/tmp/TestGetContextFromPaths737290226/001/file.txt\nfile.txt: test content\n# From:/tmp/TestGetContextFromPaths737290226/001/directory/file_a.txt\ndirectory/file_a.txt: test content\n# From:/tmp/TestGetContextFromPaths737290226/001/directory/file_b.txt\ndirectory/file_b.txt: test content\n# From:/tmp/TestGetContextFromPaths737290226/001/directory/file_c.txt\ndirectory/file_c.txt: test content" actual : "# From:/tmp/TestGetContextFromPaths737290226/001/directory/file_a.txt\ndirectory/file_a.txt: test content\n# From:/tmp/TestGetContextFromPaths737290226/001/directory/file_b.txt\ndirectory/file_b.txt: test content\n# From:/tmp/TestGetContextFromPaths737290226/001/file.txt\nfile.txt: test content\n# From:/tmp/TestGetContextFromPaths737290226/001/directory/file_c.txt\ndirectory/file_c.txt: test content" Diff: --- Expected +++ Actual @@ -1,3 +1 @@ -# From:/tmp/TestGetContextFromPaths737290226/001/file.txt -file.txt: test content # From:/tmp/TestGetContextFromPaths737290226/001/directory/file_a.txt @@ -6,2 +4,4 @@ directory/file_b.txt: test content +# From:/tmp/TestGetContextFromPaths737290226/001/file.txt +file.txt: test content # From:/tmp/TestGetContextFromPaths737290226/001/directory/file_c.txt Test: TestGetContextFromPaths ```
yindo closed this issue 2026-02-16 17:24:56 -05:00
Author
Owner

@adamcstephens commented on GitHub (Jun 7, 2025):

Actually looks like this may be resolved in dev. I'll close then. Sorry for the noise.

@adamcstephens commented on GitHub (Jun 7, 2025): Actually looks like this may be resolved in `dev`. I'll close then. Sorry for the noise.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#39