在进行 Code Review 时,使用这个技能对 LoongCollector 变更进行安全导向、架构一致性优先的深度代码评审。
日本語の概要は準備中です。原文の説明を表示しています。
E2E Testing Standards Guide. Use this rule when you need to write or execute E2E tests, including test naming conventions, test workflows, and test behavior templates. This rule should be used for end-to-end integration testing scenarios to ensure test standardization and maintainability. Example: When writing new E2E tests, use this rule to ensure proper test format and workflow compliance.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
When begin triggerThen wait {10} seconds@e2e 注解标记测试方法@host:表示该测试场景在host环境下运行;@k8s:表示该测试场景在k8s环境下运行;@docker-compose:表示该测试场景在本地启动docker-compose运行。Test${被测试功能名}${案例简单说明}TestInputFileWithBlackListDir、TestInputFileWithRegexSingleGiven {host} environment,其中host代表构建主机环境,daemonset表示构建k8s环境,docker-compose表示容器环境(只有这个三个值,不要出现其他)Given subcribe data from {sls} with config,订阅器(Subscribe)插件是测试引擎中用于接收数据的组件,sls表示生成输出到logstore。Given {regex_single} local config as below,添加本地配置,启动input插件、processor插件,其中regex_single是配置名称,可根据功能进行构造,此配置中确保含有enable: true,否则配置无法执行。When begin trigger,利用现有的框架生成一系列事件,例如When generate {100} regex logs to file {/tmp/loongcollector/regex_single.log}, with interval {100}ms为生成文件日志。Then测试行为进行日志验证。查询语句例如,When query through {* | select * from e2e where call_name = 'tcp_connect' and arguments like '%http://www.baidu.com%'},查询日志call_name为tcp_connect,arguments包含http://www.baidu.com。まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
在进行 Code Review 时,使用这个技能对 LoongCollector 变更进行安全导向、架构一致性优先的深度代码评审。
日本語の概要は準備中です。原文の説明を表示しています。
按 Conventional Commits 规范编写提交信息。在创建 git commit 时使用。
日本語の概要は準備中です。原文の説明を表示しています。
编译 LoongCollector C++ 与 Go 组件。涉及构建、单元测试或镜像时使用。
日本語の概要は準備中です。原文の説明を表示しています。
Design document writing conventions. Use when writing or reviewing technical design documents.
日本語の概要は準備中です。原文の説明を表示しています。
LoongCollector E2E 测试全流程指南:设计、编写、运行和调试。当需要编写新 E2E 测试、运行现有测试、或排查 E2E 测试失败时使用此 skill。
日本語の概要は準備中です。原文の説明を表示しています。
LoongCollector E2E Testing Framework Development Guide. Use this rule when you need to understand E2E testing framework architecture, develop new test behavior functions, or extend testing capabilities. Contains detailed BDD testing framework usage, test behavior function development and registration workflows, and comprehensive reference of existing testing capabilities. Example: When adding custom test behaviors for new plugins, use this rule to understand how to write and register new test functions. Example: When developing E2E tests, use this rule to understand the e2e framework.
日本語の概要は準備中です。原文の説明を表示しています。