Re-run Incomplete Jobs Re-Runs All Jobs

splatteredbits's Avatar

splatteredbits

29 Nov, 2021 06:49 PM

I am building a PowerShell module that supports both Windows PowerShell and PowerShell Core. What I have is 7 jobs [1]:

Two running under Windows PowerShell (ps: ./build.ps1) on:
* Visual Studio 2013 * Visual Studio 2019

Five running under PowerShell (pwsh: ./build.ps1) on:
* macOS * Ubuntu * Visual Studio 2015 * Visual Studio 2019 * Visual Studio 2022

Unfortunately with this, when any one job fails (flaky tests) and I click "Re-Run Incomplete Jobs", AppVeyor re-runs all jobs, not just the failed job. Is this a bug/known issue in AppVeyor? Or do I need to structure my jobs differently to get "Re-Run Incomplete Jobs" to work as it has in the past?

[1]

version: 0.0.0+{build}
skip_tags: true
skip_branch_with_pr: true
build:
  verbosity: minimal
test: off
environment:
  matrix:
  - job_name: PowerShell 7.2 on Windows
    job_group: pwsh
    appveyor_build_worker_image: Visual Studio 2022
  - job_name: PowerShell 7.1 on macOS
    job_group: pwsh
    appveyor_build_worker_image: macOS
  - job_name: Windows PowerShell 5.1/.NET 4.6.2
    job_group: ps
    appveyor_build_worker_image: Visual Studio 2013
  - job_name: Windows PowerShell 5.1/.NET 4.8
    job_group: ps
    appveyor_build_worker_image: Visual Studio 2019
  - job_name: PowerShell 6.2 on Windows
    job_group: pwsh
    appveyor_build_worker_image: Visual Studio 2015
  - job_name: PowerShell 7.2 on Ubuntu
    job_group: pwsh
    appveyor_build_worker_image: Ubuntu
  - job_name: PowerShell 7.1 on Windows
    job_group: pwsh
    appveyor_build_worker_image: Visual Studio 2019
for:
- matrix:
    only:
    - job_group: ps
  build_script:
  - ps: .\build.ps1
- matrix:
    only:
    - job_group: pwsh
  build_script:
  - pwsh: ./build.ps1
  1. 1 Posted by splatteredbits on 24 May, 2022 07:43 PM

    splatteredbits's Avatar

    Any update on this? It is still happening and is causing us some pain. It seems connections to https://powershellgallery.com and https://nuget.org sporadically fail, so we have to re-run many of our builds.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac