Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Fix CI issue - #6274

Merged
NateBrady23 merged 2 commits into
TechEmpower:masterfrom
ajohnstonTE:master
Jan 8, 2021
Merged

NateBrady23 merged 2 commits into
TechEmpower:masterfrom
ajohnstonTE:master

Conversation

@ajohnstonTE

@ajohnstonTE ajohnstonTE commented Jan 8, 2021 •

Copy link
Copy Markdown
Contributor

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.

@ajohnstonTE

ajohnstonTE commented Jan 8, 2021 •

Copy link
Copy Markdown
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.

@NateBrady23
NateBrady23 merged commit 6386132 into TechEmpower:master Jan 8, 2021
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants