-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(objectstore): Set auth token in proxy endpoint, preprod task #112168
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |
| from pydantic import ValidationError | ||
| from taskbroker_client.retry import Retry | ||
|
|
||
| from sentry.objectstore import get_preprod_session | ||
| from sentry.objectstore import create_client, get_preprod_session | ||
| from sentry.preprod.models import PreprodArtifact | ||
| from sentry.preprod.snapshots.image_diff.compare import compare_images_batch | ||
| from sentry.preprod.snapshots.image_diff.odiff import OdiffServer | ||
|
|
@@ -125,6 +125,7 @@ def compare_snapshots( | |
| org_id: int, | ||
| head_artifact_id: int, | ||
| base_artifact_id: int, | ||
| storage_token: str | None = None, | ||
| ) -> None: | ||
| task_start_time = timezone.now() | ||
| logger.info( | ||
|
|
@@ -219,7 +220,8 @@ def compare_snapshots( | |
| ) | ||
|
|
||
| try: | ||
| session = get_preprod_session(org_id, project_id) | ||
| client_with_token = create_client(token_override=storage_token) | ||
| session = get_preprod_session(org_id, project_id, client=client_with_token) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. New client created per task invocation instead of singletonMedium Severity
|
||
|
|
||
| head_manifest_key = (head_metrics.extras or {}).get("manifest_key") | ||
| base_manifest_key = (base_metrics.extras or {}).get("manifest_key") | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.