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

[Self-hosted] [Regression] External links to GitHub Enterprise are broken on 24.11.1/rolling #600

Open
nikosatwork opened this issue Dec 3, 2024 · 4 comments
Assignees
Labels
Area: Self Hosted Issues that specifically relate to self hosted Codecov and aren't present in other environments bug For issues and unexpected behaviors High High Priority Issues (to be fixed within 2 sprints) Waiting for: Product Owner

Comments

@nikosatwork
Copy link

nikosatwork commented Dec 3, 2024

Describe the bug
External links to GitHub Enterprise are broken again on 24.11.1/rolling

Note: CODECOV_GHE_HOST is set correctly

Environment (please complete the following information):

  • Browser: Any
  • System: UI
  • Version: 24.11.1, rolling

To Reproduce
Steps to reproduce the behavior:

  1. Go to any commit in Commits tab or pull request in Pulls tab
  2. Click on the external commit link or pull request link at the top
  3. Land on broken URL i.e.
    https://codecov.self-hosted.com/ghe/org/repo/commit/undefined/org/repo/commit/20af0b22f0bb50a29045d0df51ea1de8097535a1
    instead of
    https://github.cds.self-hosted.com/org/repo/commit/20af0b22f0bb50a29045d0df51ea1de8097535a1
    , where CODECOV_GHE_HOST = https://github.cds.self-hosted.com

Expected behavior
Land on
https://github.enterprise.com/org/repo/commit/20af0b22f0bb50a29045d0df51ea1de8097535a1
, when CODECOV_GHE_HOST = https://github.cds.self-hosted.com

@covecod covecod bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Dec 3, 2024
@nikosatwork
Copy link
Author

Hi @drazisil-codecov. This is broken again in latest version :(

@drazisil-codecov drazisil-codecov added bug For issues and unexpected behaviors High High Priority Issues (to be fixed within 2 sprints) labels Dec 3, 2024
@eliatcodecov eliatcodecov added the Area: Self Hosted Issues that specifically relate to self hosted Codecov and aren't present in other environments label Dec 3, 2024
@RulaKhaled
Copy link

Update here:
We didn’t make any changes in Gazebo related to external commit/pull links, but the issue appeared in the recent build. This issue does not occur in our self-hosted version where the links are working as expected. I noticed that we replace config.GHE_BASE with CODECOV_GHE_HOST in docker/start-nginx.sh with this script:

sed -i -r "s/r.[a-zA-Z]+.GHE_URL/"${GHE_SCHEME_BASE}://${GHE_BASE}"/g" /var/www/app/gazebo/assets/*.js

@nikosatwork confirmed they set GHE_SCHEME_BASE correctly, i wonder if something went wrong during the asset build process that prevented the ${GHE_BASE} variable from being replaced correctly, i'll tag infra to see how we can move forward with this.

@RulaKhaled
Copy link

@codecov/infrastructure

@drazisil-codecov
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Self Hosted Issues that specifically relate to self hosted Codecov and aren't present in other environments bug For issues and unexpected behaviors High High Priority Issues (to be fixed within 2 sprints) Waiting for: Product Owner
Projects
Status: Waiting for: Product Owner
Development

No branches or pull requests

4 participants