Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • Kea Kea
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 573
    • Issues 573
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 55
    • Merge requests 55
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • KeaKea
  • Merge requests
  • !1899

Resolve "racing commands in hammer prepare-system"

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Andrei Pavel requested to merge 2696-racing-commands-in-hammer-prepare-system into master Jan 23, 2023
  • Overview 5
  • Commits 3
  • Pipelines 0
  • Changes 1

Closes #2696 (closed).

  • a2ff7b1b hammer.py: unrelated fix for libsysrepo.so name

  • 488ccfac hammer.py: replace ~ with os.environ['HOME']

    On rare occasion, the previously-used execute() would return empty output, which would cause the path to change, often resulting in a 'no such file or directory' error.

  • 48c1b97b hammer.py: check Popen.poll() at the end

    There was a wrong assumption that the first call to Popen.poll() is always None. This is not the case when the process is fast enough to finish before it gets polled, in which case it is not None, but it is the return code instead. This caused some executes to have empty output.

The last commit is enough. The second commit is not necessary to fix the issue, but is it a good addition?

  • https://jenkins.aws.isc.org/view/Kea-manual/job/kea-manual/job/ut-extended/179/ - this one froze, it might be due to changes in this MR, but the output cannot be seen because of jenkins issue
  • https://jenkins.aws.isc.org/view/Kea-manual/job/kea-manual/job/ut-extended/180/ - tried again
Edited Jan 26, 2023 by Andrei Pavel
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 2696-racing-commands-in-hammer-prepare-system