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
#4496 - Add gems cbor and msgpack and allow using a package from an openstudio-gems PR #4502
Conversation
…o read that to make sure you use the right openstudio3-gems tar.gz especially when switching branches on CI.
set(OPENSTUDIO_GEMS_BASEURL "http://openstudio-resources.s3.amazonaws.com/dependencies") | ||
|
||
# To use the package produced by a PR to https://github.com/NREL/openstudio-gems | ||
set(USE_OPENSTUDIO_GEMS_PR TRUE) |
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.
This would be set to FALSE normally.
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.
Nice option to enable custom gem builds
set(USE_OPENSTUDIO_GEMS_PR TRUE) | ||
if (USE_OPENSTUDIO_GEMS_PR) | ||
set(OPENSTUDIO_GEMS_BASEURL "http://openstudio-sdk-dependencies.s3.amazonaws.com/openstudio-gems") | ||
set(OPENSTUDIO_GEMS_PR_NUMBER "PR-51") |
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.
This is the PR-number in question, as that's how jenkins uploads them.
# If the extracted dir has a version.txt, it must match, otherwise remove it | ||
if(EXISTS "${OPENSTUDIO_GEMS_DIR}/version.txt") | ||
file(READ ${OPENSTUDIO_GEMS_DIR}/version.txt EXTRACTED_TAR_GZ_NAME) | ||
string(STRIP ${EXTRACTED_TAR_GZ_NAME} EXTRACTED_TAR_GZ_NAME) | ||
if(NOT EXTRACTED_TAR_GZ_NAME STREQUAL OPENSTUDIO_GEMS_ZIP_FILENAME) | ||
message("Extracted gem dir ${OPENSTUDIO_GEMS_DIR} has the wrong version, removing it") | ||
file(REMOVE_RECURSE "${OPENSTUDIO_GEMS_DIR}") | ||
endif() | ||
else() | ||
# Until the openstudio-gems package from my PR-51 goes onto develop, assume you want to remove it to avoid leaving it in place when you switch back to develop | ||
if(EXISTS "${OPENSTUDIO_GEMS_DIR}" AND NOT USE_OPENSTUDIO_GEMS_PR) | ||
file(REMOVE_RECURSE "${OPENSTUDIO_GEMS_DIR}") | ||
endif() | ||
endif() | ||
|
||
# If you do not have the extracted dir, then extract the tar.gz | ||
if(NOT EXISTS "${OPENSTUDIO_GEMS_DIR}") |
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.
See my comment over there NREL/openstudio-gems#51 (comment) for why this is needed
Write the tar.gz name into a text file at the root of the extracted dir, so we can get it from CMake to ensure we always use the right version when switching branches: checking that we have the .tar.gz locally and it has the right MD5sum doesn't suffice to tell that the extracted directory is the right now, as you may have multiple openstudio3-gems tar.gzs.
…edHelp wasn't picking up the init_cbor/init_msgpack
…tificate error), so I retriggered it
@jmarrec This will be nice to have these. Good to see it takes up such little space too. |
…ms package that only includes msgpack (which builds fine)
e59a910
to
20ecc9b
Compare
The incremental jenkins runners would need a clean build. I launched a nightly build (back when I had both cbor and messagepack): https://ci.commercialbuildings.dev/blue/organizations/jenkins/openstudio-develop-nightly/detail/openstudio-develop-nightly/1309/pipeline/224 As can be seen, both ubuntus and the mac one are passing the tests with both cbor and msgpack: 3461/3466 Test #3462: CLITest-test_embedded_ruby-cbor ....................................................................................................... Passed 8.50 sec 3462/3466 Test #3463: CLITest-test_embedded_ruby-msgpack .................................................................................................... Passed 8.07 sec I'll kill it because I KNOW windows will fail. Will relaunch with only msgpack. |
Relaunched full build with msgpack only at https://ci.commercialbuildings.dev/blue/organizations/jenkins/openstudio-develop-nightly/detail/openstudio-develop-nightly/1310/pipeline |
@tijcolem the full build is happy with it: windows: https://ci.commercialbuildings.dev/blue/organizations/jenkins/openstudio-develop-nightly/detail/openstudio-develop-nightly/1310/pipeline#step-282-log-1192 |
CI Results for 56e4c0e:
|
Pull request overview
Pull Request Author
src/model/test
)src/energyplus/Test
)src/osversion/VersionTranslator.cpp
)Labels:
IDDChange
APIChange
Pull Request - Ready for CI
so that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.