在进行 Code Review 时,使用这个技能对 LoongCollector 变更进行安全导向、架构一致性优先的深度代码评审。
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Testing standards for LoongCollector: unit tests, e2e tests, benchmarks. Reference when writing or reviewing tests.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
core/unittest/core/unittest/*/ directory produces one executablebuild/ to ensure relative paths and temp files work correctlyskills/compile/SKILL.md for build & run instructionstesting package.feature filesskills/e2e/SKILL.md for complete guide (design → write → run → debug)@input
Feature: input file
Test input file
@e2e @host
Scenario: TestInputFileWithRegexSingle
Given {host} environment
Given subcribe data from {sls} with config
"""
enable: true
inputs:
- Type: input_file
"""
When generate {100} regex logs to file {/tmp/loongcollector/regex_single.log}, with interval {100}ms
Then there is {100} logs
| Type | Purpose |
|---|---|
Given | Setup/prepare test conditions |
When | Trigger test actions (e.g., log generation) |
Then | Verify test results |
@host - Host environment@k8s - Kubernetes environment@docker-compose - Docker Compose environment@e2e - E2E test marker@regression - Regression test markercleanup/ - Post-test cleanup (auto-executed)control/ - Control operations (init, config)setup/ - Environment setuptrigger/ - Data generationverify/ - Result verificationfunc Name(ctx context.Context, params...) (context.Context, error)test/e2e_enterprise/main_test.go via scenarioInitializer{param} syntaxWhen begin trigger BEFORE generating logstest/engine/steps.goTest${FunctionName}${CaseBriefDescription}TestInputFileWithBlackListDir, TestInputFileWithRegexSingle@e2e and environment tagsFor performance-sensitive code:
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
在进行 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.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.