Skip to content

Stagger schedule triggers so that there is less contention on pushes #332

@ianlewis

Description

@ianlewis

Bootstrap scripts often have race conditions where two runs push changes to the repo at the same time causing the push to fail. e2e-bootstrap.sh implements retries to help alleviate the issue but it would be good to stagger the schedule triggers by a few minutes to further help with the problem.

The error shows up in logs like the following:

To https://github.com/slsa-framework/example-package.git
 ! [rejected]          main -> main (fetch first)
error: failed to push some refs to 'https://github.com/slsa-framework/example-package.git'
hint: Updates were rejected because the remote contains work that you do not
hint: have locally. This is usually caused by another repository pushing to
hint: the same ref. If you want to integrate the remote changes, use
hint: 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions