ERROR: terminal inactive for 30m0s, build cancelled

Hi all, I often see this as the explanation of a failed build (about 10% of the time) but the build appears to have finished successfully.

Is there maybe something not triggering when the build finishes?

Example: https://ci.fommil.com/ensime/ensime-server/53/1

It looks like everything finishes correctly (exit code 0).

Can you post your .drone.yml?

it’s here https://github.com/ensime/ensime-server/blob/2.0/.drone.yml

This looks like there may be an issue related to lengthy matrix builds and the inactivity timer.

If you can reproduce this in a test setup you should create an issue.

To setup a really simple test, do the following:

  1. Reduce the console inactivity timeout to a minute by setting DRONE_TIMEOUT=1m for the agent
  2. Use the following .drone.yml:
pipeline:
  build:
    image: bash
    commands:
      - echo $MATRIX_VERSION
      - "for i in `seq 1 12`; do echo $i; sleep 5; done"

matrix:
  MATRIX_VERSION: [1, 2]