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

feat(internal/uploader): UDENG-5706 ubuntu insights uploader #9

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from

Conversation

hk21702
Copy link
Collaborator

@hk21702 hk21702 commented Jan 23, 2025

Implements the uploader component along with relevant tests.

  • For a given source, find all the collected reports
  • Check min age against the report timestamp
  • Parse correct URL/endpoint
  • Check consent, replace payload with opt out if out out
  • Send payload to server with 10 second timeout
  • Write payload to uploaded folder, remove report from collected folder

UDENG-5706

hk21702 and others added 24 commits January 13, 2025 14:35
@hk21702 hk21702 self-assigned this Jan 23, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 91.57509% with 23 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@5ad0e21). Learn more about missing BASE report.

Files with missing lines Patch % Lines
internal/fileutils/fileutils.go 40.00% 8 Missing and 4 partials ⚠️
internal/uploader/upload.go 92.56% 6 Missing and 3 partials ⚠️
internal/uploader/uploader.go 93.33% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main       #9   +/-   ##
=======================================
  Coverage        ?   75.66%           
=======================================
  Files           ?       17           
  Lines           ?      567           
  Branches        ?        0           
=======================================
  Hits            ?      429           
  Misses          ?      118           
  Partials        ?       20           

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

@hk21702 hk21702 force-pushed the UDENG-5706-ubuntu-insights-uploader branch from 68c2fc0 to b1a6d21 Compare January 23, 2025 22:09
@hk21702 hk21702 force-pushed the UDENG-5706-ubuntu-insights-uploader branch from b1a6d21 to 64e2178 Compare January 23, 2025 22:16
@hk21702 hk21702 force-pushed the UDENG-5706-ubuntu-insights-uploader branch from 74259c8 to 4e9297c Compare January 24, 2025 21:28
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.

3 participants