Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitserver: Fix duration reported for ChangedFiles #62603

Merged
merged 2 commits into from May 13, 2024

Conversation

eseliger
Copy link
Member

We always ended the observation when the iterator is created before, this will make sure to track the time until the call to Close().

Test plan:

Code review, existing CI.

@eseliger eseliger force-pushed the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch from 724a2e8 to 0fff38b Compare May 10, 2024 20:29
@eseliger eseliger force-pushed the es/05-10-gitserverfixdurationreprotedforchangedfiles branch from 4f8fa5f to d72bec5 Compare May 10, 2024 20:29
@eseliger eseliger force-pushed the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch from 0fff38b to ca7ccd8 Compare May 10, 2024 20:35
@eseliger eseliger force-pushed the es/05-10-gitserverfixdurationreprotedforchangedfiles branch from d72bec5 to 58c7993 Compare May 10, 2024 20:35
@eseliger eseliger force-pushed the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch from ca7ccd8 to 30fffe6 Compare May 10, 2024 22:25
@eseliger eseliger force-pushed the es/05-10-gitserverfixdurationreprotedforchangedfiles branch from 58c7993 to d6d0969 Compare May 10, 2024 22:25
@eseliger eseliger force-pushed the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch from 30fffe6 to ebd8014 Compare May 10, 2024 22:30
@eseliger eseliger force-pushed the es/05-10-gitserverfixdurationreprotedforchangedfiles branch from d6d0969 to 245f9d6 Compare May 10, 2024 22:30
@eseliger eseliger force-pushed the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch from ebd8014 to c975ea1 Compare May 10, 2024 22:37
@eseliger eseliger force-pushed the es/05-10-gitserverfixdurationreprotedforchangedfiles branch from 245f9d6 to 8d42c6f Compare May 10, 2024 22:37
@eseliger eseliger changed the title gitserver: Fix duration reproted for ChangedFiles gitserver: Fix duration reported for ChangedFiles May 13, 2024
@eseliger eseliger force-pushed the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch from c975ea1 to 6c0847c Compare May 13, 2024 02:06
@eseliger eseliger force-pushed the es/05-10-gitserverfixdurationreprotedforchangedfiles branch from 8d42c6f to 683aa34 Compare May 13, 2024 02:06
There is potentially a lot of FDs in a repo, so we return an iterator instead to encourage callers to consume it one by one and not load all of it into memory.

Test plan:

Existing tests still pass.
We always ended the observation when the iterator is created before, this will make sure to track the time until the call to Close().

Test plan:

Code review, existing CI.
@eseliger eseliger force-pushed the es/05-10-gitservermakereaddirreturnaniteratoronclientside branch from 6c0847c to 76f8aca Compare May 13, 2024 03:37
@eseliger eseliger force-pushed the es/05-10-gitserverfixdurationreprotedforchangedfiles branch from 683aa34 to dfd8c89 Compare May 13, 2024 03:37
@eseliger eseliger marked this pull request as ready for review May 13, 2024 03:45
@eseliger eseliger requested a review from a team May 13, 2024 03:45
Base automatically changed from es/05-10-gitservermakereaddirreturnaniteratoronclientside to main May 13, 2024 12:24
@eseliger eseliger merged commit 7d1a0d1 into main May 13, 2024
15 of 19 checks passed
@eseliger eseliger deleted the es/05-10-gitserverfixdurationreprotedforchangedfiles branch May 13, 2024 12:38
Copy link
Member Author

Merge activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants