Skip to content

Action doesn't fail on failure #3

@mdickinson

Description

@mdickinson

The action doesn't seem to be reporting failure correctly on a failed install, so steps following this action will continue and a workflow using this action typically fails when it first tries to use EDM.

Here's the relevant portion of the raw log from a failed run:

2021-07-02T15:36:28.8207993Z ##[group]Run enthought/setup-edm-action@v1
2021-07-02T15:36:28.8208504Z with:
2021-07-02T15:36:28.8208850Z   edm-version: 3.2.4
2021-07-02T15:36:28.8209358Z   download-directory: ~/.cache/download
2021-07-02T15:36:28.8209819Z env:
2021-07-02T15:36:28.8210176Z   INSTALL_EDM_VERSION: 3.2.4
2021-07-02T15:36:28.8210605Z   CI_PYTHON_VERSION: py36
2021-07-02T15:36:28.8211027Z   CI_FAULTHANDLER: true
2021-07-02T15:36:28.8211463Z   PYTHONBUFFERED: 1
2021-07-02T15:36:28.8211872Z   QT_DEBUG_PLUGINS: 1
2021-07-02T15:36:28.8212223Z   CI_MODE: test
2021-07-02T15:36:28.8212578Z ##[endgroup]
2021-07-02T15:36:28.8559127Z Using directory for storing downloaded installer: /home/runner/.cache/download
2021-07-02T15:36:28.8617866Z [command]/bin/bash /home/runner/work/_actions/enthought/setup-edm-action/v1/dist/install-edm-linux.sh 3.2.4 /home/runner/.cache/download
2021-07-02T15:36:28.8773930Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2021-07-02T15:36:28.8775308Z                                  Dload  Upload   Total   Spent    Left  Speed
2021-07-02T15:36:28.8775714Z 
2021-07-02T15:36:29.4750204Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2021-07-02T15:36:29.4795427Z 100   243    0   243    0     0    406      0 --:--:-- --:--:-- --:--:--   406
2021-07-02T15:36:29.4796900Z /home/runner/.cache/download/edm_cli_3.2.4_linux_x86_64.sh: line 1: syntax error near unexpected token `newline'
2021-07-02T15:36:29.4798330Z /home/runner/.cache/download/edm_cli_3.2.4_linux_x86_64.sh: line 1: `<?xml version="1.0" encoding="UTF-8"?>'
2021-07-02T15:36:29.4829348Z (node:2401) UnhandledPromiseRejectionWarning: Error: The process '/bin/bash' failed with exit code 2
2021-07-02T15:36:29.4831564Z     at ExecState._setResult (/home/runner/work/_actions/enthought/setup-edm-action/v1/dist/index.js:1026:25)
2021-07-02T15:36:29.4833340Z     at ExecState.CheckComplete (/home/runner/work/_actions/enthought/setup-edm-action/v1/dist/index.js:1009:18)
2021-07-02T15:36:29.4834912Z     at ChildProcess.<anonymous> (/home/runner/work/_actions/enthought/setup-edm-action/v1/dist/index.js:903:27)
2021-07-02T15:36:29.4835963Z     at ChildProcess.emit (events.js:210:5)
2021-07-02T15:36:29.4836767Z     at maybeClose (internal/child_process.js:1021:16)
2021-07-02T15:36:29.4837726Z     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
2021-07-02T15:36:29.4839533Z (node:2401) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
2021-07-02T15:36:29.4842597Z (node:2401) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
2021-07-02T15:36:29.4955214Z ##[group]Run sudo apt-get update
2021-07-02T15:36:29.4955789Z �[36;1msudo apt-get update�[0m
2021-07-02T15:36:29.4956294Z �[36;1msudo apt-get install libglu1-mesa�[0m
2021-07-02T15:36:29.4956889Z �[36;1msudo apt-get install libxkbcommon-x11-0�[0m
2021-07-02T15:36:29.4996524Z shell: /bin/bash --noprofile --norc -e -o pipefail {0}
2021-07-02T15:36:29.4997002Z env:
2021-07-02T15:36:29.4997382Z   INSTALL_EDM_VERSION: 3.2.4
2021-07-02T15:36:29.4997812Z   CI_PYTHON_VERSION: py36
2021-07-02T15:36:29.4998235Z   CI_FAULTHANDLER: true
2021-07-02T15:36:29.4998674Z   PYTHONBUFFERED: 1
2021-07-02T15:36:29.4999087Z   QT_DEBUG_PLUGINS: 1
2021-07-02T15:36:29.4999443Z   CI_MODE: test
2021-07-02T15:36:29.4999801Z ##[endgroup]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions