Skip to content

Improve the oldest_stopped algorithm #30

@sbidoul

Description

@sbidoul

Currently the oldest_stopped algorithm that is used by the undeployer protects the build for the last commit of each branch (non-PR) build.

The algorithm could be made smarter by also returning these for undeployment, and giving lower undeployment priority to the last commit of each PR too.

  • first undeploy builds by creation order, excluding the last build of each repo/target-branch/pr
  • then undeploy the last commit of prs
  • then undeploy the last commit of branches (non-PR)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions