testrunner.go ×6

Frontier kind: Joint frontier

unlabeled · c_8383a6d1517c

1 test · 188 LOC · 3 files · introduces 1 test · 30 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges30 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
56 ranges188 lines · 3 files · Browse complete extent
All tests (intent)
1 testBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Introduced files, introduced tests, and structurally relevant concept specializationTestMergeReports_MultipleReports · 0 introduced LOCTestMergeReports_Multipl…junit.go ×1 · 2 introduced LOCjunit.go ×1junit.go ×4 · 18 introduced LOCjunit.go ×4junit.go ×1 · 2 introduced LOCjunit.go ×1junit.go ×1 · 2 introduced LOCjunit.go ×1junit.go ×1 · 3 introduced LOCjunit.go ×1junit.go ×10 · 42 introduced LOCjunit.go ×10log.go ×2 · 4 introduced LOClog.go ×2log.go ×1 · 2 introduced LOClog.go ×1log.go ×7 · 17 introduced LOClog.go ×7junit.go ×1 · 1 introduced LOCjunit.go ×1log.go ×1 · 3 introduced LOClog.go ×1junit.go ×5 · 17 introduced LOCjunit.go ×5log.go ×3 · 5 introduced LOClog.go ×3log.go ×1 · 1 introduced LOClog.go ×1log.go ×4 · 15 introduced LOClog.go ×4junit.go ×3 · 10 introduced LOCjunit.go ×3junit.go ×3 · 8 introduced LOCjunit.go ×3testrunner.go ×1 · 6 introduced LOCtestrunner.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/tools/testrunner/junit.go · 369 LOCtestrunner/junit.gogo.temporal.io/server/tools/testrunner/log.go · 444 LOCtestrunner/log.gogo.temporal.io/server/tools/testrunner/testrunner.go · 480 LOCtestrunner/testrunner.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestMergeReports_MultipleReports · introduced test · go.temporal.io/server/tools/testrunner/TestMergeReports_MultipleReportsTestMergeReports_Multipl…TestMergeReports_SingleReport · introduced test · go.temporal.io/server/tools/testrunner/TestMergeReports_SingleReportTestMergeReports_SingleR…keeps_last_await_attempt_without_trailing_logs · introduced test · go.temporal.io/server/tools/testrunner/TestParseFailureDetails/keeps_last_await_attempt_without_trailing_logskeeps_last_await_attempt…TestReadJUnitReport · introduced test · go.temporal.io/server/tools/testrunner/TestReadJUnitReportTestReadJUnitReportTestWriteCurrentReport · introduced test · go.temporal.io/server/tools/testrunner/TestWriteCurrentReportTestWriteCurrentReportFocused concept · testrunner.go ×6 · 30 introduced LOCtestrunner.go ×6

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 30 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/tools/testrunner/testrunner.go 30 introduced LOC · 6 ranges

Open complete file

185 }
186
187 > func (r *runner) newAttempt() *attempt { testrunner.go
188 > a := &attempt{
189 > runner: r,
190 > number: len(r.attempts) + 1,
191 > coverProfilePath: fmt.Sprintf(
192 > "%v_%v%v",
193 > strings.TrimSuffix(r.coverProfilePath, codeCoverageExtension),
194 > len(r.attempts),
195 > codeCoverageExtension),
196 > junitReport: &junitReport{
197 > path: filepath.Join(os.TempDir(), fmt.Sprintf("temporalio-temporal-%s-junit.xml", uuid.NewString())),
198 > },
199 > }
200 > r.attempts = append(r.attempts, a)
201 > return a
202 > }
203
204 > func (r *runner) allReports() []*junitReport { testrunner.go
205 > var reports []*junitReport
206 > for _, a := range r.attempts {
207 > reports = append(reports, a.junitReport)
208 > }
209 > return reports
210 }
211
301 // Reporting errors (e.g. unexpected missing reruns) are intentionally ignored
302 // here; they are only checked for the final write at the end of runTests.
303 > func (r *runner) writeCurrentReport() { testrunner.go
304 > reports := r.allReports()
305 > if len(reports) == 0 {
306 return
307 }
308 > merged, err := mergeReports(reports) testrunner.go
309 > if err != nil {
310 log.Printf("warning: failed to merge reports for intermediate write: %v", err)
311 return
312 }
313 > if len(r.alerts) > 0 { testrunner.go
314 merged.appendAlertsSuite(r.alerts)
315 }
316 > merged.path = r.junitOutputPath testrunner.go
317 > if err := merged.write(); err != nil {
318 log.Printf("warning: failed to write intermediate report: %v", err)
319 }