Skip to content

Conversation

aoldershaw
Copy link
Contributor

@aoldershaw aoldershaw commented Jul 26, 2021

Changes proposed by this PR

The HTTP client used by the TSA uses http.DefaultTransport, which has an
IdleConnTimeout of 90s. Some of these tests rely on this timeout being
hit, meaning that there's a minimum time of 90s for these tests. This
resulted in the tsa suite being the slowest to complete, typically
taking ~5m.

This commit compiles the tsa binary with an overridden IdleConnTimeout
of 5s in tests. This does not affect the behaviour of Concourse, as the
default behaviour is left unchanged when compiled normally.

In practice, it looks like this shaves off ~4 minutes from each run of unit

  • Compile TSA with an overridden IdleConnTimeout in tests

@aoldershaw aoldershaw requested a review from a team as a code owner July 26, 2021 16:01
The HTTP client used by the TSA uses http.DefaultTransport, which has an
IdleConnTimeout of 90s. Some of these tests rely on this timeout being
hit, meaning that there's a minimum time of 90s for these tests. This
resulted in the tsa suite being the slowest to complete, typically
taking ~5m.

This commit compiles the tsa binary with an overridden IdleConnTimeout
of 5s in tests. This does not affect the behaviour of Concourse, as the
default behaviour is left unchanged.

Signed-off-by: Aidan Oldershaw <aoldershaw@pivotal.io>
@taylorsilva taylorsilva merged commit b47d7b0 into master Jul 29, 2021
@taylorsilva taylorsilva deleted the speedup-tsa-tests branch July 29, 2021 20:17
aoldershaw added a commit that referenced this pull request Aug 10, 2021
#7336 sped up the TSA tests by compiling the test
binary with a package constant set. however, this package was moved, so
we weren't setting the constant properly. unfortunately, this doesn't
result in a compilation error, and fails silently

Signed-off-by: Aidan Oldershaw <aoldershaw@pivotal.io>
aoldershaw added a commit that referenced this pull request Aug 16, 2021
#7336 sped up the TSA tests by compiling the test
binary with a package constant set. however, this package was moved, so
we weren't setting the constant properly. unfortunately, this doesn't
result in a compilation error, and fails silently

Signed-off-by: Aidan Oldershaw <aoldershaw@pivotal.io>
aoldershaw added a commit that referenced this pull request Aug 16, 2021
#7336 sped up the TSA tests by compiling the test
binary with a package constant set. however, this package was moved, so
we weren't setting the constant properly. unfortunately, this doesn't
result in a compilation error, and fails silently

Signed-off-by: Aidan Oldershaw <aoldershaw@pivotal.io>
@clarafu clarafu added the release/no-impact This is an issue that never affected released versions (i.e. a regression caught prior to shipping). label Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
misc release/no-impact This is an issue that never affected released versions (i.e. a regression caught prior to shipping).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants