Skip to content

Get signal from CI that we are about to be terminated and pro-actively tear down the session #6781

Closed

Description

@nohwnd

Summary

There are multiple global timeouts in azdo and other CIs. Right now when we reach 90 minute timeout in azdo the job just gets killed, but azdo could set env variable with time when it will start tearing us down, and we could tear down a bit earlier.

There could be different modes to this, ideally the timeout will trigger hang dumps of all processes we know about, + dumps of the console / dotnet test. We probably need at least 5 minutes for that.

There could be more lightweight mode that just triggers teardown, reports tests in progress, generates unsuccessful trx and exits. We probably need less than 1 minute for that.

We would need to be aware of the time of the whole session, e.g. when the limit is set very low (which is hopefully rare), we would not be able to do anything.

Activity

  1. added
    area/mtp
    needs/design
    on Oct 22, 2025
  2. Youssef1313 commented on Apr 1, 2026

    @Youssef1313
    Member

    Looks like most of the work here would be features on AzDO side. I'm going to close for now, but if AzDO implemented something that we can use to provide better behaviors, we can do it later.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/mtpexternal/azdoneeds/design

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions