This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Repository navigation
Fix CI issue - #6274
Merged
Merged
Fix CI issue#6274
Conversation
Contributor
Author
|
A short-ish explanation of the issue. The python script would previously see that a branch was already on master and skip fetching master, but GH Actions in PRs checks out the code in a detached HEAD state with no branch, so you always need to fetch master in a PR. Without the fetch of master, the diff step was silently failing resulting in an empty string diff, leaving the rest of the CI steps to assume there were no changes and to move on. |
andreasrueb
pushed a commit
to digitallyinduced/IHP-FrameworkBenchmarks
that referenced
this pull request
Apr 13, 2021
* Slightly change github_actions_diff.py (to trigger CI) * Always fetch master for PRs during CI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CI is silently failing to run tests for fork:master -> base:master PRs.
Demonstration of difference: Compare the "Get all changes vs master" step's log for the following workflows.
no changes, pre-fix: https://github.com/TechEmpower/FrameworkBenchmarks/runs/1666054554?check_suite_focus=true
with fix: https://github.com/TechEmpower/FrameworkBenchmarks/runs/1666081021?check_suite_focus=true
Without the fix, it fails to see the master branch. With the fix it proceeds normally.