Skip to content

Fix Duplicate execution of workflows #8957

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

Merged
merged 1 commit into from
Mar 18, 2025
Merged

Conversation

Salkinnoma
Copy link
Contributor

Fixes Issue #8955
Validate Gradle Wrapper and validate-workflows are now executed only on PR

Copy link
Member

@wmontwe wmontwe left a comment

Choose a reason for hiding this comment

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

LGTM

@kewisch
Copy link
Member

kewisch commented Mar 17, 2025

@wmontwe do we only need to do this on pull requests, or would it be helpful to do it on pushes to the main branch as well? The original issue was that the task is run twice on pull requests because a PR is also a push but to the PR branch.

@Salkinnoma
Copy link
Contributor Author

So there is no Branch protection to prevent pushes directly to main?

@kewisch
Copy link
Member

kewisch commented Mar 18, 2025

There is, I guess we'd be safe on main since everything needs a pull request, good point. We have beta and release branches where we do uplifts from main and could theoretically push directly, which might need to happen if we have to change a patch due to merge conflicts. Am I being overcautious here?

@wmontwe
Copy link
Member

wmontwe commented Mar 18, 2025

@kewisch There are no pushes allowed to main, all changes have to be done by a pull-request.

Push was allowed a while ago, but following best practises this had been disabled. Just the workflows haven't been changed accordingly.

Exceptions are beta and release branches where normal pushes are allowed, but force pushes are disabled. This could be changed where the uplifts are required to have a branch and code review as well. This would be recommended, especially when an uplift needs further changes to be applied to beta or release.

@wmontwe wmontwe merged commit 637f3bb into thunderbird:main Mar 18, 2025
3 checks passed
Copy link
Contributor

Thanks for your contribution! Your pull request has been merged and will be part of Thunderbird 11. We appreciate the time and effort you put into improving Thunderbird. If you haven’t already, you’re welcome to join our Matrix chat for contributors. It’s where we discuss development and help each other out. https://matrix.to/#/#tb-android-dev:mozilla.org
Hope to see you there! 🚀📱🐦

@github-actions github-actions bot added this to the Thunderbird 11 milestone Mar 18, 2025
@wmontwe wmontwe linked an issue Mar 18, 2025 that may be closed by this pull request
@wmontwe wmontwe self-assigned this Mar 18, 2025
@coreycb coreycb added task: uplift to release Uplift to the release branch and removed task: uplift to release Uplift to the release branch labels May 3, 2025
coreycb pushed a commit that referenced this pull request May 3, 2025
Fix Duplicate execution of workflows
@coreycb coreycb removed the task: uplift to release Uplift to the release branch label May 3, 2025
@coreycb coreycb modified the milestones: Thunderbird 11, Thunderbird 10 May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validate gradle wrapper and workflows run twice on pull requests
4 participants