Skip to content

postBuildStep's should probably be scheduled regardless of build skips #295

@antifuchs

Description

@antifuchs

I have an "effect" (not a hercules-ci-effect! no idea how to use those tbh) via a postBuildStep that I would like to run only on the default branch of my repo. If I make a pull request that affects that attribute, it properly gets run on the PR branch and decides it has nothing to do; but if I merge the PR, the build is skipped and the postBuildStep isn't executed - it isn't even scheduled.

This is what a build on a PR branch looks like:
image

And this is on the merge commit:
image

I believe what happens here is that the evaluation counts as "cached" coming out of nix-eval-jobs, which prompts buildbot-nix to not build & then not schedule the following postBuildSteps either.

What I think would be neat is if we could:

  • schedule postBuildSteps, either by default or via a configurable attribute
  • maybe expose the doStepIf buildbot attribute, so steps can decide for themselves based on the properties of the build whether they are supposed to run or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions