Skip to content

Commit

Permalink
Fix paths to inlined WinFV testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
nelljerram committed Feb 9, 2023
1 parent 6f9bb65 commit cedaabe
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .semaphore/semaphore-scheduled-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ blocks:
- artifact push job ${REPORT_DIR} --destination semaphore/test-results --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- artifact push job ${LOGS_DIR} --destination semaphore/logs --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- aws ec2 delete-key-pair --key-name ${KEYPAIR_NAME} || true
- cd ~/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
- cd ~/calico/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
env_vars:
- name: SEMAPHORE_ARTIFACT_EXPIRY
value: 2w
Expand Down Expand Up @@ -578,7 +578,7 @@ blocks:
- artifact push job ${REPORT_DIR} --destination semaphore/test-results --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- artifact push job ${LOGS_DIR} --destination semaphore/logs --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- aws ec2 delete-key-pair --key-name ${KEYPAIR_NAME} || true
- cd ~/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
- cd ~/calico/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
env_vars:
- name: SEMAPHORE_ARTIFACT_EXPIRY
value: 2w
Expand Down
4 changes: 2 additions & 2 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ blocks:
- artifact push job ${REPORT_DIR} --destination semaphore/test-results --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- artifact push job ${LOGS_DIR} --destination semaphore/logs --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- aws ec2 delete-key-pair --key-name ${KEYPAIR_NAME} || true
- cd ~/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
- cd ~/calico/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
env_vars:
- name: SEMAPHORE_ARTIFACT_EXPIRY
value: 2w
Expand Down Expand Up @@ -578,7 +578,7 @@ blocks:
- artifact push job ${REPORT_DIR} --destination semaphore/test-results --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- artifact push job ${LOGS_DIR} --destination semaphore/logs --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- aws ec2 delete-key-pair --key-name ${KEYPAIR_NAME} || true
- cd ~/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
- cd ~/calico/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
env_vars:
- name: SEMAPHORE_ARTIFACT_EXPIRY
value: 2w
Expand Down
4 changes: 2 additions & 2 deletions .semaphore/semaphore.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ blocks:
- artifact push job ${REPORT_DIR} --destination semaphore/test-results --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- artifact push job ${LOGS_DIR} --destination semaphore/logs --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- aws ec2 delete-key-pair --key-name ${KEYPAIR_NAME} || true
- cd ~/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
- cd ~/calico/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
env_vars:
- name: SEMAPHORE_ARTIFACT_EXPIRY
value: 2w
Expand Down Expand Up @@ -576,7 +576,7 @@ blocks:
- artifact push job ${REPORT_DIR} --destination semaphore/test-results --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- artifact push job ${LOGS_DIR} --destination semaphore/logs --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- aws ec2 delete-key-pair --key-name ${KEYPAIR_NAME} || true
- cd ~/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
- cd ~/calico/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
env_vars:
- name: SEMAPHORE_ARTIFACT_EXPIRY
value: 2w
Expand Down
2 changes: 1 addition & 1 deletion cni-plugin/.semaphore/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ blocks:
- name: Clean up winfv aws resources
commands:
- aws ec2 delete-key-pair --key-name ${KEYPAIR_NAME} || true
- cd process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}-containerd" ./setup-fv.sh -q -u || true
- cd ~/calico/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}-containerd" ./setup-fv.sh -q -u || true
- NAME_PREFIX="${CLUSTER_NAME}-docker" ./setup-fv.sh -q -u | true
env_vars:
- name: AWS_DEFAULT_REGION
Expand Down
6 changes: 3 additions & 3 deletions cni-plugin/.semaphore/run-win-fv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
set -x

FV_DIR="/home/semaphore/process/testing/winfv"
FV_DIR="/home/semaphore/calico/process/testing/winfv"
CONTAINER_RUNTIME="${CONTAINER_RUNTIME:=docker}"

pushd ${FV_DIR}
Expand Down Expand Up @@ -34,7 +34,7 @@ ${SSH_CMD} time /home/ubuntu/winfv/wait-report.sh
${SSH_CMD} ls -ltr /home/ubuntu/report
popd

# Get results and logs
# Get results and logs
SCP_CMD=$(echo scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i ${FV_DIR}/${MASTER_CONNECT_KEY})
${SCP_CMD} -r ubuntu@${MASTER_IP}:/home/ubuntu/report /home/semaphore

Expand All @@ -57,5 +57,5 @@ then
echo "Windows FV return error."
exit 1
fi

echo "Run Windows FV is done."
4 changes: 2 additions & 2 deletions cni-plugin/.semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ blocks:
- artifact push job ${REPORT_DIR} --destination semaphore/test-results --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- artifact push job ${LOGS_DIR} --destination semaphore/logs --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- aws ec2 delete-key-pair --key-name ${KEYPAIR_NAME} || true
- cd ~/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
- cd ~/calico/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
env_vars:
- name: SEMAPHORE_ARTIFACT_EXPIRY
value: 2w
Expand Down Expand Up @@ -152,7 +152,7 @@ blocks:
- artifact push job ${REPORT_DIR} --destination semaphore/test-results --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- artifact push job ${LOGS_DIR} --destination semaphore/logs --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- aws ec2 delete-key-pair --key-name ${KEYPAIR_NAME} || true
- cd ~/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
- cd ~/calico/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" ./setup-fv.sh -q -u
env_vars:
- name: SEMAPHORE_ARTIFACT_EXPIRY
value: 2w
Expand Down
2 changes: 1 addition & 1 deletion felix/.semaphore/run-win-fv
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

set -ex

FV_DIR="/home/semaphore/process/testing/winfv"
FV_DIR="/home/semaphore/calico/process/testing/winfv"

pushd ${FV_DIR}
# Prepare local files
Expand Down
2 changes: 1 addition & 1 deletion felix/.semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ blocks:
- artifact push job ${REPORT_DIR} --destination semaphore/test-results --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- artifact push job ${LOGS_DIR} --destination semaphore/logs --expire-in ${SEMAPHORE_ARTIFACT_EXPIRY} || true
- aws ec2 delete-key-pair --key-name ${KEYPAIR_NAME} || true
- cd ~/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" /bin/bash -x ./setup-fv.sh -q -u
- cd ~/calico/process/testing/winfv && NAME_PREFIX="${CLUSTER_NAME}" /bin/bash -x ./setup-fv.sh -q -u
env_vars:
- name: SEMAPHORE_ARTIFACT_EXPIRY
value: 2w
Expand Down
2 changes: 1 addition & 1 deletion process/testing/winfv/setup-fv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ function show_all_instances() {

echo "Linux node: ubuntu@${LINUX_EIP}"
echo "Windows node: ${WINDOWS_EIP}"
echo "For credentials and other info, attach into the running job and go to ~/process/testing/winfv and `cat connect`"
echo "For credentials and other info, attach into the running job and go to ~/calico/process/testing/winfv and `cat connect`"

CONNECT_FILE="connect"
echo
Expand Down

0 comments on commit cedaabe

Please sign in to comment.