Skip to content
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

FIX: Tasks on MacOS agents not completing but marked as succeeded. #5079

Open
wants to merge 53 commits into
base: master
Choose a base branch
from

Conversation

sahilbhattMS
Copy link

@sahilbhattMS sahilbhattMS commented Jan 6, 2025

Description:
Some pipelines using MacOS agents reported tasks not completing but still being marked as succeeded. Disabling resource utilization warnings seemed to mitigate this issue.

An analysis of various debug logs indicated that the problem was due to the resource utilization warnings' implementation in MacOS, where multiple CPU and memory info processes were being invoked simultaneously.

Changes made:

  1. Locks added to ensure that there are no simultaneous calls to CPU and memory info processes.
  2. Dispose standard output/error streams. Refer: Process class leaks pipes on MacOS when redirecting stdout and stderr dotnet/runtime#58872

Validations done:
The issue did not reproduce on running a test pipeline on a self-hosted MacOS agent using the above-mentioned changes.

@sahilbhattMS sahilbhattMS changed the title FIX: No-opping tasks in MacOS agents FIX: Tasks on MacOS agents not completing but marked as succeeded. Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants