From: Danh Doan <email@example.com> To: Derrick Stolee <firstname.lastname@example.org> Cc: Junio C Hamano <email@example.com>, Derrick Stolee via GitGitGadget <firstname.lastname@example.org>, email@example.com, firstname.lastname@example.org, email@example.com, Derrick Stolee <firstname.lastname@example.org> Subject: Re: [PATCH 00/15] [RFC] Maintenance jobs and job runner Date: Tue, 7 Apr 2020 21:26:47 +0700 [thread overview] Message-ID: <20200407142647.GB1963@danh.dev> (raw) In-Reply-To: <email@example.com> On 2020-04-07 06:59:08-0400, Derrick Stolee <firstname.lastname@example.org> wrote: > On 4/6/2020 8:50 PM, Danh Doan wrote: > > On 2020-04-03 20:16:21-0400, Derrick Stolee <email@example.com> wrote: > >> On 4/3/2020 5:40 PM, Junio C Hamano wrote: > >>> "Derrick Stolee via GitGitGadget" <firstname.lastname@example.org> writes: > >>> > >>>> * git run-job <job-name>: This builtin will run a single instance of a > >>>> maintenance job. > >>>> > >>>> * git job-runner [--repo=<path>]: This builtin will run an infinite loop > >>>> that executes git run-job as a subcommand. > >>> > >>> What does this have to do with "git", though? IOW, why does this > >>> have to be part of Git, so that those who would benefit from having > >>> a mechanism that makes it easy to run regular maintenance tasks but > >>> are not Git users (or those that want to do such maintenance tasks > >>> that are not necessarily tied to "git") must use "git" to do so? > > > > I also agree with Junio, > > I don't think Git should be responsible to be a scheduler. > > It's the job of either tranditional crontab, at on *nix, or scheduler > > on Windows. > > > >> That's a reasonable reaction. The short version of my reasoning is that > >> many many people _use_ Git but are not Git experts. While a Git expert > >> could find the right set of commands to run and at what frequency to > >> keep their repo clean, most users do not want to spend time learning > >> these commands. It's also worth our time as contributors to select what > > > > And now, people will need to learn _both_ Git existing maintainance > > command, and new scheduler (Do I understand it right?, I haven't go > > through all patches) > > The point is that they would not need to learn the existing commands. > They could accept the community's "best practices" by running the > simple command to start background maintenance. We could provide some "best practices" by an FAQ. People can refer to it for "best practices" and run their favourite choice of scheduler. > In an "enterprise" environment, the users would not even need to learn > the command in the first place, because the engineering tools team > could configure the maintenance tools using the necessary setup scripts > to built the repo. In that "enterprise" environment, if the engineering tools team could configure the maintainance tools using the command that introduced together with this series, that very engineering tools team could configure the scheduler to run required Git command, or create their own wrappers. In such "enterprise" environment, most of computers' software set are configured to be installed, the engineering tools team know which software're installed in which system, they should know which set of scheduler should be run, it should be simple for them to configure their system. > > Yes, it could be a setup it once and forget, but, > > if there's a problem with their local repo, they will scratch > > their head to understand what wrong with them. > > > > It's easier to destroy their repo, and it's harder to know what > > operation is running in their computer. > > That's why we need to be careful. Luckily, these steps have been > tested in the wild for over a year with great success (as part of > VFS for Git). No offence but I find this quote could be applied: There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. - Tony Hoare. Adding this set of commands to Git gonna made Git over-complicated, IMHO. -- Danh
next prev parent reply other threads:[~2020-04-07 14:26 UTC|newest] Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-04-03 20:47 Derrick Stolee via GitGitGadget 2020-04-03 20:48 ` [PATCH 01/15] run-job: create barebones builtin Derrick Stolee via GitGitGadget 2020-04-05 15:10 ` Phillip Wood 2020-04-05 19:21 ` Junio C Hamano 2020-04-06 14:42 ` Derrick Stolee 2020-04-07 0:58 ` Danh Doan 2020-04-07 10:54 ` Derrick Stolee 2020-04-07 14:16 ` Danh Doan 2020-04-07 14:30 ` Johannes Schindelin 2020-04-03 20:48 ` [PATCH 02/15] run-job: implement commit-graph job Derrick Stolee via GitGitGadget 2020-05-20 19:08 ` Josh Steadmon 2020-04-03 20:48 ` [PATCH 03/15] run-job: implement fetch job Derrick Stolee via GitGitGadget 2020-04-05 15:14 ` Phillip Wood 2020-04-06 12:48 ` Derrick Stolee 2020-04-05 20:28 ` Junio C Hamano 2020-04-06 12:46 ` Derrick Stolee 2020-05-20 19:08 ` Josh Steadmon 2020-04-03 20:48 ` [PATCH 04/15] run-job: implement loose-objects job Derrick Stolee via GitGitGadget 2020-04-05 20:33 ` Junio C Hamano 2020-04-03 20:48 ` [PATCH 05/15] run-job: implement pack-files job Derrick Stolee via GitGitGadget 2020-05-27 22:17 ` Josh Steadmon 2020-04-03 20:48 ` [PATCH 06/15] run-job: auto-size or use custom pack-files batch Derrick Stolee via GitGitGadget 2020-04-03 20:48 ` [PATCH 07/15] config: add job.pack-files.batchSize option Derrick Stolee via GitGitGadget 2020-04-03 20:48 ` [PATCH 08/15] job-runner: create builtin for job loop Derrick Stolee via GitGitGadget 2020-04-03 20:48 ` [PATCH 09/15] job-runner: load repos from config by default Derrick Stolee via GitGitGadget 2020-04-05 15:18 ` Phillip Wood 2020-04-06 12:49 ` Derrick Stolee 2020-04-05 15:41 ` Phillip Wood 2020-04-06 12:57 ` Derrick Stolee 2020-04-03 20:48 ` [PATCH 10/15] job-runner: use config to limit job frequency Derrick Stolee via GitGitGadget 2020-04-05 15:24 ` Phillip Wood 2020-04-03 20:48 ` [PATCH 11/15] job-runner: use config for loop interval Derrick Stolee via GitGitGadget 2020-04-03 20:48 ` [PATCH 12/15] job-runner: add --interval=<span> option Derrick Stolee via GitGitGadget 2020-04-03 20:48 ` [PATCH 13/15] job-runner: skip a job if job.<job-name>.enabled is false Derrick Stolee via GitGitGadget 2020-04-03 20:48 ` [PATCH 14/15] job-runner: add --daemonize option Derrick Stolee via GitGitGadget 2020-04-03 20:48 ` [PATCH 15/15] runjob: customize the loose-objects batch size Derrick Stolee via GitGitGadget 2020-04-03 21:40 ` [PATCH 00/15] [RFC] Maintenance jobs and job runner Junio C Hamano 2020-04-04 0:16 ` Derrick Stolee 2020-04-07 0:50 ` Danh Doan 2020-04-07 10:59 ` Derrick Stolee 2020-04-07 14:26 ` Danh Doan [this message] 2020-04-07 14:43 ` Johannes Schindelin 2020-04-07 1:48 ` brian m. carlson 2020-04-07 20:08 ` Junio C Hamano 2020-04-07 22:23 ` Johannes Schindelin 2020-04-08 0:01 ` brian m. carlson 2020-05-27 22:39 ` Josh Steadmon 2020-05-28 0:47 ` Junio C Hamano 2020-05-27 21:52 ` Johannes Schindelin 2020-05-28 14:48 ` Junio C Hamano 2020-05-28 14:50 ` Jonathan Nieder 2020-05-28 14:57 ` Junio C Hamano 2020-05-28 15:03 ` Jonathan Nieder 2020-05-28 15:30 ` Derrick Stolee 2020-05-28 4:39 ` Johannes Schindelin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200407142647.GB1963@danh.dev \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --subject='Re: [PATCH 00/15] [RFC] Maintenance jobs and job runner' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).