Simplify re-running on repos that failed
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by tracing how the CLI currently handles --repos and reports repositories that fail to update, then review how command-line options are parsed. Done means users can write failed repositories in a format accepted by --repos, review or edit that file, and rerun with --repos and --failed-repo-output-file as described.
Written by the indexing model from the issue text.
Description
Describe the solution you'd like
Optionally write all the failed to update repos to a .txt file in the format that git-xargs --repos accepts.
Describe alternatives you've considered
In the process of updating about 2500 repos I ran into multiple errors and had to re-run git-xargs multiple times, and the process looked like this:
- run git-xargs redirecting stdout / stderr to a file
- copy the tables following text like "Repos whose initial Pull Request failed to be created due to GitHub rate limits" or "Repos that were unable to be cloned to the local filesystem" etc. to a txt file
- run a vim macro to remove the table formatting (e.g.
------) so that it is in a format thatgit-xargs --reposcan accept - re-run git-xargs with
--reposarg pointing to that manually created file, and repeat steps 1-4 until all repos successfully processed or intentionally skipped
Ideally there wouldn't be any errors, but with so many repos that might be impractical, and the errors could also be user-error based on the command passed to git-xargs. A more efficient user experience might be the following:
a) run git-xargs redirecting stdout / stderr to a file and the option --failed-repo-output-file /tmp/failed_to_update_repos.txt
b) review stdout / stderr and remove any repos from /tmp/failed_to_update_repos.txt that you intentionally don't want to retry
c) run git-xargs with --repos /tmp/failed_to_update_repos.txt and --failed-repo-output-file /tmp/failed_to_update_repos2.txt etc. (and it might be good to support --repos and --failed-repo-output-file pointing to the same file)
- Dominant language
- Go
- Stars
- 1.1k
- Forks
- 75
- Avg merge
- 22h 5m
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from gruntwork-io/git-xargs
-
Able to change commit message depending on repo?May be free again @ZachGoldberg claimed this 429 days ago, and no pull request is open. Openenhancement
gruntwork-io/git-xargs#175 · 1 assignee ·
-
provide an environment variable with the temp directory namePossibly taken @jeff350 claimed this 1025 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
gruntwork-io/git-xargs#146 · 3 comments · 1 reaction ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 38/100
gruntwork-io/git-xargs#145 · 1 comment ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
gruntwork-io/git-xargs#144 · 4 reactions ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
gruntwork-io/git-xargs#143 ·
All issues in gruntwork-io/git-xargs
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
seriousm4x/UpSnap#1786 ·
-
enhancement security
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug feedback ui/ux
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
peasant-labs/peasant#1307 ·
Maintainers usually reply within 1 day