Skip to content

release-notes (and release-sdk) don't check the remotes when reusing an existing temp dir for repos #3444

Closed
@jeremyrickard

Description

@jeremyrickard

What happened:

When running release-notes with start-rev and end-rev provided, it was observed that the wrong repo was being cloned/updated. The tooling was using kubernetes/kubernetes instead kubernetes-sigs/promo-tools. This appears to be happening because there is an existing repo clone in the expected temp directory, however it's for another repository (i.e. k/k). The cloneOrOpenRepo function in release-sdk doesn't ensure that the repoPath given is one of the remotes.

Slack Thread For Reference

What you expected to happen:

release-notes either provides a descriptive error and directions to clean up the temp dir or it clones to a new temp dir.

How to reproduce it (as minimally and precisely as possible):

Run 'release-notes' with no temp directory on one project. Then run it again on a second project (i.e. it would have a different repo path).

Anything else we need to know?:

Environment:

  • Cloud provider or hardware configuration:
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/release-engIssues or PRs related to the Release Engineering subprojectkind/bugCategorizes issue or PR as related to a bug.needs-prioritysig/releaseCategorizes an issue or PR as relevant to SIG Release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions