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

Take 2: ci(mingw): speed up, by disabling the chain lint #1888

Closed
wants to merge 8 commits into from

Conversation

dscho
Copy link
Member

@dscho dscho commented Oct 17, 2018

This is just a test balloon, to see how much it costs us. The main cost
seems to be the subshell (exit 117), which is expensive in the MSYS2
Bash due to the way fork() is emulated.

This is just a test balloon, to see how much it costs us. The main cost
seems to be the subshell `(exit 117)`, which is expensive in the MSYS2
Bash due to the way `fork()` is emulated.

Signed-off-by: Johannes Schindelin <[email protected]>
The main aim of this here patch is to allow quicker turnaround times
testing several things to accelerate the test suite on Windows.

Let's not bother with non-Windows phases for now, then.

Signed-off-by: Johannes Schindelin <[email protected]>
We really need to be able to find the test helpers... Really. This
change was forgotten when we moved the test helpers into t/helper/

Signed-off-by: Johannes Schindelin <[email protected]>
For the same reason, we need to handle test-tool.exe the same way.

Signed-off-by: Johannes Schindelin <[email protected]>
This is just a test balloon, to see how much it costs us. The main cost
seems to be the shell that spawns just another .exe, which is expensive
in the MSYS2 Bash due to the way `fork()` is emulated.

Signed-off-by: Johannes Schindelin <[email protected]>
When building Git with RUNTIME_PREFIX and starting a test helper from
t/helper/, it fails to detect the system prefix correctly.

This is the reason that the warning

	RUNTIME_PREFIX requested, but prefix computation failed. [...]

to be printed.

In t0061, we did not expect that to happen, and it actually did not
happen in the normal case, because bin-wrappers/test-tool specifically
sets GIT_TEXTDOMAINDIR (and as a consequence, nothing in test-tool wants
to know about the runtime prefix).

However, with --with-dashes, bin-wrappers/test-tool is no longer called,
but t/helper/test-tool is called directly.

So let's just ignore the RUNTIME_PREFIX warning.

Signed-off-by: Johannes Schindelin <[email protected]>
This speeds up the tests by a bit on Windows, where running Unix shell
scripts (and spawning processes) is not exactly a cheap operation.

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho
Copy link
Member Author

dscho commented Nov 22, 2018

This experiment turned out to be useful and has been integrated into master via 6a07e39.

@dscho dscho closed this Nov 22, 2018
@dscho dscho deleted the accelerate-test-suite branch November 22, 2018 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant