Skip to content

Potential race condition #61

@iaindillingham

Description

@iaindillingham

If two commits are merged to main, each will trigger a separate run of the CI workflow. If, for some reason, the later commit's run completes first, then the later commit will be tagged with the next version number. The earlier commit, whose run completes second, will also be tagged with the next version number, but the earlier commit's version number will be greater than the later commit's version number, which is very confusing.

This is known as a race condition. To prevent it, we should ensure that runs are executed in sequence. To do so, we should set the workflow's concurrency property. See:

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