Fix CI: Remove explicit repository parameter causing non-reproducible test results #5950
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.
Problem
Our CI tests were experiencing non-reproducible results where:
Root Cause
The issue was caused by explicit
repository
parameters in ouractions/checkout
steps:According to GitHub Actions documentation:
When you specify an explicit
repository
parameter (even if it's the same repo), GitHub Actions treats it as "otherwise" and defaults to the main branch instead of using the PR context.The Fix
Remove the explicit
repository
parameter when checking out the same repository:Changes Made
repository: 'Comfy-Org/ComfyUI_frontend'
from setup job checkoutrepository: 'Comfy-Org/ComfyUI_frontend'
from merge-reports job checkoutactions/checkout@v5
for consistencyref
andfetch-depth
parametersHow This Fixes the Problem
Before:
After:
Why It Worked Before (Sometimes)
The explicit
repository
parameter has been there for a long time, but the issue became more apparent recently due to:The fix ensures deterministic behavior regardless of GitHub's internal changes.
Testing
This change makes the CI behavior explicit and predictable:
Resolves the issues described in
.github/workflows/problem.log
.┆Issue is synchronized with this Notion page by Unito