Skip to content
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

Release/2.8.1 #54

Merged
merged 58 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
3914c58
adding 0-padding for microseconds of timestamp in logging.h
stephen-dixon Sep 11, 2024
f5b818b
fixing initial fatclient errors trying to get help::help working thro…
stephen-dixon Oct 30, 2024
5730aef
Update github actions workflow versions and pypa/cibuildwheel
adam-parker1 Nov 20, 2024
12afedb
Add macos-15 to the build-platforms
adam-parker1 Nov 20, 2024
66220ce
Adding chunk downloading to BYTES plugin.
jholloc Dec 9, 2024
b5b35db
Not closing file in readBytesNonOptimally.cpp
jholloc Dec 9, 2024
ecf2f20
Bumping protocol version to 10 - CAPNP data is now transferred as raw…
jholloc Dec 10, 2024
f5399bd
Undoing change to client protocol version for now.
jholloc Dec 10, 2024
ace4f64
Fixing bug and reverting back to protocol 10 in client.
jholloc Dec 10, 2024
3939176
fixing issues with using UDA_TYPE_OPAQUE for returning binary data
stephen-dixon Dec 11, 2024
4a18275
Update client_installation.md: add libtirpc-dev dependency for ubuntu…
maarten-ic Dec 13, 2024
e59c0a0
Making sending BYTES plugin using xdr_opaque an option so that it wor…
jholloc Dec 13, 2024
46e236f
Updating pyuda get_file to use opaque option.
jholloc Dec 13, 2024
0acbd55
removing macos15 runner from pyuda wheels CI script
stephen-dixon Dec 16, 2024
84bad21
Merge branch '35-missing-leading-0-in-fractions-of-seconds' into develop
stephen-dixon Dec 16, 2024
5620fc1
Merge branch 'feature/fat-client' into develop
stephen-dixon Dec 16, 2024
5a8a783
trying to fix windows and mac wheel builds
stephen-dixon Dec 16, 2024
c1d4efc
Updating pyuda get_file to download files as 'opaque' type as to down…
jholloc Dec 16, 2024
b5408f5
trying to fix windows and mac wheel builds
stephen-dixon Dec 16, 2024
f497848
trying to fix windows and mac wheel builds
stephen-dixon Dec 16, 2024
ccedce6
trying to fix the macos pyuda wheel CI build
stephen-dixon Dec 16, 2024
5e899cc
trying to fix the macos pyuda wheel CI build
stephen-dixon Dec 16, 2024
b1485a9
trying to fix the macos pyuda wheel CI build
stephen-dixon Dec 16, 2024
336a6c2
trying to fix the macos pyuda wheel CI build
stephen-dixon Dec 16, 2024
9722f45
trying to fix the macos pyuda wheel CI build
stephen-dixon Dec 17, 2024
22b254e
removing python3.13 from macos wheels build due to numpy errors
stephen-dixon Dec 17, 2024
a205aa6
Merge branch 'feature/bytes_plugin' into develop
stephen-dixon Dec 17, 2024
310a5ae
Merge branch 'feature/update-wheel-actions-versions' into develop
stephen-dixon Dec 17, 2024
dbe1873
trying to add python3.13 build for macos pyuda wheels
stephen-dixon Dec 17, 2024
3568e76
removing failing python3.13 build from macos pyuda wheels
stephen-dixon Dec 17, 2024
63cf47f
Merge branch 'feature/bytes_plugin' into release/2.8.1
stephen-dixon Dec 17, 2024
6c29bc6
adding automatic plugin versioning to bytes plugin and moving CI to u…
stephen-dixon Dec 18, 2024
fa766b3
adding missing includes from updated bytes plugin
stephen-dixon Dec 18, 2024
7aab323
adding missing includes from updated bytes plugin
stephen-dixon Dec 18, 2024
253b09a
fixing minor typo in bytes plugin
stephen-dixon Dec 18, 2024
51d0c12
removing some c-style casts in bytes plugin
stephen-dixon Dec 18, 2024
788993b
adding more documentation on running a server
stephen-dixon Dec 20, 2024
67c56ae
adding template functions for setReturnScalar plugin help functions a…
stephen-dixon Dec 24, 2024
e6b2406
adding plugin helper function to bit-encode a semantic version string…
stephen-dixon Dec 24, 2024
8df84fe
changing all plugin::version functions to return the server build sem…
stephen-dixon Dec 24, 2024
195188a
adding development notes to documentation
stephen-dixon Jan 7, 2025
7b4db93
Adding Adam's launchd work for MacOS
stephen-dixon Jan 7, 2025
871e004
adding launchd to docs
stephen-dixon Jan 8, 2025
44b4266
fixing typo
stephen-dixon Jan 8, 2025
baf9199
updating docs
stephen-dixon Jan 19, 2025
39ef3a4
updates to pyuda from testing updating bytes plugin and fixing typo i…
stephen-dixon Jan 21, 2025
ccbe06f
fixing compilation errors
stephen-dixon Jan 21, 2025
4e4c918
trying to debug CI errors
stephen-dixon Jan 21, 2025
e958b21
fixing build when CMAKE_PORJECT_VERSION_TWEAK is not set
stephen-dixon Jan 21, 2025
a7b4549
Fix typo in development.md
olivhoenen Jan 21, 2025
b326f4b
removing f-strings from pyuda to maintain python 3.5 compatibility
stephen-dixon Jan 21, 2025
e584d9d
Fix typos and cleanup a few sections
adam-parker1 Jan 21, 2025
7f16084
Merge branch 'release/2.8.1' of github.com:ukaea/UDA into release/2.8.1
stephen-dixon Jan 21, 2025
3f5aea5
changing idl wrapper getstructs routine to use builtin idl_validname …
stephen-dixon Jan 21, 2025
ecacdef
adding contributing.md
stephen-dixon Jan 21, 2025
f43855a
Bugfix/fix python313 macos issues (#56)
adam-parker1 Jan 22, 2025
b8f4363
fixing pyuda build on freia (centOS 7) which requires FMT_ROOT/lib64 …
stephen-dixon Jan 22, 2025
006aa15
updating readme.md
stephen-dixon Jan 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 1 addition & 47 deletions source/plugins/bytes/bytesPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,53 +135,7 @@ int BytesPlugin::help(IDAM_PLUGIN_INTERFACE* plugin_interface)
*/
int BytesPlugin::version(IDAM_PLUGIN_INTERFACE* plugin_interface)
{
/*
* byte encoded version number
* b00 00 00 00 00 00 00 00
* major. minor. patch. (optional) post-tag commit
*/
std::string version_string = UDA_BUILD_VERSION;
unsigned int encoded_version = 0;

std::regex r("([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\.([0-9]+))?");

std::smatch r_matches;
std::regex_match(version_string, r_matches, r);
int bitshift = 24;
for (std::size_t i = 1; i < r_matches.size(); ++i)
{
std::ssub_match sub_match = r_matches[i];
std::string token = sub_match.str();
if (i !=4 and !token.empty() and bitshift >=0)
{
encoded_version |= static_cast<unsigned int>(std::stoi(token)) << bitshift;
bitshift -= 8;
}
}

// ideally parsed version should always have at least 3 matches. Unexpected version string format or
// problem parsing if fewer matches than this
// if (bitshift > 0)
// {
// RAISE_PLUGIN_ERROR_AND_EXIT("unexpected plugin version format: expected at least MAJOR.MINOR.PATCH", plugin_interface);
// }

// no set-return function for unsigned int type
DATA_BLOCK* data_block = plugin_interface->data_block;
initDataBlock(data_block);

int* data = (int*)malloc(sizeof(unsigned int));
data[0] = encoded_version;

const char* description = "Byte-encoded plugin version number from MAJOR.MINOR.PATCH.POST string";
strncpy(data_block->data_desc, description, STRING_LENGTH);
data_block->data_desc[STRING_LENGTH - 1] = '\0';

data_block->rank = 0;
data_block->data_type = UDA_TYPE_UNSIGNED_INT;
data_block->data = reinterpret_cast<char*>(data);
data_block->data_n = 1;
return 0;
setReturnDataString(plugin_interface->data_block, UDA_BUILD_VERSION, "Plugin version number");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
setReturnDataString(plugin_interface->data_block, UDA_BUILD_VERSION, "Plugin version number");
return setReturnDataString(plugin_interface->data_block, UDA_BUILD_VERSION, "Plugin version number");

}

/**
Expand Down
3 changes: 2 additions & 1 deletion source/plugins/hdf5/hdf5plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <clientserver/stringUtils.h>
#include <plugins/managePluginFiles.h>
#include <version.h>

#include "readHDF58.h"

Expand Down Expand Up @@ -127,7 +128,7 @@ int do_help(IDAM_PLUGIN_INTERFACE* idam_plugin_interface)
*/
int do_version(IDAM_PLUGIN_INTERFACE* idam_plugin_interface)
{
return setReturnDataIntScalar(idam_plugin_interface->data_block, THISPLUGIN_VERSION, "Plugin version number");
return setReturnDataString(idam_plugin_interface->data_block, UDA_BUILD_VERSION, "Plugin version number");
}

/**
Expand Down
3 changes: 2 additions & 1 deletion source/plugins/help/help_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <logging/logging.h>
#include <plugins/udaPlugin.h>
#include <clientserver/stringUtils.h>
#include <version.h>
#include <fmt/format.h>

static int do_ping(IDAM_PLUGIN_INTERFACE* idam_plugin_interface);
Expand Down Expand Up @@ -79,7 +80,7 @@ int helpPlugin(IDAM_PLUGIN_INTERFACE* idam_plugin_interface)
"servertime()\tReturn the Local Server Time in seconds and microseonds\n\n";
return setReturnDataString(data_block, help, "Help help = description of this plugin");
} else if (STR_IEQUALS(request->function, "version")) {
return setReturnDataIntScalar(data_block, THISPLUGIN_VERSION, "Plugin version number");
return setReturnDataIntScalar(data_block, UDA_BUILD_VERSION, "Plugin version number");
stephen-dixon marked this conversation as resolved.
Show resolved Hide resolved
} else if (STR_IEQUALS(request->function, "builddate")) {
return setReturnDataString(data_block, __DATE__, "Plugin build date");
} else if (STR_IEQUALS(request->function, "defaultmethod")) {
Expand Down
16 changes: 2 additions & 14 deletions source/plugins/keyvalue/keyvaluePlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <clientserver/initStructs.h>
#include <clientserver/udaTypes.h>
#include <plugins/udaPlugin.h>
#include <version.h>

namespace uda {
namespace keyvalue {
Expand Down Expand Up @@ -170,20 +171,7 @@ int uda::keyvalue::Plugin::help(IDAM_PLUGIN_INTERFACE* plugin_interface)

int uda::keyvalue::Plugin::version(IDAM_PLUGIN_INTERFACE* plugin_interface)
{
DATA_BLOCK* data_block = plugin_interface->data_block;

initDataBlock(data_block);
data_block->data_type = UDA_TYPE_INT;
data_block->rank = 0;
data_block->data_n = 1;
int* data = (int*)malloc(sizeof(int));
data[0] = THISPLUGIN_VERSION;
data_block->data = (char*)data;
strcpy(data_block->data_desc, "Plugin version number");
strcpy(data_block->data_label, "version");
strcpy(data_block->data_units, "");

return 0;
setReturnDataString(plugin_interface->data_block, UDA_BUILD_VERSION, "Plugin version number");
}

// Plugin Build Date
Expand Down
2 changes: 1 addition & 1 deletion source/plugins/template/templatePlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int TemplatePlugin::help(IDAM_PLUGIN_INTERFACE* idam_plugin_interface)
*/
int TemplatePlugin::version(IDAM_PLUGIN_INTERFACE* idam_plugin_interface)
{
return setReturnDataIntScalar(idam_plugin_interface->data_block, THISPLUGIN_VERSION, "Plugin version number");
return setReturnDatastring(idam_plugin_interface->data_block, UDA_BUILD_VERSION, "Plugin version number");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing #include <version.h>

stephen-dixon marked this conversation as resolved.
Show resolved Hide resolved
}

/**
Expand Down
3 changes: 2 additions & 1 deletion source/plugins/uda/uda_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <logging/logging.h>
#include <plugins/udaPlugin.h>
#include <client/udaClient.h>
#include <version.h>
#include <fmt/format.h>

#if !defined(__GNUC__)
Expand Down Expand Up @@ -140,7 +141,7 @@ int do_help(IDAM_PLUGIN_INTERFACE* idam_plugin_interface)
*/
int do_version(IDAM_PLUGIN_INTERFACE* idam_plugin_interface)
{
return setReturnDataIntScalar(idam_plugin_interface->data_block, THISPLUGIN_VERSION, "Plugin version number");
return setReturnDataString(idam_plugin_interface->data_block, UDA_BUILD_VERSION, "Plugin version number");
}

/**
Expand Down