DataDog / integrations-extras

Community developed integrations and plugins for the Datadog Agent.
BSD 3-Clause "New" or "Revised" License
254 stars 742 forks source link

CI error of "Missing test file" was reported #2339

Open yandongxiao opened 7 months ago

yandongxiao commented 7 months ago

Environment details (Operating System, Cloud provider, etc):

When checking the yaml files under assets/logs with CI, an error of "Missing test file" was reported.

Missing test file for this integration. Please create a test file with samples testing the integration pipelines. Expected test file path: assets/logs/celerdata.yml

assets/logs/celerdata.yml should be used to store log pipelines, not test files

Steps to reproduce the issue:

  1. Save the log pipeline from the Datadog page;
  2. Adjust the format of the YAML file, it seems that the saved YAML file is not a valid one.
  3. Store it under assets/logs/, and submit a PR.

see the PR https://github.com/DataDog/integrations-extras/pull/2326

Describe the results you received:

Describe the results you expected:

  1. Expect to receive accurate error information;
  2. Expect to learn how to debug the error locally, rather than relying on CI checks.

Additional information you deem important (e.g. issue happens only occasionally):

yandongxiao commented 7 months ago

‌‌I think I've found the reason: The YAML file saved on the page has a .yml extension, but it needs to be .yaml for CI testing.