René's URL Explorer Experiment


Title: fixed #12325 - cancel workflows if a newer commit is pushed on the same branch by kitsiosk · Pull Request #7636 · cppcheck-opensource/cppcheck · GitHub

Open Graph Title: fixed #12325 - cancel workflows if a newer commit is pushed on the same branch by kitsiosk · Pull Request #7636 · cppcheck-opensource/cppcheck

X Title: fixed #12325 - cancel workflows if a newer commit is pushed on the same branch by kitsiosk · Pull Request #7636 · cppcheck-opensource/cppcheck

Description: Change Summary Currently, if a push to branchA triggers the CodeQL workflow, and shortly after a subsequent push on the same branchA triggers the CodeQL workflow, both runs will run. With these changes, the first run will be cancelled, thus saving compute resources (see below for quantity) without sacrificing functionality, since the second run will contain the changes from the first push as well. The introduced syntax comes from the official documentation. Context Hi, We are a team of researchers from University of Zurich and we are currently working on energy optimizations in Github Actions workflows. Based on our offline analysis, cancelling CodeQL runs triggered by a now-obsolete commit (because a new commit has triggered the CodeQL workflow again), could have saved ~49.9 CPU hours since the beginning of the project. For example, the commit 70b1f triggered this workflow run, and one minute later the commit ea2c3, that happened on top of the first commit, triggered this workflow. Both workflows ran till the end, spending ~12 CPU minutes each. With the proposed changes, the first run would be cancelled, hence saving ~11 CPU minutes and clearing the queue for other workflows. Kindly let us know (here or in the email below) if you would like more details on our offline evaluation, if you want to reject the proposed changes for other reasons, or if you have any question whatsoever. Best regards, Konstantinos Kitsios konstantinos.kitsios@uzh.ch

Open Graph Description: Change Summary Currently, if a push to branchA triggers the CodeQL workflow, and shortly after a subsequent push on the same branchA triggers the CodeQL workflow, both runs will run. With these cha...

X Description: Change Summary Currently, if a push to branchA triggers the CodeQL workflow, and shortly after a subsequent push on the same branchA triggers the CodeQL workflow, both runs will run. With these cha...

Opengraph URL: https://github.com/cppcheck-opensource/cppcheck/pull/7636

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:88bb59f2-ac1c-917d-1b49-153d7e165edf
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9732:1EC7:99A021:D4E777:6A4EF6B6
html-safe-noncea8017c1baa44bb47123c04c5695e2739212dddb97fd359461710aaf0004accaf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzMyOjFFQzc6OTlBMDIxOkQ0RTc3Nzo2QTRFRjZCNiIsInZpc2l0b3JfaWQiOiI2NDMwMjA4NzU1Njg2NjM1MTkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0ea72692e8ee182d454f6a7e957e0713dd3af1cc1ece15f8c482663330458acd
hovercard-subject-tagpull_request:2627202620
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/cppcheck-opensource/cppcheck/pull/7636/files
twitter:imagehttps://avatars.githubusercontent.com/u/20650935?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/20650935?s=400&v=4
og:image:altChange Summary Currently, if a push to branchA triggers the CodeQL workflow, and shortly after a subsequent push on the same branchA triggers the CodeQL workflow, both runs will run. With these cha...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/cppcheck-opensource/cppcheck git https://github.com/cppcheck-opensource/cppcheck.git
octolytics-dimension-user_id278097703
octolytics-dimension-user_logincppcheck-opensource
octolytics-dimension-repository_id143131
octolytics-dimension-repository_nwocppcheck-opensource/cppcheck
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143131
octolytics-dimension-repository_network_root_nwocppcheck-opensource/cppcheck
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b8f23afb982271f1b22258a94aede67a6b77760
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cppcheck-opensource/cppcheck/pull/7636/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F7636%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F7636%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=cppcheck-opensource%2Fcppcheck
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/7636/files
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/7636/files
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/7636/files
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/7636/files
cppcheck-opensource https://github.com/cppcheck-opensource
cppcheckhttps://github.com/cppcheck-opensource/cppcheck
Notifications https://github.com/login?return_to=%2Fcppcheck-opensource%2Fcppcheck
Fork 1.6k https://github.com/login?return_to=%2Fcppcheck-opensource%2Fcppcheck
Star 6.7k https://github.com/login?return_to=%2Fcppcheck-opensource%2Fcppcheck
Code https://github.com/cppcheck-opensource/cppcheck
Pull requests 204 https://github.com/cppcheck-opensource/cppcheck/pulls
Actions https://github.com/cppcheck-opensource/cppcheck/actions
Security and quality 0 https://github.com/cppcheck-opensource/cppcheck/security
Insights https://github.com/cppcheck-opensource/cppcheck/pulse
Code https://github.com/cppcheck-opensource/cppcheck
Pull requests https://github.com/cppcheck-opensource/cppcheck/pulls
Actions https://github.com/cppcheck-opensource/cppcheck/actions
Security and quality https://github.com/cppcheck-opensource/cppcheck/security
Insights https://github.com/cppcheck-opensource/cppcheck/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fcppcheck-opensource%2Fcppcheck%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcppcheck-opensource%2Fcppcheck%2Fissues%2Fnew%2Fchoose
kitsioskhttps://github.com/kitsiosk
cppcheck-opensource:mainhttps://github.com/cppcheck-opensource/cppcheck/tree/main
kitsiosk:add_concurrency_in_cihttps://github.com/kitsiosk/cppcheck/tree/add_concurrency_in_ci
Conversation 27 https://github.com/cppcheck-opensource/cppcheck/pull/7636
Commits 4 https://github.com/cppcheck-opensource/cppcheck/pull/7636/commits
Checks 62 https://github.com/cppcheck-opensource/cppcheck/pull/7636/checks
Files changed https://github.com/cppcheck-opensource/cppcheck/pull/7636/files
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/7636/files
fixed #12325 - cancel workflows if a newer commit is pushed on the same branch https://github.com/cppcheck-opensource/cppcheck/pull/7636/files#top
Show all changes 4 commits https://github.com/cppcheck-opensource/cppcheck/pull/7636/files
f70a315 Cancel running workflows if a newer commit is pushed on the same branch kitsiosk Jun 29, 2025 https://github.com/cppcheck-opensource/cppcheck/pull/7636/commits/f70a315db6794a83a2f0aabb2ff759ae94964516
d832f99 Cancel obsolete workflows only in PRs kitsiosk Jun 30, 2025 https://github.com/cppcheck-opensource/cppcheck/pull/7636/commits/d832f996cddcb6899cac0367ac2a2d7aafba05c4
935558b commenting out changes to see what happens to build failure kitsiosk Jul 14, 2025 https://github.com/cppcheck-opensource/cppcheck/pull/7636/commits/935558bc0255eeb6587592293dda681db88a4c83
dc63ed9 adopting suggestion from @firewave kitsiosk Jul 14, 2025 https://github.com/cppcheck-opensource/cppcheck/pull/7636/commits/dc63ed97eaf920d760a095dae3b2795e67a8c9c2
Clear filters https://github.com/cppcheck-opensource/cppcheck/pull/7636/files
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/7636/files
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/7636/files
.github/workflows/codeql-analysis.ymlhttps://github.com/cppcheck-opensource/cppcheck/pull/7636/files#diff-63bd641104d10e25f141d518a16b22a151d125e12701df2f9e79734b23b90188
View file https://github.com/cppcheck-opensource/cppcheck/blob/dc63ed97eaf920d760a095dae3b2795e67a8c9c2/.github/workflows/codeql-analysis.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cppcheck-opensource/cppcheck/pull/7636/{{ revealButtonHref }}
https://github.com/cppcheck-opensource/cppcheck/pull/7636/files#diff-63bd641104d10e25f141d518a16b22a151d125e12701df2f9e79734b23b90188
https://github.com/cppcheck-opensource/cppcheck/pull/7636/files#diff-63bd641104d10e25f141d518a16b22a151d125e12701df2f9e79734b23b90188
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.