Skip to content

Comments

fix: application context for async jobs framework#6709

Open
achettyiitr wants to merge 1 commit intomasterfrom
fix.async-jobs-ctx
Open

fix: application context for async jobs framework#6709
achettyiitr wants to merge 1 commit intomasterfrom
fix.async-jobs-ctx

Conversation

@achettyiitr
Copy link
Member

🔒 Scanned for secrets using gitleaks 8.29.1

Description

  • Handle context for the Async framework for the Upload and Poll method. Currently, context is being used only within Snowpipe Streaming, so no other integrations would get affected.

Linear Ticket

  • Resolves INT-5917

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

🔒 Scanned for secrets using gitleaks 8.29.1
Comment on lines -86 to -95
type Uploader interface {
Upload(*common.AsyncDestinationStruct) common.AsyncUploadOutput
UploadBulkFile(ctx context.Context, filePath string) (bool, error)
PopulateCsvFile(actionFile *ActionFileInfo, streamTraitsMapping []StreamTraitMapping, line string, data Data) error
}

type HttpClient interface {
Do(req *http.Request) (*http.Response, error)
}

Copy link
Member Author

Choose a reason for hiding this comment

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

These are not being used anywhere. Removing it.

@codecov
Copy link

codecov bot commented Feb 23, 2026

Codecov Report

❌ Patch coverage is 84.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.02%. Comparing base (395a4fb) to head (03c7b30).

Files with missing lines Patch % Lines
...chrouter/asyncdestinationmanager/common/manager.go 0.00% 2 Missing ⚠️
...tchrouter/asyncdestinationmanager/common/common.go 66.66% 1 Missing ⚠️
...cdestinationmanager/yandexmetrica/yandexmetrica.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6709      +/-   ##
==========================================
- Coverage   80.05%   80.02%   -0.03%     
==========================================
  Files         566      566              
  Lines       63335    63331       -4     
==========================================
- Hits        50703    50681      -22     
- Misses       9637     9652      +15     
- Partials     2995     2998       +3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants