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

fix(spi_nand_flash): add dhara to public dependencies (+minor changes) #391

Merged
merged 4 commits into from
Oct 2, 2024

Conversation

igrr
Copy link
Member

@igrr igrr commented Sep 30, 2024

  • add dhara to public requirements

    Since 892d994, spi_nand_flash.h includes dhara/map.h, so dhara should be a public dependency of spi_nand_flash.

    Other changes:

    • move vfs to private requirements (it didn't have to be public)
    • depend specifically on esp_driver_spi instead of driver when building for IDF >=5.3
  • fix memory leaks in test (free temporary buffers) and raise leak threshold to not detect esp_intr_alloc lazy allocation as a leak

  • add read/write performance output to the test case

  • remove unused sbom_dhara.yml file from spi_nand_flash component

  • version changed from 0.3.1 to 0.4.0 since removing vfs from the public requirements is technically a breaking change

Copy link

github-actions bot commented Sep 30, 2024

Test Results

 0 tests   0 ✅  11s ⏱️
10 suites  0 💤
10 files    0 ❌

Results for commit a16dad8.

♻️ This comment has been updated with latest results.

@igrr igrr force-pushed the bugfix/spi_nand_flash_dhara_dep branch from 4a6dd0c to 9845d04 Compare September 30, 2024 17:20
@igrr
Copy link
Member Author

igrr commented Oct 1, 2024

Failing tests are due to the CI workflow refactoring (#381). When the modified component doesn't have any pytest tests, pytest exits with exit code 5 (no tests found). I'll open another PR to fix this.

Copy link
Collaborator

@RathiSonika RathiSonika left a comment

Choose a reason for hiding this comment

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

All the changes look good to me. Just one minor adjustment is needed for the test case. Thank you for the updates!

igrr and others added 4 commits October 2, 2024 15:31
Since 892d994, spi_nand_flash.h
includes dhara/map.h, so dhara should be a public dependency of
spi_nand_flash.

Other changes:
- move vfs to private requirements (it didn't have to be public)
- depend specifically on esp_driver_spi when building for IDF >=5.3
@igrr igrr force-pushed the bugfix/spi_nand_flash_dhara_dep branch from f10a11f to a16dad8 Compare October 2, 2024 13:31
@igrr igrr merged commit 116af88 into master Oct 2, 2024
44 checks passed
@igrr igrr deleted the bugfix/spi_nand_flash_dhara_dep branch October 2, 2024 14:05
@igrr
Copy link
Member Author

igrr commented Oct 2, 2024

@RathiSonika Thanks for the review and for spotting the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants