Skip to content

add: support scheduler max delay in agent GMP commands - #1395

Open
ozgen wants to merge 1 commit into
mainfrom
add/support-updated-agent-config-format
Open

ozgen wants to merge 1 commit into
mainfrom
add/support-updated-agent-config-format

Conversation

@ozgen

@ozgen ozgen commented Oct 22, 2026

Copy link
Copy Markdown
Member

What

  • Add max_delay_seconds support to create and modify agent group commands.
  • Update agent configuration validation and XML generation to support cron entries with maximum delays.
  • Update unit tests for the new fields and configuration format.

Why

The Agent Controller now supports maximum scheduling delays for cron entries. These changes update python-gvm to support the new GMP fields and configuration format.

References

GEA-1955

Checklist

  • I have added tests for the changes

@ozgen
ozgen requested a review from a team as a code owner October 22, 2026 09:30
@greenbonebot
greenbonebot enabled auto-merge (rebase) October 22, 2026 09:30
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA cdfc596.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@github-actions

Copy link
Copy Markdown

Conventional Commits Report

Type Number
Added 1

🚀 Conventional commits found.

@codecov

codecov Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 98.48%. Comparing base (b30da55) to head (cdfc596).

Files with missing lines Patch % Lines
gvm/protocols/gmp/requests/next/_agents.py 93.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1395      +/-   ##
==========================================
+ Coverage   98.42%   98.48%   +0.05%     
==========================================
  Files         106      106              
  Lines        6976     6983       +7     
  Branches     1273     1276       +3     
==========================================
+ Hits         6866     6877      +11     
+ Misses         77       75       -2     
+ Partials       33       31       -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.

- Add max_delay_seconds support to create and modify agent groups.
- Support structured scheduler cron entries with maximum delays.
- Update agent configuration validation and XML serialization.
- Update unit tests for the new fields and configuration format.
@ozgen
ozgen force-pushed the add/support-updated-agent-config-format branch from b852559 to cdfc596 Compare October 22, 2026 09:35

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant