Skip to content

Commit

Permalink
update a few libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
pilvikala committed Nov 25, 2021
1 parent 2cdee5f commit 854cd7e
Show file tree
Hide file tree
Showing 5,870 changed files with 794,996 additions and 1,177,580 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 7 additions & 0 deletions vendor/aws-sdk-cpp-1.3.50/.github/ISSUE_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### What platform/OS are you using?

### What compiler are you using? what version?

### What's your CMake arguments?

### Can you provide a TRACE level log? (sanitize any sensitive information)
82 changes: 82 additions & 0 deletions vendor/aws-sdk-cpp-1.3.50/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# IDE Artifacts
.metadata
.build
.idea
*.d
Debug
Release
*~
*#
*.iml
tags

#vim swap file
*.swp

#compiled python files
*.pyc

#Vagrant stuff
Vagrantfile
.vagrant

#Mac stuff
.DS_Store

#doxygen
doxygen/html/
doxygen/latex/


#cmake artifacts
dependencies
_build
build
_build_*

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

# Android Junk
AndroidTestOutput.txt
curl
external
openssl
zlib
credentials
toolchains/android/

# codegen
code-generation/generator/target/

#config output
aws-cpp-sdk-core/include/aws/core/SDKConfig.h

#nuget
*.nupkg
11 changes: 11 additions & 0 deletions vendor/aws-sdk-cpp-1.3.50/CI/BuildMyCode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
if [ $# -ne 2 ]; then
echo " Usage BuildMyCode <branchName> <cmakeFlags>"
exit 1
fi
branch=$1
cmakeFlags=$2
json='{ "branch": "'$branch'", "cmakeFlags": "'$cmakeFlags'"}'
echo $json >BuildSpec.json
zip -r BuildSpec.zip BuildSpec.json
aws s3 cp BuildSpec.zip s3://aws-sdk-cpp-pipeline-sdks-team/BuildSpec.zip
40 changes: 40 additions & 0 deletions vendor/aws-sdk-cpp-1.3.50/CI/ConstructReleaseDoc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/python

import argparse
import shutil
import subprocess
import re
import subprocess
import os
import zipfile
import io
import json

def Main():

parser = argparse.ArgumentParser(description="Creates a release doc based on a list of changes.")
parser.add_argument("--changesList", action="store")

args = vars( parser.parse_args() )

changes = args["changesList"]

changeDoc = {}

changeList = changes.split()
releases = []
release = {}
features = []

for change in changeList:
feature = {}
feature["service-name"] = change.replace("aws-cpp-sdk-", "")
features.append(feature)

release["features"] = features
releases.append(release)
changeDoc["releases"] = releases

print(json.dumps(changeDoc))

Main()
20 changes: 20 additions & 0 deletions vendor/aws-sdk-cpp-1.3.50/CI/DetectDirectoryChanges
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

FILES_CHANGED_STR=`git diff --name-only $1@{1} $1`
FILES_CHANGED=${FILES_CHANGED_STR}

declare -A DIRS_SET

for FILE in $FILES_CHANGED ; do
DIR=`echo $FILE | cut -d "/" -f1`

if test "${DIRS_SET[${DIR}]+isset}"
then
continue
else
echo $DIR
fi
DIRS_SET[${DIR}]=""
done


21 changes: 21 additions & 0 deletions vendor/aws-sdk-cpp-1.3.50/CI/DetermineBuilds
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

CURDIR="$(dirname "$(readlink -f "$0")")"
CHANGED_DIRS=`$CURDIR/DetectDirectoryChanges $1`

case $CHANGED_DIRS in
*"aws-cpp-sdk-core"*)
;&
*"CMakeLists.txt"*)
;&
*"cmake"*)
;&
*"code-generation"*)
echo "-DBUILD_ONLY=\"\""
exit 0
;;
*)
esac

