Skip to content

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

Merged
rickwu666666 merged 5 commits into
mainfrom
add-download-codec-test-files
May 15, 2026
Merged

Implement context manager to handle codec test file download an deletion (BugFix)#2429
rickwu666666 merged 5 commits into
mainfrom
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.

Copy link
Copy Markdown
Contributor

@baconYao baconYao left a comment

Choose a reason for hiding this comment

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

It's a good way to tackle test files, but I have some questions.

Comment thread contrib/checkbox-ce-oem/checkbox-provider-ce-oem/tox.ini
@rickwu666666 rickwu666666 requested a review from baconYao May 5, 2026 06:31
Copy link
Copy Markdown
Contributor

@baconYao baconYao left a comment

Choose a reason for hiding this comment

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

After checking with @rickwu666666, there's no concern from me. LGTM

@rickwu666666 rickwu666666 removed the request for review from a team May 5, 2026 06:33
@rickwu666666 rickwu666666 requested a review from baconYao May 5, 2026 06:47
baconYao
baconYao previously approved these changes May 6, 2026
Copy link
Copy Markdown
Contributor

@baconYao baconYao left a comment

Choose a reason for hiding this comment

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

LGTM

@rickwu666666
Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

Co-authored-by: rickwu666666 <98441647+rickwu666666@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented May 14, 2026

@copilot resolve the merge conflicts in this pull request

Resolved by merging latest origin/main into this PR branch and fixing the two conflict blocks in the ce-oem GStreamer scripts. Commit: c7f98c9.

@rickwu666666 rickwu666666 requested a review from baconYao May 14, 2026 09:04
Copy link
Copy Markdown
Contributor

@baconYao baconYao left a comment

Choose a reason for hiding this comment

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

LGTM

@rickwu666666 rickwu666666 merged commit fe4a50c into main May 15, 2026
19 checks passed
@rickwu666666 rickwu666666 deleted the add-download-codec-test-files branch May 15, 2026 08:01
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.

4 participants