Repository navigation
Conversation
|
|
|
Size Change: 0 B Total Size: 1.3 MB ℹ️ View Unchanged
|
dmsnell
force-pushed
the
tests/perf-tests-fetch-all-at-once-with-branches
branch
from
November 17, 2022 00:56
6ecd470 to
1be5acb
Compare
dmsnell
marked this pull request as draft
November 17, 2022 16:28
dmsnell
force-pushed
the
tests/perf-tests-fetch-all-at-once-with-branches
branch
from
November 17, 2022 17:18
1be5acb to
1838ac9
Compare
…anches Sometimes it gets confusing in the performance test code trying to make sense of the distinctions between git shas, branches, and refs. When shallow fetching we don't even always get the branches associated with the revisions we fetch, such as with `trunk`. In this patch we're doing three things: - Combining all of the revision fetches into a single call, which should reduce variation in the test runs due to network issues. - Passing a refspec to assign each fetched object to a local branch so that we can reliablly deal only with branches that definitely exist in the local copy of the repository. - Small cleanups to strings and namings to make it clear that this script will allow testing against any git revision, which could be a sha, a branch name, a tag name, or any other ref.
dmsnell
force-pushed
the
tests/perf-tests-fetch-all-at-once-with-branches
branch
from
November 17, 2022 23:02
1838ac9 to
5b2c104
Compare
Member
Author
|
Closing because this not only failed to significantly demonstrate speeding up the performance test workflow, but it significantly demonstrated slowing it down. Because the performance tests workflow is no longer the bottleneck in the PR process this is no longer a priority, but more investigation could be performed to determine why this slowed down the build and correct it. The general idea still holds some investigation: grab all the required |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
In the performance tests fetch all revisions in a single command and assign them to local branches.
Why?
Sometimes it gets confusing in the performance test code trying to make sense of the distinctions between git shas, branches, and refs. When shallow fetching we don't even always get the branches associated with the revisions we fetch, such as with
trunk.In this patch we're doing three things:
How?
We're passing a list of
refspecs to thefetchcommand which will tell the remote repository to send all of the listed objects and then it will assign them to a new local branch.Under normal PR commits this will eliminate a couple of network fetches - one for each branch that we've been fetching. This will hopefully reduce the variability in the test runtimes and result in faster test runs.
Testing Instructions
There are only changes to the test runner in this patch; no code changes on the project or the test suites themselves. Please audit the code and look for things that might be wrong or confusing.
If the Performance Test workflow passes then this should be working. Verify that the output of the performance test shows the normal table of measured test results.