Skip to content

Remove SQLite dependency from lnt checkformat#201

Merged
ldionne merged 2 commits intollvm:mainfrom
ldionne:review/checkformat-no-sqlite
Mar 26, 2026
Merged

Remove SQLite dependency from lnt checkformat#201
ldionne merged 2 commits intollvm:mainfrom
ldionne:review/checkformat-no-sqlite

Conversation

@ldionne
Copy link
Copy Markdown
Member

@ldionne ldionne commented Mar 26, 2026

Before this patch, lnt checkformat would create a temporary instance and try importing the report into that database. This was great since it checked not only the format of the report, but also whether the report can actually be ingested into an instance.

However, the downside was additional complexity and a hardcoded reliance on SQlite, which we're moving away from.

This patch greatly simplifies checkformat but slightly reduces its level of checking. Instead, checkformat ensures that the report has valid syntax but doesn't try to actually ingest it into an instance.

As a side effect, this means that checkformat now also works with reports that don't only target the nts test suite.

Before this patch, `lnt checkformat` would create a temporary instance
and try importing the report into that database. This was great since
it checked not only the format of the report, but also whether the
report can actually be ingested into an instance.

However, the downside was additional complexity and a hardcoded reliance
on SQlite, which we're moving away from.

This patch greatly simplifies `checkformat` but slightly reduces its
level of checking. Instead, `checkformat` ensures that the report has
valid syntax but doesn't try to actually ingest it into an instance.

As a side effect, this means that `checkformat` now also works with
reports that don't only target the `nts` test suite.
@ldionne
Copy link
Copy Markdown
Member Author

ldionne commented Mar 26, 2026

For backwards compatibility, I checked and lnt runtest should include tag in the reports it generates, so this should be compatible with how existing test suites are submitting to LNT.

@ldionne ldionne merged commit 1e691f7 into llvm:main Mar 26, 2026
15 checks passed
@ldionne ldionne deleted the review/checkformat-no-sqlite branch March 26, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant