-
Notifications
You must be signed in to change notification settings - Fork 186
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
fix(ci): Use dynamic repo URL for python26-test #4314
Conversation
The harcoded RedHatInsights URL makes the Python 2.6 tests fail when a pull request is created in a fork. Using a dynamic URLs makes the GitHub Action to clone from the fork and use the code in the pull request. github.repositoryUrl variable can’t be used, because cloning using git:// protocol fails. HTTPS url is thus composed instead. Card IDs: * RHINENG-14956 Signed-off-by: Štěpán Tomsa <[email protected]>
May I ask for a review, @xiangce? 🙇🏻♂️ |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4314 +/- ##
=======================================
Coverage 77.17% 77.17%
=======================================
Files 765 765
Lines 41753 41753
Branches 8815 8815
=======================================
Hits 32221 32221
Misses 8464 8464
Partials 1068 1068
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hadn't really thought of a situation where PR would be created against the master branch of forks before.
Thank you @Glutexo for fixing this issue.
The harcoded RedHatInsights URL makes the Python 2.6 tests fail when a pull request is created in a fork. Using a dynamic URLs makes the GitHub Action to clone from the fork and use the code in the pull request. github.repositoryUrl variable can’t be used, because cloning using git:// protocol fails. HTTPS url is thus composed instead. Card IDs: * RHINENG-14956 Signed-off-by: Štěpán Tomsa <[email protected]> (cherry picked from commit dd934a3)
The harcoded RedHatInsights URL makes the Python 2.6 tests fail when a pull request is created in a fork. Using a dynamic URLs makes the GitHub Action to clone from the fork and use the code in the pull request. github.repositoryUrl variable can’t be used, because cloning using git:// protocol fails. HTTPS url is thus composed instead. Card IDs: * RHINENG-14956 Signed-off-by: Štěpán Tomsa <[email protected]> (cherry picked from commit dd934a3) (cherry picked from commit 2b81ea2)
All Pull Requests:
Check all that apply:
Complete Description of Additions/Changes:
The harcoded RedHatInsights URL makes the Python 2.6 tests fail when a pull request is created in a fork. Using a dynamic URLs makes the GitHub Action to clone from the fork and use the code in the pull request.
github.repositoryUrl variable can’t be used, because cloning using git:// protocol fails. HTTPS url is thus composed instead.
Card IDs: