Fix/agent fixes#18
Merged
Merged
Conversation
Extract common code into shared/ modules to eliminate duplication: - shared/url_parser.py: add deduce_repo_url() for git forge URL deduction - shared/git_runner.py: consolidate subprocess/git execution from agent and corrector into a single module Refactor cve_metadata_extractor: - Remove duplicated find_hash(), CVE_ID_RE, find_cve_json_file() from utils.py (now imported from shared/url_parser) - Add download_commit_patches() to debian.py - Update imports across osv, ubuntu, cvelistv5, mirrors modules Fix cve_corrector/workflow.py: - Improve conflict detection to check for actual unmerged entries (U status) rather than any dirty state - Preserve current_step if already past cherry_pick_to_devtool Update AGENTS.md with CI lint instructions. Update tests to match refactored import locations. Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
After agent conflict resolution, the workspace source tree may be left on the CVE branch. devtool finish requires the devtool branch to generate patches correctly — otherwise it times out or produces incorrect output. Add _ensure_devtool_branch() helper that checks the current branch and forces checkout to devtool if needed, called at the start of the finish step. Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
…ssing-series Skip CVEs already present in the output file to avoid redundant API calls on re-runs. Add --reprocess-missing-series flag to selectively re-fetch data for CVEs that lack series information in existing output. Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
c6ec91b to
0d88b0f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.