Re: [PATCH v2] fetch-pack: write fetched refs to .promisor

2019-10-15 Thread Josh Steadmon
On 2019.10.14 17:12, Jonathan Tan wrote: > The specification of promisor packfiles (in partial-clone.txt) states > that the .promisor files that accompany packfiles do not matter (just > like .keep files), so whenever a packfile is fetched from the promisor > remote, Git has been writing empty .pro

Re: [PATCH] fetch-pack: write fetched refs to .promisor

2019-10-14 Thread Josh Steadmon
I have a few questions below, but they're probably due to lack of a full understanding on my part of how packfiles are managed. On 2019.08.26 14:47, Jonathan Tan wrote: > The specification of promisor packfiles (in partial-clone.txt) states > that the .promisor files that accompany packfiles do no

Re: [PATCH 0/2] add trace2 regions to fetch & push

2019-10-07 Thread Josh Steadmon
On 2019.10.07 14:46, Jonathan Tan wrote: > > We'd like to collect better statistics about where the time is spent in > > fetches and pushes so that we can hopefully identify some areas for > > future optimization. So let's add some trace2 regions around some of the > > fetch/push phases so we can b

[PATCH v2 0/2] add trace2 regions to fetch & push

2019-10-07 Thread Josh Steadmon
* Use the repository struct argument in transport_push(), rather than the global the_repository. Josh Steadmon (2): fetch: add trace2 instrumentation push: add trace2 instrumentation builtin/fetch.c | 22 +++--- builtin/push.c | 2 ++ fetch-pack.c| 13 - t

[PATCH v2 1/2] fetch: add trace2 instrumentation

2019-10-07 Thread Josh Steadmon
Add trace2 regions to fetch-pack.c and builtins/fetch.c to better track time spent in the various phases of a fetch: * listing refs * negotiation for protocol versions v0-v2 * fetching refs * consuming refs Signed-off-by: Josh Steadmon --- builtin/fetch.c | 22 +++--- fetch

[PATCH v2 2/2] push: add trace2 instrumentation

2019-10-07 Thread Josh Steadmon
Add trace2 regions in transport.c and builtin/push.c to better track time spent in various phases of pushing: * Listing refs * Checking submodules * Pushing submodules * Pushing refs Signed-off-by: Josh Steadmon --- builtin/push.c | 2 ++ transport.c| 14 -- 2 files changed

[PATCH v5 2/4] docs: clarify trace2 version invariants

2019-10-04 Thread Josh Steadmon
Make it explicit that we always want trace2 "version" events to be the first event of any trace session. Also list the changes that would or would not cause the EVENT format version field to be incremented. Change-Id: I20b9ac1fa0786bcaad7e290cc805cbf45b323021 Signed-off-by: Jos

[PATCH v5 0/4] trace2: discard new traces if the target directory contains too many files

2019-10-04 Thread Josh Steadmon
Changes since V4: * Avoid the use of the non-specific term "overload" in code, trace output, commit messages, and documentation. * Remove an unnecessary include that was breaking the Windows build. Josh Steadmon (4): docs: mention trace2 target-dir mode in git-config docs: clar

[PATCH v5 1/4] docs: mention trace2 target-dir mode in git-config

2019-10-04 Thread Josh Steadmon
62cfaa4500 Signed-off-by: Josh Steadmon --- Documentation/technical/api-trace2.txt | 7 +++ Documentation/trace2-target-values.txt | 4 +++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Documentation/technical/api-trace2.txt b/Documentation/technical/api-trace2.txt index

[PATCH v5 3/4] trace2: discard new traces if target directory has too many files

2019-10-04 Thread Josh Steadmon
Steadmon --- Documentation/config/trace2.txt | 6 +++ t/t0212-trace2-event.sh | 17 +++ trace2/tr2_dst.c| 84 + trace2/tr2_sysenv.c | 3 ++ trace2/tr2_sysenv.h | 2 + 5 files changed, 112 insertions(+) diff --git a

[PATCH v5 4/4] trace2: write discard message to sentinel files

2019-10-04 Thread Josh Steadmon
often the file count check triggers in practice. Bump up the event format version since we've added a new event type. Change-Id: I0953c1a891ad93585ddcd8e22575ec34c0ebe73c Signed-off-by: Josh Steadmon --- Documentation/technical/api-trace2.txt | 16 +++-- t/t0212-trace2-event.sh

Re: [PATCH v4 3/4] trace2: don't overload target directories

2019-10-04 Thread Josh Steadmon
On 2019.10.04 11:12, Johannes Schindelin wrote: > Hi Josh, > > On Thu, 3 Oct 2019, Josh Steadmon wrote: > > > [...] > > diff --git a/trace2/tr2_dst.c b/trace2/tr2_dst.c > > index 5dda0ca1cd..af3405f179 100644 > > --- a/trace2/tr2_dst.c > > +++ b/trace2/t

Re: [PATCH v4 3/4] trace2: don't overload target directories

2019-10-04 Thread Josh Steadmon
On 2019.10.04 09:25, Junio C Hamano wrote: > Josh Steadmon writes: > > > trace2 can write files into a target directory. With heavy usage, this > > directory can fill up with files, causing difficulty for > > trace-processing systems. > > Sorry for not mentioning t

[PATCH v4 1/4] docs: mention trace2 target-dir mode in git-config

2019-10-03 Thread Josh Steadmon
Move the description of trace2's target-directory behavior into the shared trace2-target-values file so that it is included in both the git-config and api-trace2 docs. Leave the SID discussion only in api-trace2 since it's a technical detail. Signed-off-by: Josh Steadmon --- Doc

[PATCH v4 3/4] trace2: don't overload target directories

2019-10-03 Thread Josh Steadmon
value for trace2.maxFiles is zero, which disables the overload check. The config can also be overridden with a new environment variable: GIT_TRACE2_MAX_FILES. Signed-off-by: Josh Steadmon --- Documentation/config/trace2.txt | 6 +++ t/t0212-trace2-event.sh | 17 +++ trace2

[PATCH v4 4/4] trace2: write overload message to sentinel files

2019-10-03 Thread Josh Steadmon
often the overload protection feature is triggered in practice. Bump up the event format version since we've added a new event type. Signed-off-by: Josh Steadmon --- Documentation/technical/api-trace2.txt | 15 ++-- t/t0212-trace2-event.sh| 4 ++- t

[PATCH v4 0/4] trace2: don't overload target directories

2019-10-03 Thread Josh Steadmon
vent comes after the version event. I am still incrementing the EVT and writing a new "overload" event, since you said in the last review that this approache seems best to you. But I am also happy to keep the EVT=1 and make "overload" a new field in the "version" ev

[PATCH v4 2/4] docs: clarify trace2 version invariants

2019-10-03 Thread Josh Steadmon
Make it explicit that we always want trace2 "version" events to be the first event of any trace session. Also list the changes that would or would not cause the EVENT format version field to be incremented. Signed-off-by: Josh Steadmon --- Documentation/technical/api-trace2.txt | 8 +

[PATCH 1/2] fetch: add trace2 instrumentation

2019-10-02 Thread Josh Steadmon
Add trace2 regions to fetch-pack.c and builtins/fetch.c to better track time spent in the various phases of a fetch: * listing refs * negotiation for protocol versions v0-v2 * fetching refs * consuming refs Signed-off-by: Josh Steadmon --- builtin/fetch.c | 22 +++--- fetch

[PATCH 0/2] add trace2 regions to fetch & push

2019-10-02 Thread Josh Steadmon
We'd like to collect better statistics about where the time is spent in fetches and pushes so that we can hopefully identify some areas for future optimization. So let's add some trace2 regions around some of the fetch/push phases so we can break down their timing. Josh Steadmon (2):

[PATCH 2/2] push: add trace2 instrumentation

2019-10-02 Thread Josh Steadmon
Add trace2 regions in transport.c and builtin/push.c to better track time spent in various phases of pushing: * Listing refs * Checking submodules * Pushing submodules * Pushing refs Signed-off-by: Josh Steadmon --- builtin/push.c | 2 ++ transport.c| 14 -- 2 files changed

Re: [RFC PATCH v3 3/3] trace2: write overload message to sentinel files

2019-09-19 Thread Josh Steadmon
On 2019.09.19 14:23, Jeff Hostetler wrote: > > > On 9/16/2019 2:20 PM, Josh Steadmon wrote: > > On 2019.09.16 10:11, Jeff Hostetler wrote: > > > > > > > > > On 9/16/2019 8:07 AM, Derrick Stolee wrote: > > > > On 9/13/2019 8:26 PM, Josh Ste

Re: [RFC PATCH v3 3/3] trace2: write overload message to sentinel files

2019-09-16 Thread Josh Steadmon
On 2019.09.16 10:11, Jeff Hostetler wrote: > > > On 9/16/2019 8:07 AM, Derrick Stolee wrote: > > On 9/13/2019 8:26 PM, Josh Steadmon wrote: > > > Add a new "overload" event type for trace2 event destinations. Write > > > this event into the s

Re: [RFC PATCH v3 3/3] trace2: write overload message to sentinel files

2019-09-16 Thread Josh Steadmon
On 2019.09.16 08:07, Derrick Stolee wrote: > On 9/13/2019 8:26 PM, Josh Steadmon wrote: > > Add a new "overload" event type for trace2 event destinations. Write > > this event into the sentinel file created by the trace2.maxFiles > > feature. Bump up the event for

[RFC PATCH v3 3/3] trace2: write overload message to sentinel files

2019-09-13 Thread Josh Steadmon
g how often the overload protection feature is triggered in practice. Signed-off-by: Josh Steadmon --- Documentation/technical/api-trace2.txt | 17 ++-- trace2/tr2_dst.c | 38 -- trace2/tr2_dst.h | 3 ++ trace2/

[RFC PATCH v3 0/3] trace2: don't overload target directories

2019-09-13 Thread Josh Steadmon
same time. * Removed some unnecessary sanity-checking in the test. * Fixed a coccicheck complaint about strbuf_addbuf. * Used hardcoded file modes to be consistent with the rest of the project. Josh Steadmon (3): docs: mention trace2 target-dir mode in git-config trace2: don't ov

[RFC PATCH v3 1/3] docs: mention trace2 target-dir mode in git-config

2019-09-13 Thread Josh Steadmon
Move the description of trace2's target-directory behavior into the shared trace2-target-values file so that it is included in both the git-config and api-trace2 docs. Leave the SID discussion only in api-trace2 since it's a technical detail. Signed-off-by: Josh Steadmon --- Doc

[RFC PATCH v3 2/3] trace2: don't overload target directories

2019-09-13 Thread Josh Steadmon
test to make sure that contention between multiple processes all writing to the same target directory does not become an issue. Signed-off-by: Josh Steadmon --- Documentation/config/trace2.txt | 6 +++ t/t0212-trace2-event.sh | 17 +++ trace2/tr2_dst.c| 86

Re: What's cooking in git.git (Sep 2019, #01; Sat, 7)

2019-09-10 Thread Josh Steadmon
On 2019.09.07 10:26, Junio C Hamano wrote: > * js/trace2-json-schema (2019-07-25) 3 commits > . ci: run trace2 schema validation in the CI suite > . trace2: add a schema validator for trace2 events > . trace2: add a JSON schema for trace2 events > > The JSON output produced by "trace2" subsyst

[PATCH v5 3/4] git-merge: honor pre-merge-commit hook

2019-08-07 Thread Josh Steadmon
ly have a merge to perform (by resetting the "side" branch to its original state). * reworded commit message ] Improved-by: Martin Ågren Signed-off-by: Michael J Gruber Signed-off-by: Martin Ågren Signed-off-by: Josh Steadmon --- Documentation/githooks.txt

[PATCH v5 2/4] merge: do no-verify like commit

2019-08-07 Thread Josh Steadmon
Signed-off-by: Michael J Gruber Signed-off-by: Josh Steadmon --- Documentation/git-merge.txt | 2 +- Documentation/merge-options.txt | 4 builtin/merge.c | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/git-merge.txt b/Document

[PATCH v5 0/4] pre-merge-commit hook

2019-08-07 Thread Josh Steadmon
the tests to follow the example set in patch 1/4. * Reworded commit messages to match with the current state of certain flags, which changed in between V1 and V2 of this series. Josh Steadmon (1): t7503: verify proper hook execution Michael J Gruber (3): merge: do no-verify like commit gi

[PATCH v5 4/4] merge: --no-verify to bypass pre-merge-commit hook

2019-08-07 Thread Josh Steadmon
utable hook * when testing that the merge hook did not run, make sure we actually have a merge to perform (by resetting the "side" branch to its original state). ] Improved-by: Martin Ågren Signed-off-by: Michael J Gruber Signed-off-by: Martin Ågren Signed-off-

[PATCH v5 1/4] t7503: verify proper hook execution

2019-08-07 Thread Josh Steadmon
setup inside a test_expect_success block. Improved-by: Martin Ågren Signed-off-by: Martin Ågren Signed-off-by: Josh Steadmon --- t/t7503-pre-commit-hook.sh | 157 + 1 file changed, 89 insertions(+), 68 deletions(-) diff --git a/t/t7503-pre-commit-hook.sh b/t/

Re: [PATCH v4 1/4] t7503: verify proper hook execution

2019-08-07 Thread Josh Steadmon
On 2019.08.06 11:14, Junio C Hamano wrote: > Josh Steadmon writes: > > > t7503 did not verify that the expected hooks actually ran during > > testing. Fix that by making the hook scripts write their $0 into a file > > so that we can compare actual execution vs. expected

[PATCH v4 1/4] t7503: verify proper hook execution

2019-08-05 Thread Josh Steadmon
setup inside a test_expect_success block. Improved-by: Martin Ågren Signed-off-by: Martin Ågren Signed-off-by: Josh Steadmon --- t/t7503-pre-commit-hook.sh | 157 + 1 file changed, 89 insertions(+), 68 deletions(-) diff --git a/t/t7503-pre-commit-hook.sh b/t/

[PATCH v4 2/4] merge: do no-verify like commit

2019-08-05 Thread Josh Steadmon
Signed-off-by: Michael J Gruber Signed-off-by: Josh Steadmon --- Documentation/git-merge.txt | 2 +- Documentation/merge-options.txt | 4 builtin/merge.c | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/git-merge.txt b/Document

[PATCH v4 3/4] git-merge: honor pre-merge-commit hook

2019-08-05 Thread Josh Steadmon
ly have a merge to perform (by resetting the "side" branch to its original state). * reworded commit message ] Improved-by: Martin Ågren Signed-off-by: Michael J Gruber Signed-off-by: Martin Ågren Signed-off-by: Josh Steadmon --- Documentation/githooks.txt

[PATCH v4 0/4] pre-merge-commit hook

2019-08-05 Thread Josh Steadmon
flags, which changed in between V1 and V2 of this series. Josh Steadmon (1): t7503: verify proper hook execution Michael J Gruber (3): merge: do no-verify like commit git-merge: honor pre-merge-commit hook merge: --no-verify to bypass pre-merge-commit hook Documentation/git-merge.txt

[PATCH v4 4/4] merge: --no-verify to bypass pre-merge-commit hook

2019-08-05 Thread Josh Steadmon
utable hook * when testing that the merge hook did not run, make sure we actually have a merge to perform (by resetting the "side" branch to its original state). ] Improved-by: Martin Ågren Signed-off-by: Michael J Gruber Signed-off-by: Martin Ågren Signed-off-

Re: [RFC PATCH v2 2/2] trace2: don't overload target directories

2019-08-05 Thread Josh Steadmon
On 2019.08.05 11:34, Jeff Hostetler wrote: > > > On 8/2/2019 6:02 PM, Josh Steadmon wrote: > > trace2 can write files into a target directory. With heavy usage, this > > directory can fill up with files, causing difficulty for > > trace-processing systems. > &

Re: [RFC PATCH v2 2/2] trace2: don't overload target directories

2019-08-05 Thread Josh Steadmon
On 2019.08.05 20:01, SZEDER Gábor wrote: > On Fri, Aug 02, 2019 at 03:02:35PM -0700, Josh Steadmon wrote: > > +test_expect_success "don't overload target directory" ' > > + mkdir trace_target_dir && > &g

Re: [PATCH v3 3/4] git-merge: honor pre-merge-commit hook

2019-08-02 Thread Josh Steadmon
On 2019.08.02 11:45, Martin Ågren wrote: > On Fri, 2 Aug 2019 at 00:20, Josh Steadmon wrote: > > > diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt > > index 82cd573776..7c4c994858 100644 > > --- a/Documentation/githooks.txt > > +++ b/Documentat

Re: [PATCH v3 0/4] pre-merge-commit hook

2019-08-02 Thread Josh Steadmon
On 2019.08.02 11:56, Martin Ågren wrote: > [Dropped cc-list the first time around. Apologies to those who receive > this twice...] > > On Fri, 2 Aug 2019 at 00:20, Josh Steadmon wrote: > > > > This series adds a new pre-merge-commit hook, similar in usage to > > pre

[RFC PATCH v2 2/2] trace2: don't overload target directories

2019-08-02 Thread Josh Steadmon
test to make sure that contention between multiple processes all writing to the same target directory does not become an issue. Signed-off-by: Josh Steadmon --- Documentation/config/trace2.txt | 6 +++ t/t0210-trace2-normal.sh| 19 trace2/tr2_dst.c| 86

[RFC PATCH v2 1/2] docs: mention trace2 target-dir mode in git-config

2019-08-02 Thread Josh Steadmon
Move the description of trace2's target-directory behavior into the shared trace2-target-values file so that it is included in both the git-config and api-trace2 docs. Leave the SID discussion only in api-trace2 since it's a technical detail. Signed-off-by: Josh Steadmon --- Doc

[RFC PATCH v2 0/2] trace2: don't overload target directories

2019-08-02 Thread Josh Steadmon
ves the file count threshold from a #define constant to a config option. * Renames the threshold override envvar to be consistent with other trace2 envvars. * Simplified the new test case in t0210. Josh Steadmon (2): docs: mention trace2 target-dir mode in git-config trace2: don't ove

Re: [PATCH 0/3] trace2: clean up formatting in perf target format

2019-08-01 Thread Josh Steadmon
On 2019.07.31 13:04, Jeff Hostetler via GitGitGadget wrote: > This patch series contains a few column alignment and whitespace fixes for > perf target format. This should make it a little easier to read. > > Jeff Hostetler (3): > trace2: cleanup column alignment in perf target format > trace2:

[PATCH v3 0/4] pre-merge-commit hook

2019-08-01 Thread Josh Steadmon
V2's patch 4/4) into patch 3/4. Modified the tests to follow the example set in patch 1/4. * Reworded commit messages to match with the current state of certain flags, which changed in between V1 and V2 of this series. Josh Steadmon (1): t7503: verify proper hook execution Michael J Gru

[PATCH v3 1/4] t7503: verify proper hook execution

2019-08-01 Thread Josh Steadmon
setup inside a test_expect_success block. Signed-off-by: Josh Steadmon --- t/t7503-pre-commit-hook.sh | 162 + 1 file changed, 94 insertions(+), 68 deletions(-) diff --git a/t/t7503-pre-commit-hook.sh b/t/t7503-pre-commit-hook.sh index 984889b39d..500bdd97c2 1

[PATCH v3 3/4] git-merge: honor pre-merge-commit hook

2019-08-01 Thread Josh Steadmon
o follow new pattern from this series' patch 1/4 * reworded commit message ] Signed-off-by: Michael J Gruber Signed-off-by: Josh Steadmon --- Documentation/githooks.txt| 7 +++ builtin/merge.c | 12 + ...-pre-commit-and-p

[PATCH v3 2/4] merge: do no-verify like commit

2019-08-01 Thread Josh Steadmon
uber Signed-off-by: Josh Steadmon --- Documentation/git-merge.txt | 2 +- Documentation/merge-options.txt | 4 builtin/merge.c | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/git-merge.txt b/Documentation/git-merge.txt index 01fd

[PATCH v3 4/4] merge: --no-verify to bypass pre-merge-commit hook

2019-08-01 Thread Josh Steadmon
g documentation to reflect new hook name * cleaned up trailing whitespace * squashed test changes from the original series' patch 4/4 * modified tests to follow pattern from this series' patch 1/4 ] Signed-off-by: Michael J Gruber Signed-off-by: Josh Steadmon --- Documentat

Re: [PATCH v3 0/3] Add a JSON Schema for trace2 events

2019-08-01 Thread Josh Steadmon
On 2019.07.26 15:03, Josh Steadmon wrote: [snip] > [ajv-cli] can validate the full 1.7M line trace output in just over a > minute. Moreover, it has helpful output when validation fails. So I > would be happy to re-implement this using ajv-cli. Unfortunately, ajv on Travis is much slowe

Re: [PATCH v2 4/4] t7503: add tests for pre-merge-hook

2019-07-31 Thread Josh Steadmon
On 2019.07.30 09:13, Martin Ågren wrote: > On Tue, 30 Jul 2019 at 01:43, Josh Steadmon wrote: > > > > On 2019.07.29 22:04, Martin Ågren wrote: > > > This script seems to me like if it passes 100%, we can be fairly sure > > > we're ok, but [...] > >

Re: [RFC PATCH] trace2: don't overload target directories

2019-07-30 Thread Josh Steadmon
On 2019.07.30 14:00, Jeff Hostetler wrote: > > > On 7/29/2019 6:20 PM, Josh Steadmon wrote: > > trace2 can write files into a target directory. With heavy usage, this > > directory can fill up with files, causing difficulty for > > trace-processing systems. > >

Re: [RFC PATCH] trace2: don't overload target directories

2019-07-30 Thread Josh Steadmon
On 2019.07.30 12:46, Jeff Hostetler wrote: [snip] > Also release sentinel_path ? > (And in both of the return statements below.) Thanks for the catch. Fixed in V2.

Re: [RFC PATCH] trace2: don't overload target directories

2019-07-30 Thread Josh Steadmon
On 2019.07.30 12:46, Jeff Hostetler wrote: > > > On 7/29/2019 6:20 PM, Josh Steadmon wrote: > > trace2 can write files into a target directory. With heavy usage, this > > directory can fill up with files, causing difficulty for > > trace-processing systems. > &g

Re: [RFC PATCH] trace2: don't overload target directories

2019-07-30 Thread Josh Steadmon
On 2019.07.30 09:29, Derrick Stolee wrote: > On 7/29/2019 6:20 PM, Josh Steadmon wrote: > > trace2 can write files into a target directory. With heavy usage, this > > directory can fill up with files, causing difficulty for > > trace-processing systems. > > > > Wh

Re: [PATCH v2 4/4] t7503: add tests for pre-merge-hook

2019-07-29 Thread Josh Steadmon
On 2019.07.29 22:04, Martin Ågren wrote: > On Fri, 19 Jul 2019 at 00:57, Josh Steadmon wrote: > > +test_expect_success '--no-verify with succeeding hook (merge)' ' > > + > > + git checkout side && > > + git merge --no-verify -m "

Re: [PATCH v2 0/4] pre-merge hook

2019-07-29 Thread Josh Steadmon
On 2019.07.29 22:29, Martin Ågren wrote: > On Fri, 19 Jul 2019 at 01:56, Josh Steadmon wrote: > > This series revives an old suggestion [...] to make merge honor > > pre-commit hook or a separate pre-merge hook. Since pre-commit does not > > receive any arguments (which th

Re: [PATCH v2 3/4] merge: --no-verify to bypass pre-merge hook

2019-07-29 Thread Josh Steadmon
On 2019.07.29 22:02, Martin Ågren wrote: > On Fri, 19 Jul 2019 at 00:57, Josh Steadmon wrote: > > From: Michael J Gruber > > > > Analogous to commit, introduce a '--no-verify' option which bypasses the > > pre-merge hook. The shorthand '-n' is take

Re: [PATCH v2 0/4] pre-merge hook

2019-07-29 Thread Josh Steadmon
On 2019.07.29 22:09, Martin Ågren wrote: > On Fri, 19 Jul 2019 at 01:56, Josh Steadmon wrote: > > * Martin's objection on 1/4 that the sample hook would always exit > > successfully is (I believe) incorrect. To test this, I ran > > "/bin/true && exec tes

[RFC PATCH] trace2: don't overload target directories

2019-07-29 Thread Josh Steadmon
trace2 output format). * Make the overload threshold (and the whole overload feature) configurable. Signed-off-by: Josh Steadmon --- t/t0210-trace2-normal.sh | 15 trace2/tr2_dst.c | 81 2 files changed, 96 insertions(+) diff --git a/t/t0210

Re: [PATCH v3 0/3] Add a JSON Schema for trace2 events

2019-07-26 Thread Josh Steadmon
On 2019.07.26 14:12, Johannes Schindelin wrote: > Hi, > > On Fri, 26 Jul 2019, SZEDER Gábor wrote: > > > On Wed, Jul 24, 2019 at 04:06:50PM -0700, Josh Steadmon wrote: > > > > > 3: acf3aebcaa ! 3: a07458b2e4 ci: run trace2 schema validation in the > > &

Re: [PATCH v3 0/3] Add a JSON Schema for trace2 events

2019-07-26 Thread Josh Steadmon
On 2019.07.25 09:14, Junio C Hamano wrote: > SZEDER Gábor writes: > > >> I would appreciate any feedback on better ways to integrate the > >> validator into the CI suite. > > > > How about adding a test script dedicated to JSON schema validation, > > which runs only as many git commands as needed

Re: [PATCH v3] documentation: add tutorial for revision walking

2019-07-24 Thread Josh Steadmon
On 2019.07.01 13:19, Emily Shaffer wrote: > Existing documentation on revision walks seems to be primarily intended > as a reference for those already familiar with the procedure. This > tutorial attempts to give an entry-level guide to a couple of bare-bones > revision walks so that new Git contri

[PATCH v3 3/3] ci: run trace2 schema validation in the CI suite

2019-07-24 Thread Josh Steadmon
Signed-off-by: Josh Steadmon --- ci/run-build-and-tests.sh | 6 ++ 1 file changed, 6 insertions(+) diff --git a/ci/run-build-and-tests.sh b/ci/run-build-and-tests.sh index cdd2913440..ec38bf379a 100755 --- a/ci/run-build-and-tests.sh +++ b/ci/run-build-and-tests.sh @@ -14,6 +14,8 @@ make

[PATCH v3 1/3] trace2: Add a JSON schema for trace2 events

2019-07-24 Thread Josh Steadmon
-schema/reference/combining.html#allof Signed-off-by: Josh Steadmon --- t/trace_schema_validator/README | 23 + t/trace_schema_validator/event_schema.json| 398 ++ t/trace_schema_validator/list_schema.json | 401 ++ .../strict_list_schema.json

[PATCH v3 0/3] Add a JSON Schema for trace2 events

2019-07-24 Thread Josh Steadmon
ropped the documenation fix, as it can be submitted separately from this series * added JSON-array versions of the schema (currently unused) * added the validation test to the CI suite Josh Steadmon (3): trace2: Add a JSON schema for trace2 events trace2: add a schema validator for trace2 e

[PATCH v3 2/3] trace2: add a schema validator for trace2 events

2019-07-24 Thread Josh Steadmon
-off-by: Josh Steadmon --- t/trace_schema_validator/.gitignore | 1 + t/trace_schema_validator/Makefile | 18 .../trace_schema_validator.go | 82 +++ 3 files changed, 101 insertions(+) create mode 100644 t/trace_schema_validator/.gitignore

Re: [RFC PATCH v2 2/3] trace2: add a schema validator for trace2 events

2019-07-24 Thread Josh Steadmon
Thanks for the review, replies are inline below. On 2019.07.11 15:35, Jakub Narebski wrote: > Josh Steadmon writes: > > > trace_schema_validator can be used to verify that trace2 event output > > conforms to the expectations set by the API documentation and codified > >

Re: [RFC PATCH v2 1/3] trace2: Add a JSON schema for trace2 events

2019-07-24 Thread Josh Steadmon
On 2019.07.10 20:32, Jakub Narebski wrote: > Josh Steadmon writes: > > > Define a JSON schema[1] that can be used to validate trace2 event > > objects. This can be used to add regression tests to verify that the > > event output format does not change unexpectedly. >

[PATCH v2 0/4] pre-merge hook

2019-07-18 Thread Josh Steadmon
(I'm resending this cover letter with fixed Message-Id so that threading @ public-inbox works properly. Sorry for the noise.) I would like to revive discussion on this series; I have addressed most of the review comments on the original series sent by Michael, with the following exceptions: * Mar

[PATCH v2 0/4] pre-merge hook

2019-07-18 Thread Josh Steadmon
I would like to revive discussion on this series; I have addressed most of the review comments on the original series sent by Michael, with the following exceptions: * Martin's objection on 1/4 that the sample hook would always exit successfully is (I believe) incorrect. To test this, I ran "/

[PATCH v2 4/4] t7503: add tests for pre-merge-hook

2019-07-18 Thread Josh Steadmon
ned-off-by: Josh Steadmon --- ...> t7503-pre-commit-and-pre-merge-hooks.sh} | 66 ++- 1 file changed, 65 insertions(+), 1 deletion(-) rename t/{t7503-pre-commit-hook.sh => t7503-pre-commit-and-pre-merge-hooks.sh} (67%) diff --git a/t/t7503-pre-commit-hook.sh b/t/t7503-pr

[PATCH v2 3/4] merge: --no-verify to bypass pre-merge hook

2019-07-18 Thread Josh Steadmon
commit to 2/4.] Signed-off-by: Michael J Gruber Signed-off-by: Josh Steadmon --- Documentation/githooks.txt | 2 +- builtin/merge.c| 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt index dcc6606d44..6a93478

[PATCH v2 1/4] git-merge: Honor pre-merge hook

2019-07-18 Thread Josh Steadmon
(or any other commit). [js: addressed review comments: * clarified that hook should write messages to stderr * only discard the index if the hook is actually present ] Signed-off-by: Michael J Gruber Signed-off-by: Josh Steadmon --- Documentation/githooks.txt| 7

[PATCH v2 2/4] merge: do no-verify like commit

2019-07-18 Thread Josh Steadmon
by: Michael J Gruber Signed-off-by: Josh Steadmon --- Documentation/git-merge.txt | 2 +- Documentation/merge-options.txt | 4 builtin/merge.c | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/git-merge.txt b/Documentation/git-merge.

[PATCH] submodule: plumb --filter to cloned submodules

2019-07-16 Thread Josh Steadmon
through git-submodule and git-submodule--helper. Signed-off-by: Josh Steadmon --- builtin/clone.c| 9 +++ builtin/submodule--helper.c| 41 +- git-submodule.sh | 17 - t/t5617-clone-submodules-remote.sh | 19

Re: [PATCH] documentation: add tutorial for revision walking

2019-07-12 Thread Josh Steadmon
On 2019.06.20 14:06, Emily Shaffer wrote: > On Wed, Jun 19, 2019 at 08:17:29AM -0700, Junio C Hamano wrote: > > Emily Shaffer writes: > > > > > Maybe there's a case for storing them as a set of patch files that are > > > revision-controlled somewhere within Documentation/? There was some > > > di

[PATCH] trace2: correct trace2 field name documentation

2019-07-09 Thread Josh Steadmon
Correct the api-trace2 documentation, which lists "signal" as an expected field for the signal event type, but which actually outputs "signo" as the field name. Signed-off-by: Josh Steadmon --- This patch has been split off from the "Add a JSON Schema for trace2 events&q

[RFC PATCH v2 2/3] trace2: add a schema validator for trace2 events

2019-07-09 Thread Josh Steadmon
-off-by: Josh Steadmon --- t/trace_schema_validator/.gitignore | 1 + t/trace_schema_validator/Makefile | 10 +++ .../trace_schema_validator.go | 78 +++ 3 files changed, 89 insertions(+) create mode 100644 t/trace_schema_validator/.gitignore

[RFC PATCH v2 3/3] ci: run trace2 schema validation in the CI suite

2019-07-09 Thread Josh Steadmon
Signed-off-by: Josh Steadmon --- ci/run-build-and-tests.sh | 5 + 1 file changed, 5 insertions(+) diff --git a/ci/run-build-and-tests.sh b/ci/run-build-and-tests.sh index cdd2913440..0707c90549 100755 --- a/ci/run-build-and-tests.sh +++ b/ci/run-build-and-tests.sh @@ -14,6 +14,8 @@ make

[RFC PATCH v2 1/3] trace2: Add a JSON schema for trace2 events

2019-07-09 Thread Josh Steadmon
]: https://json-schema.org/understanding-json-schema/reference/combining.html#allof Signed-off-by: Josh Steadmon --- t/trace_schema_validator/README | 23 + t/trace_schema_validator/event_schema.json| 398 ++ t/trace_schema_validator/list_schema.json | 401

[RFC PATCH v2 0/3] Add a JSON Schema for trace2 events

2019-07-09 Thread Josh Steadmon
ince V1 of this series: * dropped the documenation fix, as it can be submitted separately from this series * added JSON-array versions of the schema (currently unused) * added the validation test to the CI suite Josh Steadmon (3): trace2: Add a JSON schema for trace2 events trace2: add a schema

Re: [RFC PATCH 3/3] trace2: add a schema validator for trace2 events

2019-06-20 Thread Josh Steadmon
On 2019.06.12 15:18, Jeff King wrote: > On Wed, Jun 12, 2019 at 09:23:41AM -0700, Josh Steadmon wrote: > > > The problem with the existing validators is that they expect each file to > > be a > > complete JSON entity, whereas the trace output is one object per line. Yo

Re: [RFC PATCH 2/3] trace2: Add a JSON schema for trace2 events

2019-06-20 Thread Josh Steadmon
On 2019.06.14 11:59, Jeff Hostetler wrote: > > > On 6/11/2019 7:31 PM, Josh Steadmon wrote: > > Define a JSON schema[1] that can be used to validate trace2 event > > objects. This can be used to add regression tests to verify that the > > event output format d

Re: [RFC PATCH 1/3] trace2: correct trace2 field name documentation

2019-06-12 Thread Josh Steadmon
On 2019.06.12 11:00, Junio C Hamano wrote: > Josh Steadmon writes: > > > Correct the api-trace2 documentation, which lists "signal" as an > > expected field for the signal event type, but which actually outputs > > "signo" as the field name. >

Re: [RFC PATCH 3/3] trace2: add a schema validator for trace2 events

2019-06-12 Thread Josh Steadmon
On 2019.06.12 15:28, Ævar Arnfjörð Bjarmason wrote: > > On Wed, Jun 12 2019, Josh Steadmon wrote: > > > trace_schema_validator can be used to verify that trace2 event output > > conforms to the expectations set by the API documentation and codified > > in event_schema.

[RFC PATCH 3/3] trace2: add a schema validator for trace2 events

2019-06-11 Thread Josh Steadmon
-off-by: Josh Steadmon --- t/trace_schema_validator/.gitignore | 1 + t/trace_schema_validator/Makefile | 10 +++ .../trace_schema_validator.go | 74 +++ 3 files changed, 85 insertions(+) create mode 100644 t/trace_schema_validator/.gitignore

[RFC PATCH 2/3] trace2: Add a JSON schema for trace2 events

2019-06-11 Thread Josh Steadmon
]: https://json-schema.org/understanding-json-schema/reference/combining.html#allof Signed-off-by: Josh Steadmon --- t/trace_schema_validator/event_schema.json | 398 +++ t/trace_schema_validator/strict_schema.json | 511 2 files changed, 909 insertions(+) create

[RFC PATCH 1/3] trace2: correct trace2 field name documentation

2019-06-11 Thread Josh Steadmon
Correct the api-trace2 documentation, which lists "signal" as an expected field for the signal event type, but which actually outputs "signo" as the field name. Signed-off-by: Josh Steadmon --- Documentation/technical/api-trace2.txt | 2 +- 1 file changed, 1 insertion(+),

[RFC PATCH 0/3] Add a JSON Schema for trace2 events

2019-06-11 Thread Josh Steadmon
-schema.org/ Josh Steadmon (3): trace2: correct trace2 field name documentation trace2: Add a JSON schema for trace2 events trace2: add a schema validator for trace2 events Documentation/technical/api-trace2.txt| 2 +- t/trace_schema_validator/.gitignore | 1 + t

Re: [PATCH v4 00/11] Commit-graph write refactor (was: Create commit-graph file format v2)

2019-05-09 Thread Josh Steadmon
On 2019.05.09 07:22, Derrick Stolee via GitGitGadget wrote: > This series replaces ds/commit-graph-file-v2, and I'm using the same > gitgitgadget PR to continue the version numbers and hopefully make that > clear. This is a slight modification on patches 1-11 from the incremental > file format RFC

Re: [PATCH] t/lib-httpd: pass LSAN_OPTIONS through apache

2019-05-07 Thread Josh Steadmon
On 2019.05.07 18:30, Jeff King wrote: > Just as we instruct Apache to pass through ASAN_OPTIONS (so that > server-side Git programs it spawns will respect our options while > running the tests), we should do the same with LSAN_OPTIONS. Otherwise > trying to collect a list of leaks like: > > ex

[PATCH] commit-graph: fix memory leak

2019-05-06 Thread Josh Steadmon
Free the commit graph when verify_commit_graph_lite() reports an error. Credit to OSS-Fuzz for finding this leak. Signed-off-by: Josh Steadmon --- commit-graph.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commit-graph.c b/commit-graph.c index 66865acbd7..4bce70d35c

Re: js/partial-clone-connectivity-check (was: What's cooking in git.git (Apr 2019, #05; Thu, 25))

2019-05-02 Thread Josh Steadmon
On 2019.05.01 22:52, Jeff King wrote: > On Thu, Apr 25, 2019 at 03:16:57PM -0700, Josh Steadmon wrote: > > > On 2019.04.25 19:15, Junio C Hamano wrote: > > > * js/partial-clone-connectivity-check (2019-04-21) 1 commit > > > (merged to 'next' on 2019

Re: [PATCH v4] documentation: add tutorial for first contribution

2019-04-30 Thread Josh Steadmon
Just a couple typo fixes listed below: On 2019.04.23 12:34, Emily Shaffer wrote: [snip] > +=== Implementation > + > +It's probably useful to do at least something besides printing out a string. > +Let's start by having a look at everything we get. > + > +Modify your `cmd_psuh` implementation to d

js/partial-clone-connectivity-check (was: What's cooking in git.git (Apr 2019, #05; Thu, 25))

2019-04-25 Thread Josh Steadmon
On 2019.04.25 19:15, Junio C Hamano wrote: > * js/partial-clone-connectivity-check (2019-04-21) 1 commit > (merged to 'next' on 2019-04-25 at ebd8b4bffd) > + clone: do faster object check for partial clones > > During an initial "git clone --depth=..." partial clone, it is > pointless to spen

  1   2   3   >