Skip to content

Specify generation number version by config - #886

Closed
derrickstolee wants to merge 2 commits into
gitgitgadget:ds/chunked-file-apifrom
derrickstolee:commit-graph-generation-config
Closed

derrickstolee wants to merge 2 commits into
gitgitgadget:ds/chunked-file-apifrom
derrickstolee:commit-graph-generation-config

Conversation

@derrickstolee

@derrickstolee derrickstolee commented Feb 25, 2021 •

Copy link
Copy Markdown

This is based on ds/chunked-file-api.

Generation number v2 (corrected commit dates) was introduced by ak/corrected-commit-date. The new data could be opted-out only using the GIT_TEST_COMMIT_GRAPH_NO_GDAT environment variable.

As this feature gets deployed more widely, servers in particular might want more control over when this format is used. Add a config option instead.

Thanks,
-Stolee

Cc: me@ttaylorr.com
Cc: abhishekkumar8222@gmail.com

The write_commit_graph() method uses 'the_repository' in a few places. A
new need for a repository pointer is coming in the following change, so
group these instances into a local variable 'r' that could eventually
become part of the method signature, if so desired.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
We have two established generation number versions:

 1: topological levels
 2: corrected commit dates

The corrected commit dates are enabled by default, but they also write
extra data in the GDAT and GDOV chunks. Services that host Git data
might want to have more control over when this feature rolls out than
just updating the Git binaries.

Add a new "commitGraph.generationVersion" config option that specifies
the intended generation number version. If this value is less than 2,
then the GDAT chunk is never written _or read_ from an existing file.

This can replace our use of the GIT_TEST_COMMIT_GRAPH_NO_GDAT
environment variable in the test suite. Remove it.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
@derrickstolee
derrickstolee force-pushed the commit-graph-generation-config branch from 2fcbcfd to 8eca11e Compare February 25, 2021 17:15
@derrickstolee

Copy link
Copy Markdown
Author

/submit

@gitgitgadget

gitgitgadget Bot commented Feb 25, 2021

Copy link
Copy Markdown

Submitted as pull.886.git.1614277183.gitgitgadget@gmail.com

To fetch this version into FETCH_HEAD:

git fetch https://github.com/gitgitgadget/git pr-886/derrickstolee/commit-graph-generation-config-v1

To fetch this version to local tag pr-886/derrickstolee/commit-graph-generation-config-v1:

git fetch --no-tags https://github.com/gitgitgadget/git tag pr-886/derrickstolee/commit-graph-generation-config-v1

@gitgitgadget

gitgitgadget Bot commented Feb 26, 2021

Copy link
Copy Markdown

This branch is now known as ds/commit-graph-generation-config.

@gitgitgadget

gitgitgadget Bot commented Feb 26, 2021

Copy link
Copy Markdown

This patch series was integrated into seen via git@e5d12ad.

@gitgitgadget gitgitgadget Bot added the seen label Feb 26, 2021
@gitgitgadget

gitgitgadget Bot commented Feb 26, 2021

Copy link
Copy Markdown

This patch series was integrated into seen via git@35423f6.

@gitgitgadget

gitgitgadget Bot commented Feb 27, 2021

Copy link
Copy Markdown

This patch series was integrated into seen via git@f15763d.

@gitgitgadget

gitgitgadget Bot commented Mar 1, 2021

Copy link
Copy Markdown

This patch series was integrated into seen via git@b0b878c.

@gitgitgadget

gitgitgadget Bot commented Mar 1, 2021

Copy link
Copy Markdown

This patch series was integrated into next via git@926537e.

@gitgitgadget gitgitgadget Bot added the next label Mar 1, 2021
@gitgitgadget

gitgitgadget Bot commented Mar 3, 2021

Copy link
Copy Markdown

This patch series was integrated into seen via git@3c9891f.

@gitgitgadget

gitgitgadget Bot commented Mar 5, 2021

Copy link
Copy Markdown

This patch series was integrated into seen via git@88fabf7.

@gitgitgadget

gitgitgadget Bot commented Mar 5, 2021

Copy link
Copy Markdown

This patch series was integrated into seen via git@cd24117.

@gitgitgadget

gitgitgadget Bot commented Mar 8, 2021

Copy link
Copy Markdown

This patch series was integrated into seen via git@1fb00d3.

dscho pushed a commit that referenced this pull request Jul 9, 2026
Add a stub pipeline for releases using Azure Pipelines.

The pipeline runs on Microsoft internal images/runners across:
 * Windows x64
 * Windows ARM64
 * macOS
 * Ubuntu x64
 * Ubuntu ARM64

At the start of a run there is a prerequisite stage and pre-build
validation. Today this does nothing, and should be updated to:
 * validate the current commit is tagged (annotated), and
 * capture the Git version, tag name and SHA.

Artifacts are uploaded from the build stage, and downloaded into the
release stage later for uploading to a draft GitHub release.

ESRP signing to be added later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant