Skip to content

Implement context manager to handle codec test file download an deletion (BugFix)#2429

Open
rickwu666666 wants to merge 3 commits intomainfrom
add-download-codec-test-files
Open

Implement context manager to handle codec test file download an deletion (BugFix)#2429
rickwu666666 wants to merge 3 commits intomainfrom
add-download-codec-test-files

Conversation

@rickwu666666
Copy link
Copy Markdown
Contributor

@rickwu666666 rickwu666666 commented Mar 26, 2026

Implement context manager to handle codec test file download and deletion

VIDEO_CODEC_TESTING_DATA is no longer mandatory. If not provided, files are stored in a video directory within the user's home folder. If provided, the files in that path are used as test data, and no new files are downloaded during testing if the valid file under the path.

Description

Resolved issues

Documentation

Tests

Sideload result
https://pastebin.canonical.com/p/Jz5mtwvwCy/

@rickwu666666 rickwu666666 requested a review from a team March 26, 2026 10:58
@rickwu666666 rickwu666666 changed the title Implement context manager to handle codec test file download an deletion Implement context manager to handle codec test file download an deletion (BugFix) Mar 26, 2026
@rickwu666666 rickwu666666 marked this pull request as draft March 26, 2026 11:02
@rickwu666666 rickwu666666 force-pushed the add-download-codec-test-files branch 5 times, most recently from d4fea75 to 22a07cc Compare March 27, 2026 01:39
@rickwu666666 rickwu666666 force-pushed the add-download-codec-test-files branch 2 times, most recently from 201d209 to 8238731 Compare March 27, 2026 03:13
@rickwu666666 rickwu666666 force-pushed the add-download-codec-test-files branch from 8238731 to 0cc291f Compare March 27, 2026 03:16
@rickwu666666 rickwu666666 marked this pull request as ready for review March 27, 2026 04:25
@Hook25 Hook25 added the ce-oem The PR only contains to the ce-oem provider under the contrib area label Apr 14, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.19%. Comparing base (4f622b8) to head (0cc291f).
⚠️ Report is 28 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2429   +/-   ##
=======================================
  Coverage   58.19%   58.19%           
=======================================
  Files         475      475           
  Lines       47819    47819           
  Branches     8509     8509           
=======================================
  Hits        27828    27828           
  Misses      19106    19106           
  Partials      885      885           

☔ 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

ce-oem The PR only contains to the ce-oem provider under the contrib area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants