Skip to content

Commit e6841d9

Browse files
committed
fix: track .bqrs test input files in before directories
The integration tests for codeql_bqrs_interpret were failing in CI because the .bqrs files in before/ directories were being ignored by the gitignore rule (**/*.bqrs). These files exist locally but were not committed, causing the tests to fail with 'No .bqrs files found'. Fixed by: 1. Adding an exception to .gitignore for .bqrs files in before/ directories 2. Force-adding the 4 .bqrs test input files that were previously ignored
1 parent 63c746b commit e6841d9

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Ignore binary query results files in integration tests
22
**/*.bqrs
3+
4+
# But allow .bqrs files in before directories (needed as test inputs)
5+
!**/before/*.bqrs
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Sample BQRS file for testing codeql_bqrs_decode
2+
# This is a mock BQRS file format for integration test purposes
3+
# In practice, this would be a binary format generated by CodeQL query execution
4+
5+
[BQRS Header]
6+
Version: 1.0
7+
ResultSets: 1
8+
9+
[ResultSet 1]
10+
Name: select
11+
Columns: 3
12+
Column0: file (string)
13+
Column1: line (int)
14+
Column2: message (string)
15+
16+
[Data]
17+
"/example/file1.java",10,"Example result 1"
18+
"/example/file2.java",25,"Example result 2"
19+
"/example/file3.java",42,"Example result 3"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Sample BQRS file for testing codeql_bqrs_info
2+
# This is a mock BQRS file format for integration test purposes
3+
# In practice, this would be a binary format generated by CodeQL query execution
4+
5+
[BQRS Header]
6+
Version: 1.0
7+
ResultSets: 1
8+
9+
[ResultSet 1]
10+
Name: select
11+
Columns: 3
12+
Column0: file (string)
13+
Column1: line (int)
14+
Column2: message (string)
15+
16+
[Data]
17+
"/example/file1.java",10,"Example result 1"
18+
"/example/file2.java",25,"Example result 2"
19+
"/example/file3.java",42,"Example result 3"
Binary file not shown.

0 commit comments

Comments
 (0)