Fixes from last commit
Some checks failed
Build Packages / build:rpm (rocky9) (push) Failing after 23m43s
Build Packages / build:rpm (rocky8) (push) Failing after 23m45s
Build Packages / build:rpm (rocky9_sls9) (push) Failing after 23m47s
Build Packages / build:rpm (rocky8_sls9) (push) Failing after 23m49s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Failing after 23m51s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Failing after 23m53s
Build Packages / build:rpm (rocky9_nocuda) (push) Failing after 23m55s
Build Packages / build:rpm (rocky8_nocuda) (push) Failing after 23m57s
Build Packages / Create release (push) Has been skipped
Build Packages / Generate python client (push) Successful in 32s
Build Packages / Build documentation (push) Successful in 51s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 9m23s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 10m1s
Build Packages / Unit tests (push) Has been cancelled

This commit is contained in:
2026-03-05 12:38:16 +01:00
parent 343e9a1172
commit a5f3cf62d2
11 changed files with 55 additions and 12 deletions

View File

@@ -415,6 +415,7 @@ void JFJochBrokerHttp::statistics_get(const std::optional<bool> &compression, Pi
statistics.setBuffer(Convert(state_machine.GetImageBufferStatus()));
statistics.setIndexing(Convert(state_machine.GetIndexingSettings()));
statistics.setDarkMask(Convert(state_machine.GetDarkMaskSettings()));
statistics.setImagePusher(Convert(state_machine.GetImagePusherStatus()));
auto zeromq_prev = state_machine.GetPreviewSocketSettings();
if (!zeromq_prev.address.empty())
@@ -620,3 +621,7 @@ void JFJochBrokerHttp::config_dark_mask_put(const org::openapitools::server::mod
void JFJochBrokerHttp::config_dark_mask_get(Pistache::Http::ResponseWriter &response) {
ProcessOutput(Convert(state_machine.GetDarkMaskSettings()), response);
}
void JFJochBrokerHttp::image_pusher_status_get(Pistache::Http::ResponseWriter &response) {
ProcessOutput(Convert(state_machine.GetImagePusherStatus()), response);
}

View File

@@ -183,6 +183,8 @@ class JFJochBrokerHttp : public org::openapitools::server::api::DefaultApi {
void config_dark_mask_get(Pistache::Http::ResponseWriter &response) override;
void config_dark_mask_put(const org::openapitools::server::model::Dark_mask_settings &darkMaskSettings,
Pistache::Http::ResponseWriter &response) override;
void image_pusher_status_get(Pistache::Http::ResponseWriter &response) override;
public:
JFJochBrokerHttp(const DiffractionExperiment& experiment,
const SpotFindingSettings &spot_finding_settings,

View File

@@ -280,9 +280,3 @@ ImagePusherStatus JFJochServices::GetImagePusherStatus() const {
.connected_writers = 0
};
}
uint64_t JFJochServices::GetConnectedWriters() const {
if (receiver)
return receiver->GetConnectedWriters();
return 0;
}

View File

@@ -242,7 +242,6 @@ org::openapitools::server::model::Broker_status Convert(const BrokerStatus& inpu
ret.setGpuCount(input.gpu_count);
ret.setBrokerVersion(input.broker_version);
ret.setConnectedWriters(input.connected_writers);
return ret;
}

View File

@@ -40,6 +40,7 @@ Jfjoch_statistics::Jfjoch_statistics()
m_Az_intIsSet = false;
m_BufferIsSet = false;
m_IndexingIsSet = false;
m_Image_pusherIsSet = false;
}
@@ -104,7 +105,7 @@ bool Jfjoch_statistics::validate(std::stringstream& msg, const std::string& path
}
}
return success;
}
@@ -168,7 +169,10 @@ bool Jfjoch_statistics::operator==(const Jfjoch_statistics& rhs) const
((!bufferIsSet() && !rhs.bufferIsSet()) || (bufferIsSet() && rhs.bufferIsSet() && getBuffer() == rhs.getBuffer())) &&
((!indexingIsSet() && !rhs.indexingIsSet()) || (indexingIsSet() && rhs.indexingIsSet() && getIndexing() == rhs.getIndexing()))
((!indexingIsSet() && !rhs.indexingIsSet()) || (indexingIsSet() && rhs.indexingIsSet() && getIndexing() == rhs.getIndexing())) &&
((!imagePusherIsSet() && !rhs.imagePusherIsSet()) || (imagePusherIsSet() && rhs.imagePusherIsSet() && getImagePusher() == rhs.getImagePusher()))
;
}
@@ -219,6 +223,8 @@ void to_json(nlohmann::json& j, const Jfjoch_statistics& o)
j["buffer"] = o.m_Buffer;
if(o.indexingIsSet())
j["indexing"] = o.m_Indexing;
if(o.imagePusherIsSet())
j["image_pusher"] = o.m_Image_pusher;
}
@@ -319,6 +325,11 @@ void from_json(const nlohmann::json& j, Jfjoch_statistics& o)
j.at("indexing").get_to(o.m_Indexing);
o.m_IndexingIsSet = true;
}
if(j.find("image_pusher") != j.end())
{
j.at("image_pusher").get_to(o.m_Image_pusher);
o.m_Image_pusherIsSet = true;
}
}
@@ -645,6 +656,23 @@ void Jfjoch_statistics::unsetIndexing()
{
m_IndexingIsSet = false;
}
org::openapitools::server::model::Image_pusher_status Jfjoch_statistics::getImagePusher() const
{
return m_Image_pusher;
}
void Jfjoch_statistics::setImagePusher(org::openapitools::server::model::Image_pusher_status const& value)
{
m_Image_pusher = value;
m_Image_pusherIsSet = true;
}
bool Jfjoch_statistics::imagePusherIsSet() const
{
return m_Image_pusherIsSet;
}
void Jfjoch_statistics::unsetImage_pusher()
{
m_Image_pusherIsSet = false;
}
} // namespace org::openapitools::server::model

