question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicated and extra matrix jobs generated when using macOS runner

See original GitHub issue

Associated GitHub Community ticket: https://github.community/t/specific-workflow-runs-keeps-failing-with-an-internal-error-on-macos/135997

The customer set a matrix in his workflow like as below:

  ci_macos:
    name: macOS + vcpkg
    runs-on: macos-10.15
    strategy:
      matrix:
        qbt_gui: ["GUI=ON", "GUI=OFF"]
      fail-fast: false

According to the matrix configurations, it should only generate 2 matrix jobs:

  • macOS + vcpkg (GUI=ON) runs on macos-10.15
  • macOS + vcpkg (GUI=OFF) runs on macos-10.15

But when executing the workflow, it will generate some duplicated and extra matrix jobs, and all the extra matrix jobs will go failed. This causes the workflow run to be failed.

In the same workflow, the customer also set the similar matrix configurations to run jobs on the Ubuntu runners, the matrix can work fine, and no any extra matrix jobs generated.

  ci_ubuntu:
    name: Ubuntu
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-20.04, ubuntu-18.04]
        qbt_gui: ["GUI=ON", "GUI=OFF"]
      fail-fast: false

See the following two examples: https://github.com/qbittorrent/qBittorrent/actions/runs/277763652/workflow https://github.com/qbittorrent/qBittorrent/actions/runs/277637794/workflow

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
FranciscoPombalcommented, Apr 29, 2022

@ruvceskistefan Thanks, but this issue is no longer relevant. It was probably some spurious problem at the time, or some kind of bug that has since been fixed.

1reaction
juliobbvcommented, Oct 6, 2020

I’ll be taking a look at this item today or tomorrow. I don’t have perms to transfer/assign this issue to myself, but I’ll keep an eye on it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Concurrent jobs on a single Runner sometimes run in the ...
When the global setting is concurrent=4 (probably anything > 1), concurrent jobs on a single Runner sometimes clobber each other by running ......
Read more >
How do I make a GitHub Action matrix element conditional?
I've accomplished this by cloning the script (workflow) and renaming a few things and commenting things out, but it would be nice if...
Read more >
Angular with ASP.Net Core shows duplicated file name.
Net Core, but only files related with angular, automatically generated from visual studio shows file name twice. (styles.css, styles.css)
Read more >
Jobs in Azure Pipelines and TFS
The matrix strategy enables a job to be dispatched multiple times, with different variable sets. The maxParallel tag restricts the amount of ...
Read more >
Build Matrix
Jobs generated through the Matrix Expansion feature cannot be named. Job Uniqueness and Duplicate Jobs #. Jobs need to be unique, and duplicate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found