Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 10

Build got was canceled unexpectedly

Solved! Go to Solution.

While running the build command, the job got cancalled for some unexpected reason.

 

https://github.com/gitthermal/thermal/runs/202804644#step:5:414

 

chrome_AeElx6Avum.png

9 Replies
Community Manager
Message 2 of 10

Re: Build got was canceled unexpectedly

Thanks for being here @mittalyashu, I believe you got this going? If you have any other issues please feel free to post again. In the meantime, we're looking forward to seeing you around!


Best,
AndreaG

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Copilot Lvl 3
Message 3 of 10

Re: Build got was canceled unexpectedly

No, I am still facing this same issue.

Highlighted
Copilot Lvl 3
Message 4 of 10

Greetings on new issue and PR

This is the configuration for the GitHub action workflow I am using but it is not working.

 

name: Greetings

on: issues

on:
  # Remove PRs from dependabot
  pull_request:
    branches:
      - '!dependabot/*'

 

Here's the error message, I am getting in the Actions tab.

chrome_1tpYoWg9xM.png 

Community Manager
Message 5 of 10

Re: Greetings on new issue and PR

Apologies for the delay, taking a look at your action I feel it might be a syntax issue, see this image and give it a go, let us know if it works.


Best,
AndreaG

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

GitHub Staff
Message 6 of 10

Re: Greetings on new issue and PR

If you'd like listen to two events, such as `issues` and `pull_request` send this is a list to `on:` for example: `on: [issues, pull_request]`. Hope that helps.

Copilot Lvl 3
Message 7 of 10

Re: Greetings on new issue and PR

I want to ignore few of branches from pull requests, that's why I have added.

 

on:
  issues:
  # Remove PRs from dependabot
  pull_request:
    branches:
      - '!dependabot/*'
Pilot Lvl 1
Message 8 of 10

Re: Build got was canceled unexpectedly

You are using the matrix for your actions, and one thing about the matrix is that it will fail fast if one of the tests didn't pass [ref].

In your workflow `Linux build on node 12.x` didn't pass which case everything else to cancel.

To solve this, you should use `fail-fast: false` within your strategy

 

So your workflow file should be like:

 

 

name: Test & Build
on: push

jobs:
  Test:
    name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false      
      matrix:
        node_version: [8.x, 10.x, 12.x]
        os: [ubuntu-latest, windows-latest, macOS-latest]

    steps:
      - name: Checkout
        uses: actions/checkout@v1

      - name: Set Node.js version ${{ matrix.node_version }}
        uses: actions/setup-node@v1
        with:
          version: ${{ matrix.node_version }}

      - name: Install packages
        run: npm install

      - name: Run lint
        run: npm run lint

  Linux:
    name: Linux build on node ${{ matrix.node_version }}
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false      
      matrix:
        node_version: [8.x, 10.x, 12.x]

    steps:
      - name: Checkout
        uses: actions/checkout@v1

      - name: Set Node.js version ${{ matrix.node_version }}
        uses: actions/setup-node@v1
        with:
          version: ${{ matrix.node_version }}

      - name: Install packages
        run: npm install

      - name: Run build
        run: npm run build:linux

 

------------------------

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Solution
Pilot Lvl 1
Message 9 of 10

Re: Build got was canceled unexpectedly

I wrote a big answer but for some reason I cant find it so I'll make it short.

 

Use `fail-fast` in your matrix https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast

 

The build got canceled because one of your linux biuld failed, this one:

Linux build on node 12.x 

 

------------------------

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Copilot Lvl 3
Message 10 of 10

Re: Build got was canceled unexpectedly

Ah! I see.

 

I will fix it and give it a spin!