View File

@@ -35,6 +35,7 @@
#include <vector>
#include "Indexing_settings.h"
#include "Detector_status.h"
#include "Image_pusher_status.h"
#include "Roi_definitions.h"
#include "Fpga_status_inner.h"
#include "Image_buffer_status.h"
@@ -210,6 +211,13 @@ public:
void setIndexing(org::openapitools::server::model::Indexing_settings const& value);
bool indexingIsSet() const;
void unsetIndexing();
/// <summary>
///
/// </summary>
org::openapitools::server::model::Image_pusher_status getImagePusher() const;
void setImagePusher(org::openapitools::server::model::Image_pusher_status const& value);
bool imagePusherIsSet() const;
void unsetImage_pusher();
friend void to_json(nlohmann::json& j, const Jfjoch_statistics& o);
friend void from_json(const nlohmann::json& j, Jfjoch_statistics& o);
@@ -252,6 +260,8 @@ protected:
bool m_BufferIsSet;
org::openapitools::server::model::Indexing_settings m_Indexing;
bool m_IndexingIsSet;
org::openapitools::server::model::Image_pusher_status m_Image_pusher;
bool m_Image_pusherIsSet;
};

View File

@@ -1613,6 +1613,8 @@ components:
$ref: '#/components/schemas/image_buffer_status'
indexing:
$ref: '#/components/schemas/indexing_settings'
image_pusher:
$ref: '#/components/schemas/image_pusher_status'
error_message:
type: object
required:
@@ -2980,7 +2982,6 @@ paths:
format: int64
"404":
description: "Not in XFEL mode or no acquisition recorded"
/image_pusher/status:
get:
summary: Get status of image pusher

File diff suppressed because one or more lines are too long

View File

@@ -25,6 +25,7 @@ Name | Type | Description | Notes
**az_int** | [**AzimIntSettings**](AzimIntSettings.md) | | [optional]
**buffer** | [**ImageBufferStatus**](ImageBufferStatus.md) | | [optional]
**indexing** | [**IndexingSettings**](IndexingSettings.md) | | [optional]
**image_pusher** | [**ImagePusherStatus**](ImagePusherStatus.md) | | [optional]
## Example

View File

@@ -14,6 +14,7 @@ import type { file_writer_settings } from './file_writer_settings';
import type { fpga_status } from './fpga_status';
import type { image_buffer_status } from './image_buffer_status';
import type { image_format_settings } from './image_format_settings';
import type { image_pusher_status } from './image_pusher_status';
import type { indexing_settings } from './indexing_settings';
import type { instrument_metadata } from './instrument_metadata';
import type { measurement_statistics } from './measurement_statistics';
@@ -46,5 +47,6 @@ export type jfjoch_statistics = {
az_int?: azim_int_settings;
buffer?: image_buffer_status;
indexing?: indexing_settings;
image_pusher?: image_pusher_status;
};

View File

@@ -5,6 +5,7 @@
#include <catch2/catch_all.hpp>
#include "../image_puller/ZMQImagePuller.h"
#include "../image_pusher/ZMQStream2Pusher.h"
#include "../common/DiffractionSpot.h"
void test_puller(ZMQImagePuller *puller,
const DiffractionExperiment& x,