Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/candidate-8.12.x' into candidate…
Browse files Browse the repository at this point in the history
…-9.0.x

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
  • Loading branch information
ghalliday committed Nov 2, 2023
2 parents b4b2e00 + 646eb31 commit 835efad
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 1 deletion.
8 changes: 8 additions & 0 deletions build-config.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@
#define BUILD_VERSION_POINT ${HPCC_POINT}
#endif

#ifndef BUILD_MATURITY
#define BUILD_MATURITY "${HPCC_MATURITY}"
#endif

#ifndef BUILD_TAG_TIMESTAMP
#define BUILD_TAG_TIMESTAMP "${HPCC_TAG_TIMESTAMP}"
#endif

#ifndef BASE_BUILD_TAG
#cmakedefine BASE_BUILD_TAG "${BASE_BUILD_TAG}"
#endif
Expand Down
7 changes: 7 additions & 0 deletions esp/scm/ws_workunits_req_resp.ecm
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,7 @@ ESPresponse [exceptions_inline] WUCreateZAPInfoResponse

ESPrequest [nil_remove] WUCheckFeaturesRequest
{
boolean IncludeFullVersion(false);
};

ESPresponse [exceptions_inline] WUCheckFeaturesResponse
Expand All @@ -946,6 +947,12 @@ ESPresponse [exceptions_inline] WUCheckFeaturesResponse
int BuildVersionPoint;
unsigned maxRequestEntityLength;
ESPStruct DeploymentFeatures Deployment;
//The following fields are only generated if IncludeFullVersion is set. Normally the fields would be versioned,
//but this change is applied to a much earlier version and the version number has been incremented several times,
//so that approach cannot be used.
string BuildVersion;
string BuildMaturity;
string BuildTagTimestamp;
};

ESPrequest [nil_remove] WUGetStatsRequest
Expand Down
7 changes: 7 additions & 0 deletions esp/services/ws_workunits/ws_workunitsService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5070,6 +5070,13 @@ bool CWsWorkunitsEx::onWUCheckFeatures(IEspContext &context, IEspWUCheckFeatures
resp.setBuildVersionMajor(hpccBuildInfo.buildVersionMajor);
resp.setBuildVersionMinor(hpccBuildInfo.buildVersionMinor);
resp.setBuildVersionPoint(hpccBuildInfo.buildVersionPoint);
//This does not check version because a consistent version could not be used for all the places it was included
if (req.getIncludeFullVersion())
{
resp.setBuildVersion(hpccBuildInfo.buildTag);
resp.setBuildMaturity(hpccBuildInfo.buildMaturity);
resp.setBuildTagTimestamp(hpccBuildInfo.buildTagTimestamp);
}
resp.setMaxRequestEntityLength(maxRequestEntityLength);
resp.updateDeployment().setUseCompression(true);
return true;
Expand Down
2 changes: 2 additions & 0 deletions system/jlib/jutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ static void initBuildVars()
hpccBuildInfo.buildVersionMinor = BUILD_VERSION_MINOR;
hpccBuildInfo.buildVersionPoint = BUILD_VERSION_POINT;
hpccBuildInfo.buildVersion = estringify(BUILD_VERSION_MAJOR) "." estringify(BUILD_VERSION_MINOR) "." estringify(BUILD_VERSION_POINT);
hpccBuildInfo.buildMaturity = BUILD_MATURITY;
hpccBuildInfo.buildTagTimestamp = BUILD_TAG_TIMESTAMP;

hpccBuildInfo.dirName = DIR_NAME;
hpccBuildInfo.prefix = PREFIX;
Expand Down
2 changes: 2 additions & 0 deletions system/jlib/jutil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,8 @@ struct HPCCBuildInfo
unsigned buildVersionMinor;
unsigned buildVersionPoint;
const char *buildVersion;
const char *buildMaturity;
const char *buildTagTimestamp;
};

extern jlib_decl HPCCBuildInfo hpccBuildInfo;
Expand Down
2 changes: 1 addition & 1 deletion vcpkg
Submodule vcpkg updated 7049 files

0 comments on commit 835efad

Please sign in to comment.