Skip to content
This repository was archived by the owner on Aug 17, 2020. It is now read-only.

Conversation

@tonyredondo
Copy link
Contributor

@tonyredondo tonyredondo commented Apr 3, 2020

This PR contains cumulative improvements made based in the Buildkit instrumentation.

Added:

  • scopeagent.SetTestCodeFromCaller, scopeagent.SetTestCodeFromCallerSkip and scopeagent.SetTestCodeFromFunc to manually set the function containing the source code of a test. With this we calculate the suite name and the test source code boundaries. This is used when a test code it's wrapped with a library.
  • Several tests and benchmarks

Changed:

  • The way is calculated the suite and test name in both tests and benchmarks, to be more reliable.

Fixed:

  • Get exact test start time when a test is marked as t.Parallel() removing the previous behavior that contains the time before the pause of the parallel.
  • A Bug in the t.Log monkey patching methods, due a problem in Golang reflect.makefunc avoiding the segmentation fault when calling the log methods from several go routines at the same time.

@tonyredondo tonyredondo self-assigned this Apr 3, 2020
@drodriguezhdez
Copy link
Contributor

These changes were tested against moby/buildkit.

@tonyredondo tonyredondo merged commit 9d2f515 into master Apr 7, 2020
@tonyredondo tonyredondo deleted the test-code-api branch April 7, 2020 08:51
@drodriguezhdez drodriguezhdez restored the test-code-api branch April 7, 2020 14:23
@drodriguezhdez drodriguezhdez deleted the test-code-api branch April 7, 2020 14:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants