Skip to content

toolsHCK: remove UnloadPlaylist call#76

Merged
kostyanf14 merged 1 commit into
HCK-CI:masterfrom
elizashurov:fix/remove-unload-playlist
May 5, 2026
Merged

toolsHCK: remove UnloadPlaylist call#76
kostyanf14 merged 1 commit into
HCK-CI:masterfrom
elizashurov:fix/remove-unload-playlist

Conversation

@elizashurov
Copy link
Copy Markdown
Contributor

Remove the UnloadPlaylist call as only one playlist is loaded per run, making it unnecessary.

Remove the UnloadPlaylist call as only one playlist is loaded per run,
making it unnecessary.

Signed-off-by: Elizabeth Ashurov <eashurov@redhat.com>
@elizashurov elizashurov requested a review from kostyanf14 May 5, 2026 10:54
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes the playlist unloading logic from the createprojectpackage function in tools/toolsHCK.ps1. Feedback suggests that removing this cleanup step could lead to persistent state issues in the HLK database, causing subsequent commands to return unexpectedly filtered results when the script is used in a long-running server context.

I am having trouble creating individual review comments. Click here to see my feedback.

tools/toolsHCK.ps1 (2282-2290)

medium

Removing the UnloadPlaylist call introduces persistent state changes to the project in the HLK database. Since toolsHCK.ps1 can operate as a long-running server (see the while($true) loop at line 2457), any playlist loaded during a createprojectpackage call will remain active for that project. This means subsequent commands on the same project—such as listtests or another createprojectpackage without a playlist—will unexpectedly return filtered results. If the goal is to ensure each command starts with a clean project state, this cleanup logic should be retained.

@elizashurov
Copy link
Copy Markdown
Contributor Author

Resolves: HCK-CI/AutoHCK/issues/83

@kostyanf14
Copy link
Copy Markdown
Contributor

In general gemini correct, but in our case we can go with this

@kostyanf14 kostyanf14 merged commit b438023 into HCK-CI:master May 5, 2026
1 check 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.

2 participants