-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update MacOS Version for ODBC Driver #136
Update MacOS Version for ODBC Driver #136
Conversation
Codecov Report
@@ Coverage Diff @@
## integ-update-macos-version #136 +/- ##
=============================================================
Coverage 95.21% 95.21%
Complexity 3137 3137
=============================================================
Files 313 313
Lines 8441 8441
Branches 620 620
=============================================================
Hits 8037 8037
Misses 350 350
Partials 54 54
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Can you use already installed |
Is it possible to fix (windows build):
|
d8922fa
to
000cdce
Compare
e7bfdcb
to
83e0598
Compare
.github/workflows/sql-odbc-main.yml
Outdated
@@ -103,7 +102,7 @@ jobs: | |||
- name: build-installer | |||
if: success() | |||
run: | | |||
.\scripts\build_installer.ps1 Release Win32 .\src $Env:ODBC_BUILD_PATH $Env:AWS_SDK_INSTALL_PATH | |||
.\scripts\build_installer.ps1 Release Win32 .\src $Env:ODBC_BUILD_PATH .\src\vcpkg_installed\x86-windows |
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.
we should consider making .\src\vcpkg_installed
an environment variable with ODBC_BUILD_PATH
@@ -1150,10 +1150,6 @@ class basic_array : public basic_value<Traits, array_tag> | |||
: base_type(alloc) | |||
{} | |||
|
|||
basic_array(const basic_array& other) |
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.
???
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.
xcode 13.3 produces error upon compilation:
src/../libraries/rabbit/include/rabbit.hpp:1153:3: error: definition of implicit copy assignment operator for 'basic_array<rabbit::details::value_ref_traits<rapidjson::UTF8<>>>' is deprecated because it has a user-provided copy constructor [-Werror,-Wdeprecated-copy-with-user-provided-copy]
basic_array(const basic_array& other)
@@ -1,2 +1,6 @@ | |||
$WORKING_DIR = (Get-Location).Path | |||
$env:VCPKG_DEFAULT_TRIPLET = 'x64-windows' | |||
cd src | |||
vcpkg install |
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.
is there any sanity check would could log in case vcpkg install 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.
Not too sure how we would accomplish this nicely. Build errors will output to CMakeOutput.log
and CMakeError.log
. Vcpkg
errors will output to STDOUT and CMake will fail to find the libraries. Users can check their vcpkg
logs but that can be dependent on how and where vcpkg
is installed. We could output STDOUT to some file for vcpkg
, but that doesn't seem overly useful imo.
83e0598
to
e65769b
Compare
@@ -3,6 +3,7 @@ | |||
#include "pch.h" | |||
#include "unit_test_helper.h" | |||
#include "it_odbc_helper.h" | |||
#include <algorithm> |
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.
Avoids compilation error:
error C2039: 'any_of': is not a member of 'std'
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.
Nicely done!
Why did you change from std string and util methods to AWS SDK ones in a few places? It's fine just want to understand.
Also could you make sure all shell scripts have #!/bin/bash
? I noticed that the build_mac*
scripts do not.
@@ -3,6 +3,7 @@ | |||
#include "pch.h" | |||
#include "unit_test_helper.h" | |||
#include "it_odbc_helper.h" | |||
#include <algorithm> |
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 come this is necessary?
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.
Avoids compilation error in VS 2022:
error C2039: 'any_of': is not a member of 'std'
VS 2022 give compiler errors for using non-aws string types in
|
e65769b
to
8534cb1
Compare
.github/workflows/sql-odbc-main.yml
Outdated
VCPKG_X64_INSTALL_PATH: ".\src\vcpkg_installed\x64-windows" | ||
VCPKG_X86_INSTALL_PATH: ".\src\vcpkg_installed\x86-windows" |
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.
No need to double backslash \\
or forward slash /
here?
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.
Some magic? Strange I would think it wouldn't work either now that I see it, but the installer failed before I made this change. I updated to use double backslashes but I'm not sure why they aren't required.
I'm sure that no changes were done without a reason, but it is impossible to validate them without knowing the context. |
8534cb1
to
cb9029e
Compare
…s to be included through vcpkg. Fixed compilation errors with newer compilers on libraries required to build from source. Signed-off-by: forestmvey <[email protected]>
cb9029e
to
7bdf3e2
Compare
That's a good idea and would've been a smart thing to include when opening this PR. I have updated the description, thanks for the input. |
Description
Updating MacOS from
10.15
to12
poses compilation issues for librariesaws-sdk-cpp
andgoogletest
. A better solution than building from source is to manage dependencies through a package manager likevcpkg
. Librariesrapidjson
andrabbit
I could not eliminate building from source completely. Windows failed to compile with Visual C++ 2019, andrabbit
is not included in vcpkg.Compilation Error Fixes -
VS 2022:
<algorith>
includesstd::string
toAws::String
XCode 13.3:
basic_array(const basic_array& other)
sql-odbc/libraries/rabbit/include/rabbit.hppRemoval of
bindpara_msg_to_utf8
function as it is never used, contains unused variables, and has potential for exploit when executingmalloc(strlen(buff))
with a non-null terminated buffer.Multiple deletions for un-used variables made throughout.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.