Mayil-AI-Sandbox / kuzudb_jan15

MIT License
0 stars 0 forks source link

Rdf.StrictMode Test Likely Produces Undefined Behaviour (hashtag2867) #9

Open vikramsubramanian opened 4 months ago

vikramsubramanian commented 4 months ago

In the initial CI check for [this]( PR, Rdf.StrictMode failed in gcc and gcc 32 bit tests. The pull request only changes a workflow file and does not touch any other code. It produced this log:

cypherScript: /home/runner/actions-runner/_work/kuzu/kuzu/dataset/EMPTY/schema.cypher
cypherScript: /home/runner/actions-runner/_work/kuzu/kuzu/dataset/EMPTY/schema.cypher doesn't exist. Skipping...
cypherScript: /home/runner/actions-runner/_work/kuzu/kuzu/dataset/EMPTY/copy.cypher
cypherScript: /home/runner/actions-runner/_work/kuzu/kuzu/dataset/EMPTY/copy.cypher doesn't exist. Skipping...
[2024-02-12 17:56:23.019] [info] DEBUG LOG: 
[2024-02-12 17:56:23.019] [info] QUERY: CREATE RDFGraph R;
[2024-02-12 17:56:23.068] [info] DEBUG LOG: 
[2024-02-12 17:56:23.068] [info] QUERY: COPY R FROM "/home/runner/actions-runner/_work/kuzu/kuzu/dataset/rdf/malformed/invalid_syntax.ttl" (in_memory=true, strict=true);
[2024-02-12 17:56:23.072] [info] DEBUG LOG: 
[2024-02-12 17:56:23.072] [info] QUERY: COPY R FROM "/home/runner/actions-runner/_work/kuzu/kuzu/dataset/rdf/malformed/invalid_prefix.ttl" (in_memory=false, strict=true);
[2024-02-12 17:56:23.074] [info] EXPECTED ERROR: Runtime exception: Invalid syntax while reading file at line 4 and col 29
/home/runner/actions-runner/_work/kuzu/kuzu/test/test_runner/test_runner.cpp:29: Failure
Value of: testStatement(statement, conn, databasePath)
  Actual: false
Expected: true
[2024-02-12 17:56:23.074] [info] DEBUG LOG: 
[2024-02-12 17:56:23.074] [info] QUERY: COPY R FROM "/home/runner/actions-runner/_work/kuzu/kuzu/dataset/rdf/malformed/infinite_loop.ttl" (strict=true);

)

mayil-ai[bot] commented 4 months ago

Summary: Rdf.StrictMode test in the CI check likely produces undefined behavior.

Possible Solution

Based on the provided information, the issue seems to be related to the CI check failure in gcc and gcc 32-bit tests after a pull request that only changes a workflow file. The log messages indicate problems with missing cypherScript files and execution of RDF-related queries, as well as a specific error message about invalid syntax in test_runner.cpp.

To address the issue, consider the following steps:

If the issue persists after these checks, further investigation into the test suite and CI configuration may be necessary to identify the root cause of the test failures.

Code snippets to check