BUILD_ONLY_OUT="-DBUILD_ONLY=\"${CHANGED_DIRS//$'\n'/';'}\""
echo ${BUILD_ONLY_OUT//$'aws-cpp-sdk-'/''}
17 changes: 17 additions & 0 deletions vendor/aws-sdk-cpp-1.3.50/CI/ExtractBuildArgs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/python
import sys;
import json;

if len(sys.argv) != 2:
print >> sys.stderr, " Usage: python ExtractBuildArgs.py <ArgName>"
exit (-1)

try:
data = json.load(open('BuildSpec.json'))
if sys.argv[1] == "cmakeFlags" and data["cmakeFlags"] != "":
print data["cmakeFlags"]
elif sys.argv[1] == "branch" and data["branch"] != "":
print data["branch"]
except:
print >> sys.stderr, "No related args found in BuildSpec.json"
exit(-1)
9 changes: 9 additions & 0 deletions vendor/aws-sdk-cpp-1.3.50/CI/PackSourceBySpec.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

branch =$(python aws-sdk-cpp/CI/ExtractBuildArgs.py branch)
git clone [email protected]:awslabs/aws-sdk-cpp-staging.git aws-sdk-cpp
cd aws-sdk-cpp
git reset --hard HEAD
git checkout master
git pull
git checkout $branch
12 changes: 12 additions & 0 deletions vendor/aws-sdk-cpp-1.3.50/CI/check_not_a_release
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

rm -f ./not_a_release
aws s3 cp --quiet s3://aws-sdk-cpp-pipeline-sdks-team/not_a_release ./not_a_release

if [ -f ./not_a_release ]; then
aws s3 rm s3://aws-sdk-cpp-pipeline-sdks-team/not_a_release
exit 1
fi

exit 0

57 changes: 57 additions & 0 deletions vendor/aws-sdk-cpp-1.3.50/CI/handle_release_notification.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@

from __future__ import print_function

import json
import zipfile
import boto3
from botocore.exceptions import ClientError

print('Loading function')
bucket_name = 'aws-sdk-cpp-pipeline-sdks-team'
key = 'pending-releases.zip'
temp_archive_file = '/tmp/pending_releases.zip'
artifact = 'pending_releases'
temp_artifact_file = '/tmp/pending_releases'
s3 = boto3.client('s3')

def lambda_handler(event, context):
message = event['Records'][0]['Sns']['Message']
print("From SNS: " + message)

releasesDoc = {}
releasesDoc['releases'] = []

pendingReleases = None

try:
pendingReleases = s3.get_object(Bucket=bucket_name, Key=key)
body_stream_to_file(pendingReleases["Body"].read())
releasesDoc = read_zipped_release_doc()
except ClientError as e:
print("Couldn't pull doc, assuming it is empty. exception " + e.message)

releasesDoc['releases'].append(json.loads(message)["release"])
write_zipped_release_doc(releasesDoc)
with open(temp_archive_file) as archive:
s3.put_object(Bucket=bucket_name, Key=key, Body=archive.read())

return message

def read_zipped_release_doc():
archive = zipfile.ZipFile(temp_archive_file, 'r')
with archive.open(artifact) as artifactFile:
return json.loads(artifactFile.read())

def write_zipped_release_doc(doc):
releasesDocStr = json.dumps(doc)
print("New Release Doc: " + releasesDocStr)
with open(temp_artifact_file, "w") as artifactFile:
artifactFile.write(releasesDocStr)

with zipfile.ZipFile(temp_archive_file, 'w') as archiveStream:
archiveStream.write(temp_artifact_file, artifact)

def body_stream_to_file(body):
with open(temp_archive_file, 'w') as archiveFile:
archiveFile.write(body)

89 changes: 89 additions & 0 deletions vendor/aws-sdk-cpp-1.3.50/CI/move_release_doc_to_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@

from __future__ import print_function

import json
import zipfile
import boto3
import os
import re
import sys
import argparse
from botocore.exceptions import ClientError
import requests

import requests.packages.urllib3
requests.packages.urllib3.disable_warnings()

temp_archive_file = 'models.zip'

def main():
parser = argparse.ArgumentParser()
parser.add_argument('-r', '--releaseDoc')
parser.add_argument('-m', '--modelsDir')
args = parser.parse_args()

releaseDocPath = args.releaseDoc
modelsDir = args.modelsDir

print('Release Doc path {0}'.format(releaseDocPath))
print('Models Directory {0}'.format(modelsDir))

releaseDoc = {}

pendingReleases = None

with open(releaseDocPath, "r") as releaseDocFileStream:
releaseDoc = json.loads(releaseDocFileStream.read())

if(len(releaseDoc) == 0 or len(releaseDoc["releases"]) == 0):
return

for release in releaseDoc["releases"]:
for feature in release["features"]:
if feature["c2jModels"] != None:
response = requests.get(feature["c2jModels"])
if response.status_code != 200:
print("Error downloading {0} artifacts skipping.", json.dumps(feature))
continue

body_stream_to_file(response.content)
copy_model_files(modelsDir)
cat_release_notes(feature["releaseNotes"], modelsDir)

cat_pending_releases(release["id"], modelsDir)

emptyReleaseDoc = "{ \"releases\": []}"

with open(releaseDocPath, "w") as emptyReleaseFile:
emptyReleaseFile.write(emptyReleaseDoc)

def copy_model_files(models_dir):
archive = zipfile.ZipFile(temp_archive_file, 'r')
archive.debug = 3
for info in archive.infolist():
print(info.filename)
if re.match(r'output/.*\.normal\.json', info.filename):
outputPath = os.path.join(models_dir, os.path.basename(info.filename))
print("copying {0} to {1}".format(info.filename, outputPath))
fileHandle = archive.open(info.filename, 'r')
fileOutput = fileHandle.read()

with open(outputPath, 'wb') as destination:
destination.write(fileOutput)

fileHandle.close()

def body_stream_to_file(body):
with open(temp_archive_file, 'w') as archiveFile:
archiveFile.write(body)

def cat_release_notes(releaseNotes, models_path):
with open(os.path.join(models_path, "release_notes"), "a") as releaseNotesFile:
releaseNotesFile.write(releaseNotes + "\n\n")

def cat_pending_releases(release_guid, models_path):
with open(os.path.join(models_path, "pending_releases"), "a") as pendingReleasesFile:
pendingReleasesFile.write(release_guid + "\n")

if __name__ == "__main__":
main()
8 changes: 8 additions & 0 deletions vendor/aws-sdk-cpp-1.3.50/CI/publish_release_notification
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

IFS=$'\n' read -d '' -r -a releases < $1/pending_releases
for i in "${releases[@]}"
do
aws sqs send-message --debug --message-group-id "needlessField" --queue-url "$4" --message-body "{ \"releaseId\": \"$i\", \"language\": \"CPP\", \"releaseState\":\"$2\", \"statusMessage\":\"$3\" }" --region us-west-2
done

Loading

0 comments on commit 854cd7e

Please sign in to comment.