-
Notifications
You must be signed in to change notification settings - Fork 307
Build and package everything related to TCE using a core main branch #918
Conversation
85180b5
to
741f673
Compare
1b4449a
to
48d22a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like something is going on with plugin builder or LDFLAGs for the standalone plugin.
TANZU_CLI_NO_INIT=true GOPRIVATE="github.com/vmware-tanzu-private/*,github.com/vmware-tanzu/*,github.com/dvonthenen/*,github.com/joshrosso/*" go run -ldflags "-s -w -X "github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildDate=$(date -u +"%Y-%m-%d")" -X "github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildSHA=$(git rev-parse --short HEAD)" -X "github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildVersion=$(git describe --tags --abbrev=0)" -X 'main.BuildEdition="tce"'" github.com/vmware-tanzu-private/core/cmd/cli/tanzu \
plugin install all --local ./artifacts
Error: version cannot be empty for plugin "standalone-cluster"
✖ version cannot be empty for plugin "standalone-cluster"
exit status 1
make: *** [Makefile:246: install-cli-plugins] Error 1
Hmmm I saw something similar when building the multiple go modules in #735. I was able to narrow it down to this chunk in the core main builder code: https://github.com/vmware-tanzu-private/core/commit/d5d49dad5327afe06700429557d8288ab208a1a6#diff-baf814ba21730ad0b108762105ce1339828946c47899def96f26c67fa92ddf04R38-R42 where it wasn't properly pulling the build metadata off the version It wasn't successful when using the auto-generated tag But then I wasn't able to reproduce it locally and it stopped failing in CI ... So definitely a flake, but wasn't able to investigate further |
|
fwiw on my macOS Catalina machine, it succeeds. ℹ 🐱 - $ /usr/local/bin/go build -o /Users/nrb/projects/tce/artifacts/standalone-cluster/v0.7.0-dev.1/test/tanzu-standalone-cluster-test-windows_amd64.exe -ldflags -s -w -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildDate=2021-07-06 -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildSHA=933f4ba -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildVersion=v0.7.0-dev.1 -X 'main.BuildEdition=tce' -X 'github.com/vmware-tanzu-private/core/pkg/v1/tkg/buildinfo.IsOfficialBuild=' -tags ./cli/cmd/plugin/standalone-cluster/test
ℹ 🐱 - $ /usr/local/bin/go build -o /Users/nrb/projects/tce/artifacts/standalone-cluster/v0.7.0-dev.1/test/tanzu-standalone-cluster-test-linux_386 -ldflags -s -w -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildDate=2021-07-06 -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildSHA=933f4ba -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildVersion=v0.7.0-dev.1 -X 'main.BuildEdition=tce' -X 'github.com/vmware-tanzu-private/core/pkg/v1/tkg/buildinfo.IsOfficialBuild=' -tags ./cli/cmd/plugin/standalone-cluster/test
ℹ 🐱 - $ /usr/local/bin/go build -o /Users/nrb/projects/tce/artifacts/standalone-cluster/v0.7.0-dev.1/test/tanzu-standalone-cluster-test-linux_amd64 -ldflags -s -w -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildDate=2021-07-06 -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildSHA=933f4ba -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildVersion=v0.7.0-dev.1 -X 'main.BuildEdition=tce' -X 'github.com/vmware-tanzu-private/core/pkg/v1/tkg/buildinfo.IsOfficialBuild=' -tags ./cli/cmd/plugin/standalone-cluster/test
ℹ 🐱 - $ /usr/local/bin/go build -o /Users/nrb/projects/tce/artifacts/standalone-cluster/v0.7.0-dev.1/test/tanzu-standalone-cluster-test-linux_arm64 -ldflags -s -w -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildDate=2021-07-06 -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildSHA=933f4ba -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildVersion=v0.7.0-dev.1 -X 'main.BuildEdition=tce' -X 'github.com/vmware-tanzu-private/core/pkg/v1/tkg/buildinfo.IsOfficialBuild=' -tags ./cli/cmd/plugin/standalone-cluster/test
ℹ 🐱 - $ /usr/local/bin/go build -o /Users/nrb/projects/tce/artifacts/standalone-cluster/v0.7.0-dev.1/test/tanzu-standalone-cluster-test-darwin_amd64 -ldflags -s -w -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildDate=2021-07-06 -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildSHA=933f4ba -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildVersion=v0.7.0-dev.1 -X 'main.BuildEdition=tce' -X 'github.com/vmware-tanzu-private/core/pkg/v1/tkg/buildinfo.IsOfficialBuild=' -tags ./cli/cmd/plugin/standalone-cluster/test
ℹ 🐱 - $ /usr/local/bin/go build -o /Users/nrb/projects/tce/artifacts/standalone-cluster/v0.7.0-dev.1/test/tanzu-standalone-cluster-test-darwin_arm64 -ldflags -s -w -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildDate=2021-07-06 -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildSHA=933f4ba -X github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildVersion=v0.7.0-dev.1 -X 'main.BuildEdition=tce' -X 'github.com/vmware-tanzu-private/core/pkg/v1/tkg/buildinfo.IsOfficialBuild=' -tags ./cli/cmd/plugin/standalone-cluster/test
========
✔ successfully built local repository
TANZU_CLI_NO_INIT=true GOPRIVATE="github.com/vmware-tanzu-private/*,github.com/vmware-tanzu/*,github.com/dvonthenen/*,github.com/joshrosso/*" go run -ldflags "-s -w -X "github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildDate=$(date -u +"%Y-%m-%d")" -X "github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildSHA=$(git rev-parse --short HEAD)" -X "github.com/vmware-tanzu-private/core/pkg/v1/cli.BuildVersion=$(git describe --tags --abbrev=0)" -X 'main.BuildEdition=tce' -X 'github.com/vmware-tanzu-private/core/pkg/v1/tkg/buildinfo.IsOfficialBuild=""'" github.com/vmware-tanzu-private/core/cmd/cli/tanzu \
plugin install all --local ./artifacts
[COMPLETE] installed plugins at "/Users/nrb/Library/Application Support"/tanzu-cli/. These plugins will be automatically detected by tanzu CLI.
[COMPLETE] installed tanzu CLI at /Users/nrb/go:/usr/share/gocode//bin/tanzu. Move this binary to a location in your path!
make build-all 2054.19s user 610.77s system 769% cpu 5:46.54 total |
9e20e56
to
158f8ad
Compare
Build succeeds for me. Attempted to deploy on Ubuntu 21.04 failed, but we have known issues there so I don't think this should block things. Would be good to get this through so we can identify and fix any side effects of the change. |
yea, we definitely need to fix the bom reference and kind image reference... i just haven't touched that part of the code and am unfamiliar with what i might need to do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plugin installs are now impacted by the file ~/.config/tanzu/config.yaml
. 2 questions we should figure out for this PR:
-
Should we be cleaning out this config file when doing local builds to ensure configuration does not stick around?
-
When should we run
make set-unstable-versions
such that our plugins with a-
or+
suffix are included?
For #2, i solved it by adding
diff --git a/hack/build-tanzu.sh b/hack/build-tanzu.sh
index 1d7b6ba..f23cf21 100755
--- a/hack/build-tanzu.sh
+++ b/hack/build-tanzu.sh
@@ -47,6 +47,7 @@ sed -i.bak -e "s/\$(shell git describe --tags --abbrev=0 2>\$(NUL))/${BUILD_VERS
# make configure-bom
# build and install all "core" CLI plugins
# (e.g. management-cluster, cluster, etc)
+make set-unstable-versions
make build-install-cli-all
# by default, core only builds admins plugins for the current platform. we need darwin also.
GOHOSTOS=linux GOHOSTARCH=amd64 make build-plugin-admin
Just fixing the |
ecd9715
to
48086d1
Compare
01034e0
to
524552c
Compare
Build with Deploying a standalone cluster:I get the following error when trying to deploy a management cluster:
I get the same error with the CLI and the UI. I'm guessing this is related to the BOM issue? Deploying a management cluster:This also fails for me, but it gets further than the standalone-cluster. I think this is related to #891 since I'm getting the same error. So, with this bump, are we not getting the newest providers?
|
1857be4
to
4871262
Compare
2f61903
to
95a03e5
Compare
On CentOS8 with a management deploy to AWS using latest commit off
|
0a0e9f2
to
5d3c049
Compare
updated this PR to use EDIT: updated to remove all "core" references... everything builds fine |
I'm still getting the same On kernel:
Did we bump to the latest providers in this PR or is this something we should tackle outside this uber PR? |
We are running off the latest on tanz-framework main... the other repo was just marked read only on Friday and the new repo isn't accepting changes until some things are worked out. so I'm guessing they are probably out of sync. |
933e599
to
9d52d11
Compare
Trying this again this morning, but getting the following error:
I remember someone saying something maybe about removing some of the configs before this will work. But removing |
also be sure to stop and remove orphaned kind clusters. i got burned by that recently. |
There's no name provided on that command line. Copy/paste error, or was that actually omitted? |
I must have had something funky going on in my environment. Did
@stmcginnis I got that command from josh and it's going now and looks like it's getting some generated cluster name |
8f38c27
to
8f63f11
Compare
make builds succeed update build options Updates so that make release functions correctly Building of core main fix version more updates latest updates rebased from the rebase on top of main branch update go mod successfully built off main remove install option not needed update core main hash fix package darwin fix packaging rebase on main update the oops updates to edition remove bom workarounds default value conform to core plugin source layout fix UI working fix makefile fix linting fix hack/packages build linux explicitly to cover building on other platforms enable non-GA builds fix release-docker build second fix to release-docker update with latest lint fixes remove the go.mod from the packages util go mod tidy remove directory for docker build update core references to latest remove boms dir update to use tanzu-framework remove references to core rebase on latest main fix sha saying dirty fix make check
9970708
to
0f7bb89
Compare
What this PR does / why we need it
This builds and packages TCE using a branch called
tce-main
(https://github.com/vmware-tanzu/tanzu-framework/tree/tce-main) that preserves standalone clusters but using a commit starting frommain
(vmware-tanzu/tanzu-framework@23164b1). As you can see, the diff between the two is minimal (vmware-tanzu/tanzu-framework@23164b1...tce-main)... in other words is only adds code and does not modify. If we want to update to a later version ofmain
, we just need to rebasetce-main
to that commit, test it works, and then update the branch.The changes include:
IMPORTANT: This PR also removes code and references to the experimental
package
plugin originating from this repo and instead pulls the package plugin from thecore
repo instead.This PR obsoletes this PR:
#730
Which issue(s) this PR fixes
NA
Describe testing done for PR
Verified that
make release
still works and won't break the release.Verified tanzu plugin list works:
and you can invoke the standalone cluster plugin (but did not deploy a cluster):
Special notes for your reviewer
NA
Does this PR introduce a user-facing change?
NA
resolves: #508
EDIT: updated with
tanzu-framework
links and references