Skip to content

Commit f727aab

Browse files
committed
[FAB-16836] plugin builds may take longer than 60s
- Double the build timeout - Turn on build command output to see where we are when a timeout occurs Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com> Change-Id: I7e73e3acb5edfab29ff0db8595c518e73ec80ca8
1 parent c083b2d commit f727aab

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

integration/pluggable/pluggable_test.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,16 @@ var _ = Describe("EndToEnd", func() {
129129
func compilePlugin(pluginType string) string {
130130
pluginFilePath := filepath.Join("testdata", "plugins", pluginType, "plugin.so")
131131
cmd := exec.Command(
132-
"go", "build", "-buildmode=plugin",
132+
"go", "build",
133+
"-x", // print build commands while running
134+
"-buildmode=plugin",
133135
"-o", pluginFilePath,
134136
fmt.Sprintf("github.com/hyperledger/fabric/integration/pluggable/testdata/plugins/%s", pluginType),
135137
)
136-
sess, err := gexec.Start(cmd, GinkgoWriter, GinkgoWriter)
138+
pw := gexec.NewPrefixedWriter(fmt.Sprintf("[build-plugin-%s] ", pluginType), GinkgoWriter)
139+
sess, err := gexec.Start(cmd, pw, pw)
137140
Expect(err).NotTo(HaveOccurred())
138-
Eventually(sess, time.Minute).Should(gexec.Exit(0))
141+
Eventually(sess, 2*time.Minute).Should(gexec.Exit(0))
139142

140143
Expect(pluginFilePath).To(BeARegularFile())
141144
return pluginFilePath

0 commit comments

Comments
 (0)