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

Cog memory leaks #421

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open

Cog memory leaks #421

wants to merge 8 commits into from

Conversation

PLangowski
Copy link
Contributor

No description provided.

@PLangowski PLangowski force-pushed the cog-memleaks branch 3 times, most recently from 5073f96 to 54744e8 Compare August 6, 2024 14:37
@PLangowski PLangowski force-pushed the cog-memleaks branch 3 times, most recently from da7cb2c to 076a356 Compare August 14, 2024 13:09
@PLangowski PLangowski force-pushed the cog-memleaks branch 2 times, most recently from 36bb8a9 to 39fcce8 Compare August 20, 2024 10:06
@PLangowski PLangowski changed the title wip: cog memory leaks Cog memory leaks Aug 20, 2024
@PLangowski PLangowski requested a review from tym2k1 August 20, 2024 10:08
@PLangowski PLangowski changed the title Cog memory leaks wip: Cog memory leaks Aug 22, 2024
@PLangowski PLangowski changed the title wip: Cog memory leaks Cog memory leaks Aug 26, 2024
assessment/cog-memory-leaks.robot Outdated Show resolved Hide resolved
Comment on lines 24 to 25
# Before the tests are executed the platform must be booted into Linux and have
# Weston running in the background. The user should be logged in as root.
Copy link
Member

Choose a reason for hiding this comment

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

@PLangowski, does the required state is achieved using one of the keywords? If not, this can be implemented as a "user input pause", introducing chosen keyword from Dialog library: https://robotframework.org/robotframework/latest/libraries/Dialogs.html#library-documentation-top

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@PLangowski PLangowski Sep 12, 2024

Choose a reason for hiding this comment

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

Note that some Python binaries don't have support for tkinter, which is used here. In that case tkinter needs to be installed using a package manager. I tested it with homebrew, not sure about other managers.
We should probably say something about this in the README.

Copy link
Member

Choose a reason for hiding this comment

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

@PLangowski, why should we rely on manual steps if we can easily automate all steps/commands used within Pause Execution keywords? Some are even ready to use, like booting and logging to Linux. Use our keywords database, where you can use search-bar for your convenience: https://dasharo.github.io/open-source-firmware-validation/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Booting to Linux requires Dasharo fw and logging in requires a password for the user, which is not the case on my DUT. I was, however, able to automate the other steps. e4bbd9c

Copy link
Member

Choose a reason for hiding this comment

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

@PLangowski I have added an issue to get back to that in the future: #516

Could you run the test and confirm whether the code with recent changes runs without errors?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@artur-rs I have tested it and it works

assessment/cog-memory-leaks.robot Outdated Show resolved Hide resolved
assessment/cog-memory-leaks.robot Outdated Show resolved Hide resolved
assessment/cog-memory-leaks.robot Outdated Show resolved Hide resolved
assessment/cog-memory-leaks.robot Outdated Show resolved Hide resolved
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
… steps

Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
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