Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#258): !improve status condition to reflect multiple pipelines #259

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

richcooper95
Copy link
Member

This commit:

  • changes the PipelineCompleted condition type to ConfigureWorkflowCompleted
  • updates the condition message to reflect the completion of multiple pipelines
  • only sets the condition to True when the last pipeline in a Configure workflow has completed successfully

Previously, we set the PipelineCompleted condition to True at the end of every successful Pipeline in a Configure workflow. This meant there was a window in which the condition could be set to True before all Pipelines had completed (before the next Pipeline was triggered and the condition was reset to False).

This commit includes a change to update-status to only set the ConfigureWorkflowCompleted condition to True when the last Pipeline in the Configure workflow has completed successfully.

BREAKING CHANGE: Any automation relying on the PipelineCompleted condition type will need to be updated to watch for the new ConfigureWorkflowCompleted condition type instead. This is semantically interchangeable, but reflects the completion of multiple pipelines in a Configure workflow.

@richcooper95 richcooper95 force-pushed the fix/258/multiple-pipelines-condition branch from 328b409 to af02c41 Compare October 18, 2024 15:37
This commit:
- changes the `PipelineCompleted` condition type to
  `ConfigureWorkflowCompleted`
- updates the condition message to reflect the completion of multiple
  pipelines
- only sets the condition to `True` when the last pipeline in a
  Configure workflow has completed successfully

Previously, we set the `PipelineCompleted` condition to `True` at the
end of every successful Pipeline in a Configure workflow. This meant
there was a window in which the condition could be set to `True` before
all Pipelines had completed (before the next Pipeline was triggered and
the condition was reset to `False`).

This commit includes a change to `update-status` to only set the
`ConfigureWorkflowCompleted` condition to `True` when the last Pipeline
in the Configure workflow has completed successfully.

BREAKING CHANGE: Any automation relying on the `PipelineCompleted`
condition type will need to be updated to watch for the new
`ConfigureWorkflowCompleted` condition type instead. This is
semantically interchangeable, but reflects the completion of multiple
pipelines in a Configure workflow.

Co-authored-by: Jake Klein <[email protected]>
@richcooper95 richcooper95 force-pushed the fix/258/multiple-pipelines-condition branch from af02c41 to 391ff6f Compare October 18, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant