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

local cache for port-target-cache between session (RDT-501) #221

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

horw
Copy link
Collaborator

@horw horw commented Jul 18, 2023

Implement local cache for port-target-cache between session with use shelve.
Change function port_target_cache to yield fixtures type.
closes #182

Copy link
Member

@hfudev hfudev left a comment

Choose a reason for hiding this comment

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

Thanks for your PR. Overall LGTM.

Instead of upload the local cache every time we run set_port_target_cache or drop_port_target_cache, we may implement init and close for Meta instances. Then we will only load/dump cache once per session.

Besides, please cleanup your commit history a bit. We're using the commit messages to generate the changelog. so it's quite important.

For the PR title, you may write a short summary. Inside the PR description (the first comment), you may add closes #xx. The issue will be closed automatically after this PR is merged.

pytest-embedded/pytest_embedded/utils.py Outdated Show resolved Hide resolved
pytest-embedded/pytest_embedded/utils.py Outdated Show resolved Hide resolved
@horw horw force-pushed the feat/issue_182 branch 3 times, most recently from 9a709a9 to 7739198 Compare July 19, 2023 03:30
@horw horw changed the title Feat/issue 182 port-target-cache between session caching Jul 19, 2023
@horw horw changed the title port-target-cache between session caching local cache for port-target-cache between session Jul 19, 2023
@horw horw requested a review from hfudev July 19, 2023 03:44
Copy link
Member

@hfudev hfudev left a comment

Choose a reason for hiding this comment

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

LGTM. Could you help add a test to check if the local cache works? You may refer to test_detect_port_with_cache for an example

pytest-embedded/pytest_embedded/plugin.py Outdated Show resolved Hide resolved
pytest-embedded/tests/test_base.py Outdated Show resolved Hide resolved
@hfudev
Copy link
Member

hfudev commented Jul 19, 2023

oh, and one last comment, please follow the contributions guide. The pre-commit check is failing

@github-actions github-actions bot changed the title local cache for port-target-cache between session local cache for port-target-cache between session (RDT-501) Jul 19, 2023
@horw horw requested a review from hfudev July 19, 2023 09:22
@hfudev hfudev merged commit ea7157f into espressif:main Jul 20, 2023
5 checks passed
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.

Local Cache in Temp Folder for port-target-cache Between Sessions (RDT-356)
2 participants