Skip to content

Add actions job log buffer #866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

mattdholloway
Copy link
Contributor

@mattdholloway mattdholloway commented Aug 13, 2025

Extends the get_job_logs tool and other parts of the MCP server that rely on downloading Actions job log data. The new functionality ensures memory leaks do not occur by using a 'sliding window' buffer to only have 5MB of the log in memory at a time as it reads the entire log. This then allows for a tail step after this that retains the correct amount of lines within the final window before completion.

Closes: https://github.com/github/copilot-agent-services/issues/375

@mattdholloway mattdholloway marked this pull request as ready for review August 13, 2025 12:56
@mattdholloway mattdholloway requested a review from a team as a code owner August 13, 2025 12:56
@Copilot Copilot AI review requested due to automatic review settings August 13, 2025 12:56
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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