Skip to content

fix: Remove leading slash from codecov path#43640

Closed
jangjodi wants to merge 1 commit into
masterfrom
jodi/codecov-url-path-fix
Closed

fix: Remove leading slash from codecov path#43640
jangjodi wants to merge 1 commit into
masterfrom
jodi/codecov-url-path-fix

Conversation

@jangjodi

@jangjodi jangjodi commented Jan 24, 2023

Copy link
Copy Markdown
Contributor

The codecov coverage for this issue is failing due to the path starting with /.

As shown below, the attempted codecov URL includes a leading / in front of path.
Screen Shot 2023-01-24 at 3 21 29 PM
This leading slash is gotten from the stacktrace sourceRoot here. This does not pose an issue for stacktrace linking, as the leading / is removed here. This PR will remove the leading / from the path in the same way.

Failing URL (with leading slash): https://api.codecov.io/api/v2/gh/getsentry/repos/sentry/report?branch=master&path=%2Fsrc%2Fsentry%2Fshared_integrations%2Fclient%2Fbase.py
Correct URL (w/out leading slash): https://api.codecov.io/api/v2/gh/getsentry/repos/sentry/report?branch=master&path=src%2Fsentry%2Fshared_integrations%2Fclient%2Fbase.py

@armenzg armenzg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to get a fix quickly let's go for it but I would like tests for this and a way to verify that this is the right fix and understand why this was not a problem yesterday.

@jangjodi jangjodi closed this Jan 25, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 10, 2023
@asottile-sentry asottile-sentry deleted the jodi/codecov-url-path-fix branch December 1, 2023 16:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants