René's URL Explorer Experiment


Title: Possible race condition when commitizen-action is triggered twice by two different pushes · Issue #101 · commitizen-tools/commitizen-action · GitHub

Open Graph Title: Possible race condition when commitizen-action is triggered twice by two different pushes · Issue #101 · commitizen-tools/commitizen-action

X Title: Possible race condition when commitizen-action is triggered twice by two different pushes · Issue #101 · commitizen-tools/commitizen-action

Description: Background When an automatic workflow with the commitizen-action is set to run on pushes to a remote branch, whenever two separate pushes are done in short succession (less time than it takes for the workflow triggered by the earlier pus...

Open Graph Description: Background When an automatic workflow with the commitizen-action is set to run on pushes to a remote branch, whenever two separate pushes are done in short succession (less time than it takes for t...

X Description: Background When an automatic workflow with the commitizen-action is set to run on pushes to a remote branch, whenever two separate pushes are done in short succession (less time than it takes for t...

Opengraph URL: https://github.com/commitizen-tools/commitizen-action/issues/101

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Possible race condition when commitizen-action is triggered twice by two different pushes","articleBody":"### Background\n\nWhen an automatic workflow with the `commitizen-action` is set to run on pushes to a remote branch, whenever two separate pushes are done in short succession (less time than it takes for the workflow triggered by the earlier push to finish) the bumps will not complete successfully and a git tag will be pushed in a detached state.\n\n### Cause\n\nThe workflow that was triggered by the early most push will check the repository out on commit that will then be outdated after the second push happens. The `cz bump` command then gets executed on an outdated commit, the rebase triggered by the `git pull` command will move the \"bump commit\" to be the most recent commit of the branch, however since a git rebase effectively creates new commits the git tag created by `cz bump` will be left on the old outdated bump commit in a \"detached state\", at the end since the `git push ... --tags` command doesn't do any checks as regarding to the state of the pushed tags the tag will be pushed in the \"detached state\" (not part of the (or any) branch) to the remote repository.\n\nThe latter workflow will than fail, if trying to increment to the same version, to push its tags to remote as that tag is already present there (in the \"detached state\").\n\n### Possible solution\n\n- Don't rebase before pushing the bump commit and push the created tag separately, only if the commit was pushed correctly - in the case of the race condition described above the earlier workflow will fail, however the subsequent workflow runs will run correctly and no tags in the detached state will be pushed to the remote. (This is also similar to the example provided in the `commitizen` documentation for GitLab CI: https://commitizen-tools.github.io/commitizen/tutorials/gitlab_ci/#stages-and-jobs)","author":{"url":"https://github.com/michal-gomolinski","@type":"Person","name":"michal-gomolinski"},"datePublished":"2025-02-18T20:20:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/101/commitizen-action/issues/101"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a49f5af1-4c21-06ef-8104-f314e8cbcc5a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC870:300F19:8270FC2:A8BF7F5:69766AC1
html-safe-nonce65f25e0efd0d3fe409c7c0ed86bd25a845940201596521fb9bda5b1c1e1799be
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODcwOjMwMEYxOTo4MjcwRkMyOkE4QkY3RjU6Njk3NjZBQzEiLCJ2aXNpdG9yX2lkIjoiNDk0NTUwNjA0Mzk3MTM5ODMzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace704dab3382e22e315d0c26a80cd3452de0f2328e4b35b800c34c491e866257d
hovercard-subject-tagissue:2861556898
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/commitizen-tools/commitizen-action/101/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d79f27a880e998ae0fdd72ebff926f1cb4fac4a768f6bc4a558c484d63188db5/commitizen-tools/commitizen-action/issues/101
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d79f27a880e998ae0fdd72ebff926f1cb4fac4a768f6bc4a558c484d63188db5/commitizen-tools/commitizen-action/issues/101
og:image:altBackground When an automatic workflow with the commitizen-action is set to run on pushes to a remote branch, whenever two separate pushes are done in short succession (less time than it takes for t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemichal-gomolinski
hostnamegithub.com
expected-hostnamegithub.com
None032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411
turbo-cache-controlno-preview
go-importgithub.com/commitizen-tools/commitizen-action git https://github.com/commitizen-tools/commitizen-action.git
octolytics-dimension-user_id62252524
octolytics-dimension-user_logincommitizen-tools
octolytics-dimension-repository_id287308634
octolytics-dimension-repository_nwocommitizen-tools/commitizen-action
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id287308634
octolytics-dimension-repository_network_root_nwocommitizen-tools/commitizen-action
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5b577f6be6482e336e3c30e8daefa30144947b17
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/issues/101#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen-action%2Fissues%2F101
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen-action%2Fissues%2F101
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=commitizen-tools%2Fcommitizen-action
Reloadhttps://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/issues/101
Reloadhttps://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/issues/101
Reloadhttps://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/issues/101
commitizen-tools https://patch-diff.githubusercontent.com/commitizen-tools
commitizen-actionhttps://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen-action
Fork 41 https://patch-diff.githubusercontent.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen-action
Star 99 https://patch-diff.githubusercontent.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen-action
Code https://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action
Issues 14 https://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/issues
Pull requests 1 https://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/pulls
Actions https://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/actions
Projects 0 https://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/projects
Security 0 https://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/security
Insights https://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/pulse
Code https://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action
Issues https://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/issues
Pull requests https://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/pulls
Actions https://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/actions
Projects https://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/projects
Security https://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/security
Insights https://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/commitizen-tools/commitizen-action/issues/101
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/commitizen-tools/commitizen-action/issues/101
Possible race condition when commitizen-action is triggered twice by two different pusheshttps://patch-diff.githubusercontent.com/commitizen-tools/commitizen-action/issues/101#top
https://github.com/michal-gomolinski
https://github.com/michal-gomolinski
michal-gomolinskihttps://github.com/michal-gomolinski
on Feb 18, 2025https://github.com/commitizen-tools/commitizen-action/issues/101#issue-2861556898
https://commitizen-tools.github.io/commitizen/tutorials/gitlab_ci/#stages-and-jobshttps://commitizen-tools.github.io/commitizen/tutorials/gitlab_ci/#stages-and-jobs
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.