microsoft / microsoft/lisa

Add trial count in CheckInstallLockUbuntu

Open
#663 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:ok_hand: Approved 🆘 Help Wanted
Dominant language
Python
Stars
333
Forks
250
Avg merge
3d 20h
Merged PRs (30d)
20

Description

CheckInstallLockUbuntu is recursive function call and potentially has a risk of infinite loop if apt.lock is not removed.
It is nice to have counter after converting to non-recursive.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the CheckInstallLockUbuntu function and inspect how it recurses while apt.lock remains present. Define a bounded trial count and convert the recursive flow as described, then verify that the lock-checking path stops after the configured number of trials.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
operating-systems, testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.