-
Notifications
You must be signed in to change notification settings - Fork 95
Optimize installation steps on CI (#1313) #1345
Optimize installation steps on CI (#1313) #1345
Conversation
17f78c7
to
443d3ef
Compare
@@ -287,7 +287,7 @@ CLEANESX_SH := $(DEPLOY_TOOLS) cleanesx | |||
deploy-esx: clean-esx | |||
$(DEPLOY_ESX_SH) "$(ESX)" "$(VIB_BIN)" | |||
|
|||
VMS= $(VM1) $(VM2) $(WORKER2) | |||
VMS= $(VM1) $(VM2) $(WORKER2) $(CI_NODE4) |
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.
So all these are VM envs. Why are the names different? Am I missing something?
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.
Yeah all are VM env vars. WORKER2
meant for the third VM node part of swarm cluster. CI_NODE4
was added to simplify installation process.
this will be simplified further as part of #1274.
.drone.sec
Outdated
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.AcZirDxpdVFFNvltNw_H_swfaRX4Epc7vLS3smlCzb65b4NFCjRi5tYpzDgLESl0m2Ww78YoYo4b65cxFfOAM803m54j7RYzHyxx7EbX7UXd-FwI8D8kIjK53zcBzzrjgosbgu0gUdScgKSOMvAcW2fsd9TXqSLmA0LNcRj63kr8wFJoyMdf_io-y48EKZIBDlqp3Hx8hN1BoSEOshPzBPxVRMFMPvA7FcCeEjiWyNU8PdX-uJm2o6sfaFRYmwXN8fD0S2hw_lknYwkQnnyH24L4MiSIh-Heq_dXToFE0IcLZtETs90aK1QWVX6r_n5hyNXoxVh0HlJ_QfUMKXdVeA.GhjAYQVp8kXkGAt3.hh7RH2vXi7WF1_zuY8hBUsYlnWI3nRJ-PvtRYuc8tUEAnCJ0d_T7dXFawxAzwJlj_Fpg5c45-g6te5iv4ota0qDt7zQSX0VRPDkfEKt5fdoY5u2tSo8buvrKebGy44AHoh3rE8NqxuKeR9QoV_mqMNcI4xvT_-USuxC1FDUYtMJijwB2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DLBh2QEo3PJe81-dGEaRbytQdLh6JzpgpCzpLO5Lqhuazgr1yAyhPb_r02MV0iHF8w4gm-BK5VSTSWDcrg8eiLmHvjZVwORTR9UOO1lX5Cl8gEJr1drngn64zW2p-KxDKW4_E9M1MlKj6y3GlDc5EMHvbMME3QORcxU1Om7qO5RHrbqK7qwd1C6W5_iHqZ-cfRQaa_nBXw-_Kp3K4I8DdvZ3PQ0hRaCNunjseVzJkD1o6vpMIrWRnIL3Y2LQH19OkIk3-qkkr_I8YmYxE4iarUcnAoPddeYM4GxrTvZ-GqSdm3eaCGjiItqzI34r3a7fZt3vaGYISsDVywDSx3iHqg2dxk97FQ8l5J30CfSO8YPtzy5xPL5X3-5rWaIQ2kTIBI_ukehW9FvVUZgq-V3NBme-CRip5L729QZFMB_WoorE53nnDiHdtH5VDjAKphKTJBXMcjlV2xvyRa65ZGrmW-BnXWkES5HCk-Q1Y9liLyynbOIqR_oT-eAud-Yq6xab0iNUJEs2XPg6V2lX6i3ZqrY7mvkWPsc.wYPjfkLw2yPtkoa6qcourg |
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.
Can we avoid including this file in the PR? It looks like this file always shows up in your PRs :)
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.
it is required to sign the .drone.yml for the security purpose, otherwise CI fails.
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.
Why don't others run into the same issue?
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.
anyone who touches .drone.yml they are required to add .sec file as well ..
.drone.yml
Outdated
- # | ||
- echo "=> Running tests on ESX_6.5" `date` > /dev/null | ||
- # | ||
- ./misc/drone-scripts/deploy-and-test-wrapper.sh runtests $GOVC_URL_6_5 $VM1 $VM2 $$BUILD_NUMBER < /dev/null | ||
- # | ||
- echo "=> Running tests on VSAN ESX_6.5" `date` > /dev/null | ||
- # | ||
- export VM1=`$GOVC_GET_IP photon.vsan` | ||
- export VM1=$CI_NODE4 | ||
- export VM2=`$GOVC_GET_IP Ubuntu.14.04` |
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.
Since we are using variable name in above line, let's also use variable name (i.e. $WORKER2) in this line.
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.
sure!
@@ -114,15 +114,17 @@ build: | |||
- export WORKER1=$VM2 | |||
- export WORKER2=`$GOVC_GET_IP Ubuntu.14.04` | |||
- # | |||
- ./misc/drone-scripts/deploy-and-test-wrapper.sh deployplugin $GOVC_URL_6_5 $VM1 $VM2 $$BUILD_NUMBER < /dev/null | |||
- export CI_NODE4=`$GOVC_GET_IP photon.vsan` |
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.
How are we going to use this new VM? Just want to know if we can have a better name for this VM based on the usage info (what tests need this new VM?).
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.
+1
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.
CI_NODE4 is used as part of the second run running tests on ESX 6.5 VSAN
The variable is added to simplify installation ... there is no need to retrieve or use this new variable other than installation
443d3ef
to
6f1fdc6
Compare
@shaominchen Addressed one comment and CI is running now. |
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.
LGTM.
fixes first action item #1313
Our deployment scripts performs installation/cleanup for VIB and plugin multiple times while running against CI.