[ https://issues.apache.org/jira/browse/GEODE-8949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286616#comment-17286616 ]
ASF GitHub Bot commented on GEODE-8949: --------------------------------------- moleske commented on a change in pull request #746: URL: https://github.com/apache/geode-native/pull/746#discussion_r578605951 ########## File path: ci/lib/templates.lib.txt ########## @@ -0,0 +1,253 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +(@ load("@ytt:data", "data") -@) +(@ load("functions.lib.yml", + "gci_label_value", + "image_family_name") +-@) + +(@ def google_variables(): -@) +GOOGLE_PROJECT=(@=data.values.google.project @) +GOOGLE_ZONE=(@=data.values.google.zone @) +(@- end @) + + +(@ def instance_variables(): -@) +INSTANCE_USER=build +INSTANCE_DIR=$(pwd)/instance + +if [ ! -d "${INSTANCE_DIR}" ]; then + echo "${INSTANCE_DIR} not found." + exit 1 +fi +(@- end @) + +(@ def remote_functions(): -@) +(@=instance_variables() @) + +SSH_OPTIONS=${SSH_OPTIONS:-"-o StrictHostKeyChecking=no -o PasswordAuthentication=no"} + +ssh_key_file=${INSTANCE_DIR}/identity +if [ ! -r "${ssh_key_file}" ]; then + echo "${ssh_key_file} not readable." + exit 1 +fi + +instance_file=${INSTANCE_DIR}/instance.sh +if [ ! -r "${instance_file}" ]; then + echo "${instance_file} not readable." + exit 1 +fi + +external_ip=$(source ${instance_file} && echo -n ${networkInterfaces_accessConfigs_natIP}) + +function remote_shell { + ssh ${SSH_OPTIONS} -i ${ssh_key_file} ${INSTANCE_USER}@${external_ip} "$@" +} + +function remote_download { + scp ${SSH_OPTIONS} -i ${ssh_key_file} -q -r "${INSTANCE_USER}@${external_ip}:${1}" "$2" +} + +function remote_download_directory { + ssh ${SSH_OPTIONS} -i ${ssh_key_file} ${INSTANCE_USER}@${external_ip} tar -C $(dirname ${1}) -czf - $(basename ${1}) | tar -C ${2} -zxf - +} + +function remote_upload { + scp ${SSH_OPTIONS} -i ${ssh_key_file} -q -r "$1" "${INSTANCE_USER}@${external_ip}:${2}" +} + +(@- end @) + +(@ def run_cpp_unit_tests(): -@) +set -ueo pipefail +(@= remote_functions() @) +remote_shell cmake -E chdir build/cppcache/test ctest -C ${CMAKE_CONFIG} -j8 --timeout=500 --output-on-failure Review comment: Here's an [example](https://github.com/moleske/geode-native/runs/1923184473) where I use `--repeat until-pass:3` and `--schedule-random` while running your PR in my shadow pipeline. It basically just runs the failed test immediately again ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Create a Continuous Integration Pipeline > ---------------------------------------- > > Key: GEODE-8949 > URL: https://issues.apache.org/jira/browse/GEODE-8949 > Project: Geode > Issue Type: Improvement > Components: native client > Reporter: Michael Martell > Priority: Major > Labels: pull-request-available > > This will be our open source CI for publishing to the Apache Software > Foundation. Two primary tenets are: > * based on Concourse > * PRs will trigger the CI pipeline and can't be merged until they pass the CI > Note: The bulk of this work has been completed in draft [PR > #716|http://github.com/apache/geode-native/pull/716]. See that PR for further > details. -- This message was sent by Atlassian Jira (v8.3.4#803005)