plugin: add new grpc plugin allowing to run python plugins in own process#1993
Merged
BareosBot merged 16 commits intobareos:masterfrom Dec 11, 2024
Merged
plugin: add new grpc plugin allowing to run python plugins in own process#1993BareosBot merged 16 commits intobareos:masterfrom
BareosBot merged 16 commits intobareos:masterfrom
Conversation
89bd915 to
3dd5f5a
Compare
622eb42 to
57e4f8e
Compare
6e6fc8b to
c5394c7
Compare
arogge
reviewed
Nov 11, 2024
arogge
reviewed
Nov 11, 2024
arogge
reviewed
Nov 11, 2024
arogge
reviewed
Nov 11, 2024
arogge
reviewed
Nov 11, 2024
arogge
reviewed
Nov 11, 2024
arogge
reviewed
Nov 11, 2024
arogge
reviewed
Nov 11, 2024
1e699b9 to
f3f7d42
Compare
1156c87 to
46be8ec
Compare
sebsura
commented
Nov 18, 2024
0a56b28 to
a5da18c
Compare
pstorz
requested changes
Dec 3, 2024
docs/manuals/source/TasksAndConcepts/Plugins/FileDaemonPlugins/GrpcPlugin.rst.inc
Outdated
Show resolved
Hide resolved
90e49e8 to
dd05ccf
Compare
098e845 to
246cf5d
Compare
pstorz
approved these changes
Dec 11, 2024
This test checks that the test module does the correct thing.
By default (C) programs start with the 'C' locale. This can cause python to think that the locale is actually an ascii one and will refuse to work with unicode paths. We know set the locale to an actual UTF-8 one, so that python will behave. This allows us to reenable previously broken tests.
python-fd had an implicit dependency on libbareos. That meant that this library could only get loaded into a process that had already loaded libbareos. This would not work with the way the grpc plugin loads plugins, so the dependency was removed.
Whenever we add a py3plug test we now also automatically create a py3grpc test that does the exact same thing, except it uses the grpc plugin instead of using the python plugin directly.
This means that each test has a different tmp dir for mysql/mariadb to use. This should prevent some race conditions when creating temporary files.
On slow/high usage systems, this test may fail because bareos takes to long to actually start the regular job. As such we cannot use the joblog to check if the regular job needed to wait or not, as the sleepy job mightve already started when we start checking. Instead we now consult the database to find out if the regular job needed to wait at all.
5ef7e9c to
7f3f32b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pr adds a new grpc plugin which allows you to write grpc applications that interface with bareos using grpc.
Thank you for contributing to the Bareos Project!
Please check
If you have any questions or problems, please give a comment in the PR.
Helpful documentation and best practices
Checklist for the reviewer of the PR (will be processed by the Bareos team)
Make sure you check/merge the PR using
devtools/pr-toolto have some simple automated checks run and a proper changelog record added.General
Source code quality
Tests