Skip to content

Restart only one workflow #55

Closed
opencloud-eu/opencloud
#2099

Description

@individual-it

In woodpecker all workflows are restarted if the "restart" button is clicked woodpecker-ci/woodpecker#1886
For us this is annoying when a single workflow failed e.g. because of flaky tests.
We could write to some permanent storage e.g. S3 the commitID and the workflow that passed. Before starting that workflow we would check the storage if that flag exists and just skip the run with exit 0 if it does.
Of course that does not make sense for build workflows, but only for real test workflows

CC @ScharfViktor @micbar

Activity

  1. individual-it commented on Sep 18, 2025

    @individual-it
    ContributorAuthor

    before exiting the workflow could give a link to the previously passed one

  2. saw-jan commented on Jan 2, 2026

    @saw-jan
    Contributor

    Since Woodpecker doesn't support restarting individual workflows separately, my idea for this was:

    • When a CI build starts, upload the current pipeline number to s3 using commit hash as path key
    • When a restart happens on the same commit, check the previous pipeline number in s3 and get the pipeline details with that.
    • Based on the previous pipeline info, run or skip the workflows.

    The limitation in Woodpecker:

    • Workflows do not get skipped with exit 78

    Because of this limitation, we will have to touch all the steps of all the workflows where we want this to be implemented, just to skip the steps if the workflow was passed previously.

  3. individual-it commented on Jan 2, 2026

    @individual-it
    ContributorAuthor

    we have a similar skip for when the cache is found if $BIN_CACHE_FOUND; then exit 0; fi

  4. saw-jan commented on Jan 2, 2026

    @saw-jan
    Contributor

    we have a similar skip for when the cache is found if $BIN_CACHE_FOUND; then exit 0; fi

    yeah, that's needed in every step of all workflows, and it doesn't look good.
    But if we want, then maybe we can start first with API/e2e test workflows

  5. added
    Type:DevOps
    on Jan 2, 2026
  6. self-assigned this
    on Jan 7, 2026
  7. saw-jan commented on Jan 7, 2026

    @saw-jan
    Contributor

    @ScharfViktor, do we want this in web as well?

  8. v-scharf commented on Jan 7, 2026

    @v-scharf
    Collaborator

    I don't think so. e2e tests have retry=1 and are more stable than api tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type:DevOps

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions