Skip to content
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

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

Glutexo
Copy link
Collaborator

@Glutexo Glutexo commented Dec 18, 2024

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • No Sensitive Data in this change?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

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:

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]>
@Glutexo Glutexo requested a review from xiangce December 18, 2024 16:36
@Glutexo Glutexo self-assigned this Dec 18, 2024
@Glutexo
Copy link
Collaborator Author

Glutexo commented Dec 18, 2024

May I ask for a review, @xiangce? 🙇🏻‍♂️

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.17%. Comparing base (d7cff2e) to head (e22c2b9).
Report is 1 commits behind head on master.

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           
Flag Coverage Δ
unittests 77.15% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@xiangce xiangce left a 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.

@xiangce xiangce merged commit dd934a3 into RedHatInsights:master Dec 19, 2024
13 checks passed
@Glutexo Glutexo deleted the dynamic-url branch December 19, 2024 14:22
xiangce pushed a commit that referenced this pull request Jan 2, 2025
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)
xiangce pushed a commit that referenced this pull request Jan 2, 2025
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)
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.

3 participants