Skip to content

chore: Initial work to add agent config schema - #1741

Open
mvicknr wants to merge 68 commits into
mainfrom
mvick/agent-config-schema
Open

chore: Initial work to add agent config schema#1741
mvicknr wants to merge 68 commits into
mainfrom
mvick/agent-config-schema

Conversation

@mvicknr

@mvicknr mvicknr commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Overview

Adds a script to automatically generate and update a configuration schema for the agent. This PR has the initial schema generated from the script.

The script will automatically run on local build and on pushes. It will determine if there are config changes and if so, it will update the schema. On local, the dev should include these changes in their commit. On push, if the changes aren't already made in the schema, it will make the changes and add them to the PR.

The schema version will be updated as part of the regular agent release. - This will need to happen after the release tag has been generated but before it has been applied.

See the readme in the schemaGeneration directory to understand how the schema is generated.

Testing

The agent includes a suite of tests which should be used to
verify your changes don't break existing functionality. These tests will run with
Github Actions when a pull request is made. More details on running the tests locally can be found in our
testing guidelines,
For most contributions it is strongly recommended to add additional tests which
exercise your changes.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented May 27, 2026

Copy link
Copy Markdown

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Max errors Warnings Elapsed time
✅ ACTION actionlint 11 0 0 1.5s
✅ MARKDOWN markdownlint 8 0 0 0 1.61s
✅ PYTHON ruff 1110 0 0 0 1.5s
✅ PYTHON ruff-format 1110 0 0 0 0.3s
✅ YAML prettier 25 0 0 0 1.78s
✅ YAML v8r 25 0 0 6.6s
✅ YAML yamllint 25 0 0 0.83s

See detailed reports in MegaLinter artifacts

MegaLinter is provided by OX Security
Show us your support by starring ⭐ the repository

@mergify mergify Bot added the tests-failing Tests failing in CI. label May 27, 2026
Co-Authored-By: Claude <noreply@anthropic.com>
@codecov-commenter

codecov-commenter commented May 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.12%. Comparing base (44c3db2) to head (a2dba8c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1741      +/-   ##
==========================================
- Coverage   82.14%   82.12%   -0.02%     
==========================================
  Files         220      220              
  Lines       27344    27344              
  Branches     4330     4330              
==========================================
- Hits        22461    22457       -4     
- Misses       3378     3380       +2     
- Partials     1505     1507       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mergify mergify Bot removed the tests-failing Tests failing in CI. label Jun 9, 2026
mvicknr and others added 2 commits June 11, 2026 09:48
Pre-applies the YAML formatting that MegaLinter's YAML_PRETTIER would
otherwise auto-fix. The auto-commit step in mega-linter.yml uses the
default GITHUB_TOKEN, which cannot push changes to .github/workflows/*
files (GitHub blocks workflow modifications without the 'workflow' PAT
scope). Applying the fixes locally lets CI's auto-commit be a no-op.
Co-Authored-By: Claude <noreply@anthropic.com>
@mergify mergify Bot added the tests-failing Tests failing in CI. label Jun 11, 2026
@mergify mergify Bot removed the tests-failing Tests failing in CI. label Jun 11, 2026
@mvicknr
mvicknr marked this pull request as ready for review June 17, 2026 15:06
@mvicknr
mvicknr requested a review from a team as a code owner June 17, 2026 15:06
@mergify mergify Bot added the tests-failing Tests failing in CI. label Jun 17, 2026
@mergify mergify Bot removed the tests-failing Tests failing in CI. label Jun 17, 2026
@mergify mergify Bot added the tests-failing Tests failing in CI. label Jun 17, 2026
@mergify mergify Bot removed the tests-failing Tests failing in CI. label Jun 22, 2026
@mergify mergify Bot added the tests-failing Tests failing in CI. label Jun 30, 2026
@mergify mergify Bot removed the tests-failing Tests failing in CI. label Aug 12, 2026
@mergify mergify Bot added the tests-failing Tests failing in CI. label Aug 13, 2026
@mergify mergify Bot removed the tests-failing Tests failing in CI. label Aug 19, 2026
@mergify mergify Bot added the tests-failing Tests failing in CI. label Aug 19, 2026
@mvicknr

mvicknr commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator Author

this commit shows that the schema generation on push works: chore: regenerate Fleet Control config schema

"type": "string",
"description": "Sets the name of a file to log agent messages to. Whatever you set this to, you must ensure that the permissions for the containing directory and the file itself are correct, and that the user that your web application runs as can write out to the file. If not able to out a log file, it is also possible to say \"stderr\" and output to standard error output. This would normally result in output appearing in your web server log. It can also be set using the NEW_RELIC_LOG environment variable."
},
"log_level": {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other agents are not using an enum here because enum forces case sensitivity - should I update this to a string for you as well?

@mergify mergify Bot removed the tests-failing Tests failing in CI. label Aug 20, 2026
@mergify mergify Bot added the tests-failing Tests failing in CI. label Aug 20, 2026
@mergify mergify Bot removed the tests-failing Tests failing in CI. label Aug 20, 2026
@mergify mergify Bot added the tests-failing Tests failing in CI. label Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests-failing Tests failing in CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants