Project

Profile

Help

Story #6401

closed

As a developer I want to re-run only the job that has failed

Added by fao89 about 4 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
CI/CD
Sprint:
Sprint 69
Quarter:

Description

Currently on ansible-pulp, if one job fails, you can not restart only this job, you have to restart all jobs for the current workflow. I want to be able to restart only the job that has failed

Actions #1

Updated by fao89 about 4 years ago

  • Description updated (diff)
Actions #2

Updated by fao89 about 4 years ago

  • Tracker changed from Issue to Story
  • % Done set to 0
  • Sprint set to Sprint 69
Actions #3

Updated by fao89 about 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89
Actions #4

Updated by fao89 about 4 years ago

Currently ansible-pulp has 2 workflows:

  • Pulp CI: 3 jobs
  • Cron Jobs: 9 jobs

It seems, we only can start entire workflows: https://github.community/t5/GitHub-Actions/Manually-restart-actions-and-entire-workflows/m-p/35907/highlight/true#M2365 Which in this case we would end up with at least 9 workflows

Added by Fabricio Aguiar about 4 years ago

Revision 9f29d5aa | View on GitHub

Refactoring GHA workflows

closes #6401

Added by Fabricio Aguiar about 4 years ago

Revision 9f29d5aa | View on GitHub

Refactoring GHA workflows

closes #6401

Actions #5

Updated by fao89 about 4 years ago

  • Status changed from ASSIGNED to POST

As maintaining 9 workflows doesn't seem good, I propose adding an automatic retry when job fails.

Also refactored, so we have one workflow just for pull requests, and another workflow for master branch health

https://github.com/pulp/ansible-pulp/pull/261

Actions #6

Updated by fao89 about 4 years ago

for plugins, I think having one workflow per job is doable as we don't have so many jobs as ansible-pulp I'll start a PoC on pulp_npm

Actions #7

Updated by fao89 about 4 years ago

On NPM, I was able to put 2 workflows in 1, but I could not split workflows by cases due to deploy depending on more than one case, see: https://github.com/pulp/pulp_npm/pull/13/files#r399558331

https://github.community/t5/GitHub-Actions/How-do-I-specify-job-dependency-running-in-another-workflow/m-p/33972#M1736

Actions #8

Updated by Anonymous almost 4 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

Added by Fabricio Aguiar almost 4 years ago

Revision 2b274289 | View on GitHub

Refactoring github actions

ref #6401

Actions #9

Updated by fao89 almost 4 years ago

Retry does not work, it keeps the status as failed, and it is not possible to change job status https://github.community/t5/GitHub-Actions/Set-job-status-to-success-even-when-a-step-fails/td-p/44234

Actions #10

Updated by mdepaulo@redhat.com almost 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #11

Updated by bmbouter almost 4 years ago

  • Category set to Installer - Moved to GitHub issues
  • Tags deleted (Pulp 3 installer)

Also available in: Atom PDF