UNCLASSIFIED - NO CUI

Skip to content

Bugfix Preflight Test Race Condition

Ryan Daily requested to merge 167-bugfix-async-preflight-test-race-condition into main

General MR

Summary

Changes expected output matching for preflight check test to allow for unordered responses from pod

Relevant logs/screenshots

Test Output With `--race` Enabled
 bbctl (167-bugfix-async-preflight-test-race-condition) ✗ go test ./... --race
# repo1.dso.mil/big-bang/product/packages/bbctl/cmd.test
ld: warning: '/private/var/folders/nv/mhnmf2xx07x_qh0_b1wjhks80000gp/T/go-link-3054857888/000014.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626
# repo1.dso.mil/big-bang/product/packages/bbctl/util.test
ld: warning: '/private/var/folders/nv/mhnmf2xx07x_qh0_b1wjhks80000gp/T/go-link-1742039003/000014.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626
# repo1.dso.mil/big-bang/product/packages/bbctl/cmd/deploy.test
ld: warning: '/private/var/folders/nv/mhnmf2xx07x_qh0_b1wjhks80000gp/T/go-link-3738369294/000014.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626
# repo1.dso.mil/big-bang/product/packages/bbctl/cmd/k3d.test
ld: warning: '/private/var/folders/nv/mhnmf2xx07x_qh0_b1wjhks80000gp/T/go-link-3141603578/000014.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626
?   	repo1.dso.mil/big-bang/product/packages/bbctl	[no test files]
ok  	repo1.dso.mil/big-bang/product/packages/bbctl/cmd	(cached)
ok  	repo1.dso.mil/big-bang/product/packages/bbctl/cmd/deploy	(cached)
?   	repo1.dso.mil/big-bang/product/packages/bbctl/mocks/repo1.dso.mil/big-bang/product/packages/bbctl/static	[no test files]
ok  	repo1.dso.mil/big-bang/product/packages/bbctl/cmd/k3d	(cached)
ok  	repo1.dso.mil/big-bang/product/packages/bbctl/static	(cached)
ok  	repo1.dso.mil/big-bang/product/packages/bbctl/util	(cached)
ok  	repo1.dso.mil/big-bang/product/packages/bbctl/util/apiwrappers	(cached)
ok  	repo1.dso.mil/big-bang/product/packages/bbctl/util/aws	(cached)
ok  	repo1.dso.mil/big-bang/product/packages/bbctl/util/config	(cached)
ok  	repo1.dso.mil/big-bang/product/packages/bbctl/util/config/schemas	(cached)
ok  	repo1.dso.mil/big-bang/product/packages/bbctl/util/gatekeeper	(cached)
ok  	repo1.dso.mil/big-bang/product/packages/bbctl/util/helm	(cached)
?   	repo1.dso.mil/big-bang/product/packages/bbctl/util/test	[no test files]
?   	repo1.dso.mil/big-bang/product/packages/bbctl/util/test/apiwrappers	[no test files]
?   	repo1.dso.mil/big-bang/product/packages/bbctl/util/test/aws	[no test files]
?   	repo1.dso.mil/big-bang/product/packages/bbctl/util/test/helm	[no test files]
?   	repo1.dso.mil/big-bang/product/packages/bbctl/util/test/log	[no test files]
ok  	repo1.dso.mil/big-bang/product/packages/bbctl/util/k8s	(cached)
ok  	repo1.dso.mil/big-bang/product/packages/bbctl/util/kyverno	(cached)
ok  	repo1.dso.mil/big-bang/product/packages/bbctl/util/log	(cached)

 bbctl (167-bugfix-async-preflight-test-race-condition) ✗ echo $?
0

The linker warnings in the output above are a known issue for Go and do not interfere with the tests. The test command exists with an exit code of 0 as shown in the output above.

Linked Issue

#167 (closed)

Upgrade Notices

N/A

Closes #167 (closed)

Merge request reports

Loading