Skip to content

Draft: Fix/pre encrypted ota test partial download#671

Open
AdityaHPatwardhan wants to merge 6 commits intoespressif:masterfrom
AdityaHPatwardhan:fix/pre_encrypted_ota_test_partial_download
Open

Draft: Fix/pre encrypted ota test partial download#671
AdityaHPatwardhan wants to merge 6 commits intoespressif:masterfrom
AdityaHPatwardhan:fix/pre_encrypted_ota_test_partial_download

Conversation

@AdityaHPatwardhan
Copy link
Collaborator

Checklist

  • Component contains License
  • Component contains README.md
  • Component contains idf_component.yml file with url field defined
  • Component was added to upload job
  • Component was added to build job
  • Optional: Component contains unit tests
  • CI passing

Change description

Please describe your change here

@CLAassistant
Copy link

CLAassistant commented Jan 25, 2026

CLA assistant check
All committers have signed the CLA.

@AdityaHPatwardhan AdityaHPatwardhan changed the title Fix/pre encrypted ota test partial download Draft: Fix/pre encrypted ota test partial download Jan 25, 2026
@AdityaHPatwardhan AdityaHPatwardhan force-pushed the fix/pre_encrypted_ota_test_partial_download branch from afdbfe3 to 627501f Compare January 25, 2026 15:44
@AdityaHPatwardhan AdityaHPatwardhan requested review from hfudev and removed request for hfudev January 25, 2026 15:46
hrushikesh430 and others added 4 commits January 28, 2026 07:13
The config fixture is provided by idf-ci and is needed when running
pytest, not during the build phase. Moved idf-ci installation from
the build job to run-target and run-target-linux jobs where pytest
actually executes.
Add a local config fixture to avoid dependency on idf-ci package
during pytest collection. This allows tests to be collected on
environments where idf-ci cannot be installed (e.g., Python 3.14).
Removed unused imports FlashFile and IdfSerial which require esptool.
This allows pytest to collect tests on Linux where esptool is not installed.
@AdityaHPatwardhan AdityaHPatwardhan force-pushed the fix/pre_encrypted_ota_test_partial_download branch 2 times, most recently from 1241784 to 53aa110 Compare January 28, 2026 03:20
…test.py

The config fixture is provided by idf-ci, so it needs to be installed
in both run-target and run-target-linux jobs. The local conftest.py
was redundant and could cause conflicts with the idf-ci plugin.
…atibility

The run-target-linux job uses Python 3.14 which is not supported by idf-ci
(only supports Python 3.7-3.13). Without idf-ci, the 'config' fixture used
by the parametrized test is not available, causing pytest collection to fail.

This adds a local conftest.py with a 'config' fixture that allows pytest
collection to succeed on environments without idf-ci. When idf-ci is available
(like in run-target job with Python 3.11), its IdfPytestPlugin provides the
same fixture with additional features.
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