Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

[feature] templated rpc methods #143

Merged
merged 56 commits into from
Mar 6, 2020
Merged

Conversation

jsturdy
Copy link
Contributor

@jsturdy jsturdy commented Mar 2, 2020

Description

Merge in preliminary templated RPC changes
WIP because commits added to the develop branch were incorporated independently into the templated branch and a decision on how to proceed should be made (order of preference):

  1. Rebase feature/templated-rpc-methods onto develop skipping duplicated commits (straightforward fix for two conflicts)
  2. Revert 76c67ae "Merge pull request Add log4cplus version awareness, fix #116 #117 from cms-gem-daq-project/bugfix/log4cplus-2.0", then merge this PR
  3. Merge without action (conflict resolution addition/deletion of previously moved file)

Types of changes

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Motivation and Context

It's the way of the future

How Has This Been Tested?

In testing

@lpetre-ulb
Copy link
Contributor

WIP because commits added to the develop branch were incorporated independently into the templated branch and a decision on how to proceed should be made (order of preference):

1. Rebase `feature/templated-rpc-methods` onto `develop` skipping duplicated commits (straightforward fix for two conflicts)
2. Revert  [76c67ae](https://github.com/cms-gem-daq-project/xhal/commit/76c67ae5a73c447f64c5faee0346ef56f70105fd) "Merge pull request #117 from cms-gem-daq-project/bugfix/log4cplus-2.0", then merge this PR

I'd go for the first proposal, although I have not a strong opinion against the second one.

lpetre-ulb and others added 25 commits March 6, 2020 10:56
Since most of the development was made in another repository all the
history has been squashed in this commit.
Allow ADL usage in the documentation wording.
All exceptions thrown by RPC methods are caught, and an error message is sent
via the "error" key. In order to help debugging, the type of the exception is
also sent back to the client.

Build system support is left for later.
The error key is set on the message when an exception is thrown by the RPC
method. Throw an exception on the calling side when it is present.
The Wisconsin RPC messaging layer can throw a family of exceptions that need to
be enumerated in catch() statements. Replace them with a common type deriving
from std::runtime_error.
* `config` submodule updated to pick up `XHAL_ROOT` and default `INSTALL_PATH`
* `xhalarm` and `xhalcore` `Makefile`s are simplified for reliable, reproducible builds
* `xhalarm` as dependency of `xhalcore` is moved to dependency of `xhalcore.RPM`
This library is used by the RPC modules for the address table database.
Since it is more of a support library, move it to this repository.

Also use the original file name lmdb++.h instead of lmdb_cpp_wrapper.h.
The new class will be used to avoid passing the LMDB handle as an
argument to every function. The implementation isn't very smart so far,
but this can be improved without breaking the existing API.

The new code is located in xhalarm because it is not usable on the
client side.
* fix bug in arm makefile for packaging
* add lmdb to CI install step
* add gem-peta-stage-ctp7 to install steps
jsturdy and others added 18 commits March 6, 2020 10:58
* [ci] run publish jobs only on cms-gem-daq-project
* [ci] create release job
* make spec template more generic
* proper library flags
* Ensure proper dependencies for python setup files
* variable location for wiscrpcsvc
* Update python packages for CI
* Try to run job without special runner
* Test the publish stage
Implements the new PETA_PATH environment variable
Enables auto return type deduction
@jsturdy jsturdy force-pushed the feature/templated-rpc-methods branch from d465fe5 to bea638d Compare March 6, 2020 10:06
@jsturdy jsturdy changed the title WIP [feature] templated rpc methods [feature] templated rpc methods Mar 6, 2020
@jsturdy
Copy link
Contributor Author

jsturdy commented Mar 6, 2020

Forced option 1

@mexanick mexanick merged commit 306b847 into develop Mar 6, 2020
@lpetre-ulb lpetre-ulb deleted the feature/templated-rpc-methods branch March 8, 2020 23:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants