Project

Profile

Help

Story #6401

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

Added by fao89 3 months ago. Updated about 2 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
Installer
Start date:
Due date:
% Done:

100%

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

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

Associated revisions

Revision 9f29d5aa View on GitHub
Added by Fabricio Aguiar 3 months ago

Refactoring GHA workflows

closes #6401

Revision 9f29d5aa View on GitHub
Added by Fabricio Aguiar 3 months ago

Refactoring GHA workflows

closes #6401

Revision 2b274289 View on GitHub
Added by Fabricio Aguiar 3 months ago

Refactoring github actions

ref #6401

History

#1 Updated by fao89 3 months ago

  • Description updated (diff)

#2 Updated by fao89 3 months ago

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

#3 Updated by fao89 3 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89

#4 Updated by fao89 3 months 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

#5 Updated by fao89 3 months 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

#6 Updated by fao89 3 months 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

#7 Updated by fao89 3 months 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

#8 Updated by Anonymous 3 months ago

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

#9 Updated by fao89 3 months 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

#10 Updated by mdepaulo@redhat.com 2 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#11 Updated by bmbouter about 2 months ago

  • Category set to Installer
  • Tags deleted (Pulp 3 installer)

Please register to edit this issue

Also available in: Atom PDF