Skip to content

fix(symbolicator): check source credentials and not the credential token #92024

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
May 21, 2025

Conversation

Litarnus
Copy link
Contributor

This PR fixes a bug where it would always report that no token can be obtained.
The reason is that no refresh is being performed on the source_credentials, so it does not have a token property yet and the check will always return False.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 21, 2025
@Litarnus Litarnus marked this pull request as ready for review May 21, 2025 14:03
@Litarnus Litarnus requested a review from a team as a code owner May 21, 2025 14:03
Copy link

codecov bot commented May 21, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

⚠️ Parser warning

The parser emitted a warning. Please review your JUnit XML file:

Warning while parsing testcase attributes: Limit of string is 1000 chars, for name, we got 2083 at 1:157237 in /home/runner/work/sentry/sentry/.artifacts/pytest.junit.xml
Files with missing lines Patch % Lines
src/sentry/lang/native/sources.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #92024   +/-   ##
=======================================
  Coverage   87.63%   87.63%           
=======================================
  Files       10361    10361           
  Lines      587535   587535           
  Branches    22594    22594           
=======================================
+ Hits       514863   514868    +5     
+ Misses      72251    72246    -5     
  Partials      421      421           

@Litarnus Litarnus merged commit cff22ad into master May 21, 2025
61 checks passed
@Litarnus Litarnus deleted the martinl/gcp-token-fix branch May 21, 2025 14:20
antonpirker pushed a commit that referenced this pull request May 21, 2025
…ken (#92024)

This PR fixes a bug where it would always report that no token can be
obtained.
The reason is that no refresh is being performed on the
`source_credentials`, so it does not have a `token` property yet and the
check will always return `False`.
andrewshie-sentry pushed a commit that referenced this pull request Jun 2, 2025
…ken (#92024)

This PR fixes a bug where it would always report that no token can be
obtained.
The reason is that no refresh is being performed on the
`source_credentials`, so it does not have a `token` property yet and the
check will always return `False`.
@github-actions github-actions bot locked and limited conversation to collaborators Jun 6, 2025
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants