mitodl / mitodl/release-script

init_working_dir should reuse cloned git repos for efficiency

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

Nobody has claimed this yet.

Tech Debt
Dominant language
Python
Stars
16
Forks
8
Avg merge
11h 47m
Merged PRs (30d)
2

Description

Currently init_working_dir will git clone each time it is used, which is frequently. Instead, we should have some known directory (/tmp/doof/repo-name-here for example) and:

  • on the first call of init_working_dir clone into that directory
  • on any future calls, clear away any changes in the git repo including commits made and fetch new changes

Contributor guide

No contributing guide indexed for this repository

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 init_working_dir entry point and inspect how it is called for repository setup. Verify the current clone behavior first, then define the reuse flow described in the issue: clone on the first call, clear local changes and commits on later calls, and fetch new changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops, release
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.