gitignore: ignore ltp-agent setup files
PATCH 1/1 gitignore: ignore ltp-agent setup files
From: Andrea Cervesato <[email protected]>
--- .gitignore | 9 +++++++++ 1 file changed, 9 insertions(+)
.gitignore +9 -0
@@ -63,3 +63,12 @@ compile_commands.json # added by scripts/checkpatch.pl .checkpatch-camelcase.* + +# ltp-agent setup +AGENTS.md +GEMINI.md +.agents +.claude +agents +linter +skills
---
base-commit: 5ccf816f5d0e6c0ec3d808be456dd9ffa2a7736d
change-id: 20260530-gitignore_ltp_agent-0c7c137b6156
Best regards,
Signature · 5 lines
Andrea Cervesato <[email protected]> -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Andrea,
Thank you for the patch.
Quoted 3 lines
gitignore: ignore ltp-agent setup files
Signed-off-by Andrea Cervesato <[email protected]>
The commit message is missing a body. Please add a brief explanation of what these entries are and why they need to be ignored — e.g. that they are files and symlinks injected at runtime by the ltp-agent tool into the LTP working directory, and must not be tracked or committed.
.gitignore compile_commands.json · line 74
Quoted 8 lines
.gitignore +8
-0+# ltp-agent setup +AGENTS.md +GEMINI.md +.agents +.claude +agents +linter +skills
The linter entry is problematic. The upstream LTP repository tracks a linter/ directory containing the ltp-linter script. In a normal LTP checkout, adding linter (without a leading /) to .gitignore will silently suppress any new, untracked files a developer adds to that directory from appearing in git status. This can easily cause work-in-progress changes to the linter to go unnoticed.
Use an anchored, directory-specific pattern to limit the match to the ltp-agent-injected symlink at the repository root:
/linter/
The same logic applies to agents and skills: prefer anchored patterns (/agents/, /skills/) so they only match at the root and cannot accidentally shadow tracked subtrees in the future.
The remaining entries (AGENTS.md, GEMINI.md, .agents, .claude) are fine as-is since they are specific enough not to conflict with anything currently tracked in LTP.
Overall: Needs revision ✗
---
LTP AI Reviewer
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Can you elaborate? Wouldn't better place for it be your repo-specific ignore list? (.git/info/exclude)
Quoted 38 lines · Andrea Cervesato
From: Andrea Cervesato <[email protected]>
Signed-off-by Andrea Cervesato <[email protected]>--- .gitignore | 9 +++++++++ 1 file changed, 9 insertions(+).gitignore +9
-1@@ -63,3 +63,12 @@ compile_commands.json # added by scripts/checkpatch.pl .checkpatch-camelcase.* + +# ltp-agent setup +AGENTS.md +GEMINI.md +.agents +.claude +agents +linter +skills ---base-commit:
5ccf816f5d0e6c0ec3d808be456dd9ffa2a7736d
change-id: 20260530-gitignore_ltp_agent-0c7c137b6156Best regards,
--
Andrea Cervesato <[email protected]>--
Mailing list info: https://lists.linux.it/listinfo/ltp
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Jan,
Quoted 2 lines
Can you elaborate? Wouldn't better place for it be your repo-specific ignore list? (.git/info/exclude)
Indeed, this was related to a specific ltp-agent setup that now it's not supported anymore. I recently changed the installation workflow for the agent, so skills are installed in the $HOME configuration instead.
The previous installation was causing many hallucination in any model, since rules were not discovered locally due to the symlinks setup.
I can revert this commit.
Thanks for pointing out,
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
[email protected]
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp