Commit Graph
9320 Commits
Author SHA1 Message Date
maliakal_dandGitHub b07f289133 updated package and client version (#1510)
Build on RHEL9 docker image / build (push) Successful in 4m45s
Build on RHEL8 docker image / build (push) Successful in 4m46s
Run Simulator Tests on local RHEL9 / build (push) Successful in 18m58s
Run Simulator Tests on local RHEL8 / build (push) Successful in 22m16s
2026-08-06 16:28:58 +02:00
maliakal_dandGitHub 0aaea316c5 1010/update rx metadata threshold m3 (#1508)
* update rx master file for all threshold energies(m3) when setting dac directly, custom trimbits, setting settings, trimbits etc

* formatting

* refactored for future modifications for eier

* renaming

* release notes
2026-08-06 16:28:00 +02:00
maliakal_d 281943eb69 formatting
Build on RHEL9 docker image / build (push) Successful in 3m48s
Build on RHEL8 docker image / build (push) Successful in 4m40s
Run Simulator Tests on local RHEL8 / build (push) Failing after 8m46s
Run Simulator Tests on local RHEL9 / build (push) Failing after 13m24s
2026-08-06 11:10:01 +02:00
maliakal_dandGitHub d7cc22f7ef 1010/test should not set rx hostname (#1505)
Build on RHEL9 docker image / build (push) Successful in 3m43s
Build on RHEL8 docker image / build (push) Successful in 4m41s
Run Simulator Tests on local RHEL8 / build (push) Failing after 8m42s
Run Simulator Tests on local RHEL9 / build (push) Failing after 13m24s
* removed the test that set rx_hostname because it will reset parameters and some failures might be hidden for past or future tests

* reverted last change
2026-08-06 09:29:07 +02:00
91ccb982a3 1010/fix/blockadded check if reciever is running (#1502)
Build on RHEL9 docker image / build (push) Successful in 3m49s
Build on RHEL8 docker image / build (push) Successful in 4m49s
Run Simulator Tests on local RHEL8 / build (push) Failing after 8m38s
Run Simulator Tests on local RHEL9 / build (push) Successful in 18m59s
* added check if reciever is running

* added some tests

* uups dummy test - deleted test file

* changed test

* stopped receiver

* added some more tests as they also affect fifo structure

* fixed tests to work with test_simualtor for all cmdcall tests

* minor

* fix fro cmdcall back to detectorintegration

* removed the .rx marker that we did at soe point

* typo

* brekaing api change removed

---------

Co-authored-by: mazzol_a <mazzol_a@pc17378.psi.ch>
2026-08-05 17:32:28 +02:00
mazzol_a 4d53950b09 removed some python tests from other PRs
Build on RHEL9 docker image / build (push) Successful in 3m35s
Build on RHEL8 docker image / build (push) Successful in 4m40s
Run Simulator Tests on local RHEL8 / build (push) Failing after 8m39s
Run Simulator Tests on local RHEL9 / build (push) Failing after 13m26s
2026-08-03 15:07:30 +02:00
fc39fe0719 Dev/refactor caller tests master attributes (#1462)
Build on RHEL9 docker image / build (push) Successful in 3m41s
Build on RHEL8 docker image / build (push) Successful in 4m41s
Run Simulator Tests on local RHEL9 / build (push) Failing after 7m0s
Run Simulator Tests on local RHEL8 / build (push) Failing after 8m37s
* refactoring

* wip

* refactored, yet to take out checkers

* checker added

* wip acquire ctb state

* wip acquire ctb state

* wip, acq test

* acquire moved out

* fix

* wip, To fix masterattribtues

* wip, masterfilecheks

* wip, at ctbexpectedstate

* wip, fixing acquire

* wip, acquire done

* wip

* compiles

* refactoring

* minor

* minor

* reduced unnecessary includes

* fix in tests

* removed ctb state check

* ctb fix with ctb state

* fixed ctb guard tests

* minor debug

* work for xilinx ctb

---------

Co-authored-by: Erik Fröjdh <erik.frojdh@gmail.com>
2026-08-03 14:12:39 +02:00
mazzol_a edc3d88d0e proper fix when using log files in simulator tests 2026-08-03 12:37:14 +02:00
mazzol_a 2195431c64 fixed killprocess in test script
Build on RHEL9 docker image / build (push) Successful in 3m51s
Build on RHEL8 docker image / build (push) Successful in 4m42s
Run Simulator Tests on local RHEL9 / build (push) Failing after 6m55s
Run Simulator Tests on local RHEL8 / build (push) Failing after 8m36s
2026-08-03 12:20:14 +02:00
mazzol_a 2a94597e8c fix:use powerchip for xilinx
Run Simulator Tests on local RHEL8 / build (push) Failing after 2m43s
Build on RHEL9 docker image / build (push) Successful in 3m28s
Build on RHEL8 docker image / build (push) Successful in 4m38s
Run Simulator Tests on local RHEL9 / build (push) Failing after 6m58s
2026-08-03 11:37:35 +02:00
670db88cbc Dev/include file (#1306)
* create a include command calling the same function as parameters (cmd generation and autocompletion), testing parameters and include

* added include in command line and python and its supposed to do the same as parameters command. both are tested

* added colorama

* moved test_free and test_command python tests to tests/scripts folder from python/tests due to CI issues with dependencies

* generated commands

* formatting

---------

Co-authored-by: Erik Fröjdh <erik.frojdh@gmail.com>
2026-08-03 11:13:16 +02:00
mazzol_a 22d001c534 fixed run processes for log files 2026-08-03 11:07:18 +02:00
mazzol_a c16ab5b0e1 fixed corrupted merge conflicts/discrepancies 2026-08-03 11:06:11 +02:00
maliakal_dandmazzol_a 9c0bfe3517 dev: zmq hwm rebind (#1480)
* move hwm into the zmq constructor and reconstruct the socket instead of rebind. seems to work better than rebind (most connections cant bind so fast?)

* fix after merge

* added tests to reconnect zmq sockets when setting rx zmqport and rx zmqhwm, changed the tests scripts a bit to make the receiver starting tcp port configurable

* tests: slsreceiver also starting up  with 2000 as default tcp port, using latest cli args for receiver and multi receiver

* releasr notes

---------

Co-authored-by: AliceMazzoleni99 <alice.mazzoleni@psi.ch>
2026-08-03 09:34:57 +02:00
maliakal_dandmazzol_a 3a780271c6 debugging (still fails for old cache) (#1485)
* debugging (still fails for old cache)

* verification removed. Leaving the creating and restorign cachec at v1.6.1 instead of latest for cache-apt-pkgs-action

* cache-apt-pkgs-action at v1.6.1 also for build_documentation yaml

* Clean up run_tests.yaml by removing comments

Removed commented-out line for clarity.

---------

Co-authored-by: AliceMazzoleni99 <alice.mazzoleni@psi.ch>
2026-08-03 09:32:15 +02:00
maliakal_dandmazzol_a 2554e7520d Dev/fix workflow cmake cache (#1484)
* Validate restored apt packages in CI before CMake configuration

Add checks for cached apt dependencies to catch incomplete installations. A temporary Ubuntu mirror/package index mismatch caused apt installation to fail, but the failure was not detected before CMake ran.

* continue on error uncommented to see that it actually restores the previous step. The previous commit was to check the error message on failure to install the packages

* repair didnt run earlier.. checking on condition from custom message

* Remove redundant HDF5 verification step from CI. And fix broken repairs half configured dependenceies before reinstalling requested packages

* fix the simulator tests workflow for the same reason as previous commit (not failing for actual failure to restore installation from cache)

* removed redundant checks for repair as we are not repairing anymore

* use a different cache (changing version)

* changing ubuntu back to 22 instead of 24 (latest) because of 'E: Failed to fetch mirror+file:/etc/apt/apt-mirrors.txt/pool/main/c/curl/libcurl4-openssl-dev_8.5.0-2ubuntu10.9_amd64.deb 404 Not Found'

* cache at specific version

* version typo

* go back to original version number  (was changed earlier to create a new cache everytime)

* added the other yaml

* minor, but recreating new caches with v1.0 version
2026-08-03 09:31:58 +02:00
Erik Fröjdhandmazzol_a 5fb0e2c941 Better error message on socket (#1477)
* checking errno

* improved socket error message

* improved message

* decode error code

* format

* clearer msg

* report write errors, handle SIGPIPE

* retry and cleaned up timeout

* removed read/write in DataSocket
2026-08-03 09:31:26 +02:00
mazzol_a a01d96e892 treating warnings as errors during workflows (#1473)
* treating warnings as errors during workflows

* suppress warnings for moench calibration

* no format overflow

* revert formatting

* bettter conditional branching in cmake
2026-08-03 09:30:53 +02:00
mazzol_a 7a4af4e7e1 Fix/segmentation fault in virtual detectors (#1472)
* fix overflow in copying of image to packet

* overflow fixed for xilinx
2026-08-03 09:29:56 +02:00
faedb0acf1 Add rx_streamdummyheader command (#1442)
* add rx_restream_stop command. This allows to send a ZMQ dummy header any time user wants to do so. For example this allows to pre-configure the ZMQ processing software before the acquisition begins. Therefore, the dummy header was adapted in order to contain the fields stored in the receiver.

* renamed command, changed inherit, moved commands to zmq related section

* update filename in restreamstop

* renamed helper function, sorted header fields alphabetically

* fixed fnametostream set

* renamed functions, add SetFileName method, format JSON parameters order

* added python bindings and formatting (does nothing really)

* renamed restream stop functions to stream dummy

* checkout .github files from ed8c885

* release notes

---------

Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch>
2026-08-03 09:27:53 +02:00
lunin_landmazzol_a 504e5c0d58 CI: Use conda-build instead conda build (#1464)
* repalce conda build with conda-build, bump actions versions

* updated github actions versions to run on node 24

---------

Co-authored-by: Alice <alice.mazzoleni@psi.ch>
2026-08-03 09:20:47 +02:00
maliakal_dandmazzol_a 033312ad3f removed the unzooming at the start of every acquisition so that right click zoom should stay (#1451) 2026-08-03 09:17:46 +02:00
Erik Fröjdhandmazzol_a 9b77aaf877 removed unused function readDataFile/writeDataFile (#1456)
* removed unused function readDataFile/writeDataFile

* release notes
2026-08-03 09:17:01 +02:00
mazzol_a c2b4007de3 Dev/doc/add ctb to doc (#1455)
* added numpy for patterngenerator

* treat warnings as errors

* fix warnings during docu build

* added power and ctb to documentation
2026-08-03 09:13:52 +02:00
mazzol_aandmaliakal_d 732599bc10 fixed python simulator test fixture (#1350)
* fixed python simulator test fixture

* clear_roi after every test to bring it back to default state, test passing multiple parameters

* Exposing the ctb api tests now to CI

* Revert "Exposing the ctb api tests now to CI"

This reverts commit 411fad1b27.

* fixed tests removed uneccessary stuff

* did not save properly

* updated documentation, renamed file

---------

Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch>
2026-08-03 09:10:07 +02:00
Erik Fröjdhandmazzol_a 73f9d4299a Add support for building RPMs (#1439)
* rpm

* versioned binaries

* also zmq process

* use distro style naming

* added gui
2026-08-02 23:32:53 +02:00
maliakal_dandmazzol_a f1bb4f7ab4 fix synchronizer test script (#1440) 2026-08-02 23:32:02 +02:00
mazzol_a 778e941329 updated documentation workflow (#1436) 2026-08-02 23:31:36 +02:00
maliakal_dandmazzol_a 948b1ed93c Dev/jungfrau 1m root display support (#1364)
* Aldo Mozzanica added support for 2 modules in 1M configuration for root display

* deleted the wrong files
2026-08-02 23:30:26 +02:00
maliakal_dandmazzol_a 2d7a48e584 rm unnecessary hidden test tags (#1415)
* removed hidden tags other than .detectorintegration and .disable_check_data_file

* updated label, minor
2026-08-02 23:28:16 +02:00
mazzol_a ea8ec830a4 Dev/update workflows (#1406)
* only run tests for pull-requests

* build gui and simulators

* trigger upon push to all branches

* renamed workflows

* added python tests

* added colorama and numpy

* added slsdet to pythonpath

* updated workflow name
2026-08-02 23:23:07 +02:00
muelle_m1andmazzol_a ab2a6fc66a added copy of ctbDetectorServer to auto-deploy 2026-08-02 23:20:51 +02:00
maliakal_dandmazzol_a afa0ac3248 fix the master hdf5 extension from aprevious PR (#1399) 2026-08-02 23:20:19 +02:00
mazzol_aandmaliakal_d 12a33a1ad9 Dev/automate documentation build (#1357)
* some test about building docs

* indendation error

* typo -

* forgot to get package hdf5

* had to add shinx and doxygen as well

* oke created environmnet file

* typo

* dont use conda

* dont use conda

* cannot upload artefact commit to gh-pages

* correct copy

* mmh

* try with tokem

* set write permisison

* script to update main_index for versioned documentation

* rename main_index to index

* use absolute path in python script

* update main_index upon a release

* extract release type from version

* copy release notes

* updated links from devdoc to slsDetectorPackage, handling .md for new versions

* changed page source

* updated documentation link in README

* add guideline for Package Versioning to documentation also used as a test

* typo in workflow

* why didnt it copy?

* copied from build instead of docs

* change back - trigger for push

* only trigger for pull_requests and releases

* removed conda environment file

* automatically update documentation paths in release notes

* only keep templated README.md

* added README and updated links

* update Release notes template manually

* generate release notes script not needed anymore

* modified readme to reflect dependencies insides build from source

* subheadings in dependencies

---------

Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch>
2026-08-02 23:18:25 +02:00
mazzol_a 038ccf82bf dev/handes trailing / in filepath (#1391)
* member filePath in Implementation is std::filesystem::path, some refactoring

* PR Review

* adapted function signature - compiled with hdf5 on
2026-08-02 23:10:22 +02:00
maliakal_dandmazzol_a 4490a0f83a added patternstart to python (#1368)
* added patternstart to python

* release notesg
2026-08-02 23:01:36 +02:00
froejdh_eandmazzol_a 73f3208512 docstring and release 2026-08-02 22:56:52 +02:00
Erik Fröjdhandmazzol_a 1fd118abf8 allow sls::Pattern in python d.pattern 2026-08-02 22:55:00 +02:00
mazzol_aandmaliakal_d 444cb2e8fd Dev/add simulator tests in GitHub workflows (#1337)
* added simulator tests in github workflows

* indentation error

* typo

* debug

* Logging for debugging

* added more debug lines

* more debugging

* debug

* debug

* debug

* dont throw if process does not exist

* debug

* added absolute path to sls_detector commands

* some refactoring in test scripts

* added absolute path to all slsdet command

* typo

* ../tests/scripts/test_frame_synchronizer.py

* raise exception upon failure for github workflows

* removed hidden tags

* some refactoring in test scripts

* some refactoring

* fixed CMakeLists

* fixed unsuccesful merge

* updated python tests using simulators

* debug import error

* debug module import

* python -m runs module pytest as script - everything in path available

* removed integartion tests

* enable file write not to log files

* run tests without log files

* increased sleep time for udp packets

* added logg level variable to cmake

* added testing policies to documenattion

* disabled check for num_frames for jungfrau & xilinx

* set log level as cmake cached variable

* disable tests for jungfrau and xilinx_ctb

* check frames for HDF5

* updated Documentation of Testing

* changed withdetectorsimulators to detectorintegration

* replaced [.cmdcall] with [.detectorintegration]

* check_file_size only disabled for jungfrau - disable for all roi tests

* changed time to wait after receive to 5 ms

* take into account half modules of eiger

* num udp interfaces needs to be consistent across modules

* suppressed warning enclosing if

* config added 2 udp ports per default for moench and jungfrau

* write detector output to console

* allow jungfrau to tests num frames, remove unused variable (numinterfaces), add comment for future to handle traceback to know which calling function threw the files unmatched, added documentation for tests (examples for .detectoritnegration and how to disable marked tests, removed addditional argumetns to disable for test_simulator as one can just use ~, removed the check that checks for jungfrau checking number of frames at master attributes and at rx test, removed unused advanced_test_settings in test_simulator script, the num_mods check for multiple modules is removed and default num  modules set to 1 for test_simulator (to be increased later), back to raising exception for killprocess

* removed integration tests from cmakelists.txt and cmk.sh, modified the tests workflow command to reflect the disable argument and removed xilinx_ctb from test (fix fromdeveloper merge to be done)

* filtering by actual name for disable certain tests on github workflow

* minor refactor

* wip

* wip

* changes to run on local rh9 runner instead of github workfloa

* modified yml to remove some leftover from github workflow

* test

* fix build_dir in scripts (github workflow) and pytest dir in gitea workflow

* making the local machine use python3.13 binary

* pythonpath added

* changes for build_Dir back

* allowing ctb api tests

* allowed ctb api tests and set up slsdetname envt variable for shared memory being reserved just for these tests

* added rh8 workflow for local runner on gitea

* remnants from rh9 local runner

* remnants from rh9 local runner

* conda env for all shell for local runner

* allowing hdf5 to build on local runner

* run all tests for both the runners

* refactored fixtures a bit and merged some tests that use one session for entire server

* test fail

* test fix

* adding github workflow to test without data file checks and without logs

* documentation changes

* unnecessary import in conftest

* allowing the session_simulator to test for multiple modules and interfaces etc

* allow test_simulator script to run for 2 modules for all modules except ctb and xilinx ctb

* run upon push

* removing the disable file check on github workflow

* minor adjustment

* testing without synch

* reverting to previous

* with log file

* without the space

* summary from file and more error extracts from file to terminal

* minor

* trying nlf for more details

* updated with no log file to print everything to screen  also for det and rxr

* trying a no throw

* stoi was more about indent in yaml

* tries

* wip

* debug

* number of frames inconsistent fix=>just take first one, only test xilinx

* jungfrau tests without frames caught check

* extend the disable file check to everywhere that creates files

* specify path for test_simulator

* withoutprinting ==

* wip

* back with printing===, but not parsing file for errors anymore

* lang?

* wip

* safe log?

* wip2

* wip

* dont split error as its streaming live, just raise

* with log files

* lang?

* last resort

* wip

* test no det with general tests

* show tests live

* also include hidden integration tests

* without extra summary?

* revert

* last resort again

* tsquash on int64_t?

* tsquash on int64_t? mroe print

* writing to /tmp?

* all tests

* might be the fix?

* write to file

* fixed a few quiet mode no log file tests

* work on any branch for github tests, work on also release candidates for gitea tests

* added frame synchronizer tests to github workflow

* moved tests to run_tests.yaml from cmake.yaml

* documentation

* disabled general tests

---------

Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch>
2026-08-02 22:45:28 +02:00
Erik Fröjdhandmazzol_a 01cfefd9d2 allow sls::Pattern in python d.pattern 2026-08-02 21:51:08 +02:00
froejdh_eandmazzol_a 3699a3238f removed depricated check, handle self assignment 2026-08-02 21:37:14 +02:00
muelle_m1andmazzol_a dd1d418a02 build RH8 in conda env 2026-08-02 21:27:31 +02:00
muelle_m1andmazzol_a 7d895d686c typo 2026-08-02 21:27:16 +02:00
muelle_m1andmazzol_a 52aa0eb582 deploy python ui 2026-08-02 21:27:07 +02:00
muelle_m1andmazzol_a 19e232aa49 local runners only for developer 2026-08-02 21:26:39 +02:00
mazzol_a 509f8d5175 clang-format 12 2026-08-02 21:25:45 +02:00
mazzol_a 5377e517aa fix unsuccesful merge in RELEASE.txt 2026-08-02 21:25:35 +02:00
mazzol_a cecd559917 removed tests for eiger 2026-08-02 21:25:18 +02:00
mazzol_a 2055c8bb3f rx_roi also accepts sequence of 2 ints 2026-08-02 21:25:08 +02:00
mazzol_a 8f1229381f another bug for xilinx in test script 2026-08-02 21:24:58 +02:00