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

ci: override existing snapshot tag if publish snapshot job is restarted #46366

Closed
wants to merge 1 commit into from

Conversation

devversion
Copy link
Member

@devversion devversion commented Jun 14, 2022

If the snapshot publish job is manually being restarted, the tag in the
snapshot repo might already exist and the job will fail. We can just
forcibly re-create the tag (even if it will be at the same revision).

We use force mode in a couple of other commands as well, such as git push of the actual tag and snapshot revision/SHA.

Arguably, there is lots of room for improvement in this script as currently it does not guarantee a linear chronological history anyway. We can improve this when we share this script in the dev-infra ORB. At the same time though, snapshots are in no way important enough for us to worry

If the snapshot publish job is manually being restarted, the tag in the
snapshot repo might already exist and the job will fail. We can just
forcibly re-create the tag (even if it will be at the same revision).

We use force mode in a couple of other command as well, such as `git
push` of the actual tag and snapshot revision/SHA.
Copy link
Contributor

@jessicajaniuk jessicajaniuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing this!

@jessicajaniuk jessicajaniuk added the area: build & ci Related the build and CI infrastructure of the project label Jun 14, 2022
@ngbot ngbot bot added this to the Backlog milestone Jun 14, 2022
@jessicajaniuk jessicajaniuk added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker labels Jun 14, 2022
@devversion devversion requested a review from gkalpak June 14, 2022 20:59
@devversion
Copy link
Member Author

I believe we could also abort gracefully if the tag already exists, but the whole script needs some work... the tag can only be the same SHA due to our shallow clone, so it doesn't seem to matter 🤷‍♂️

@devversion devversion removed the request for review from josephperrott June 15, 2022 11:33
@jessicajaniuk
Copy link
Contributor

This PR was merged into the repository by commit 736b545.

jessicajaniuk pushed a commit that referenced this pull request Jun 15, 2022
…ed (#46366)

If the snapshot publish job is manually being restarted, the tag in the
snapshot repo might already exist and the job will fail. We can just
forcibly re-create the tag (even if it will be at the same revision).

We use force mode in a couple of other command as well, such as `git
push` of the actual tag and snapshot revision/SHA.

PR Close #46366
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants