-
Notifications
You must be signed in to change notification settings - Fork 154
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
ATO-648 - workflowToJSON.sh - porting the code from the TPC gitlab to the O2DPG tools #1851
base: master
Are you sure you want to change the base?
Conversation
REQUEST FOR PRODUCTION RELEASES:
This will add The following labels are available |
Initialization: Apptainer> source /scratch/alice/miranov/alicesw2/O2DPG/UTILS/Parsers/workflowToJSON.sh
0001: Function Overview: init648
0002:
0003: This function initializes the script environment and provides access to a series of utility commands designed to assist in handling and transforming workflow logs.
0004:
0005: Available Commands:
0006: - \[init648]: Initializes the necessary environment settings for script execution. Use this before running other related functions to ensure all configurations are correctly set.
0007: - \[description]: Provides a comprehensive explanation of the workflow processing, detailing each step and its purpose within the system.
0008: - \[makeParse]: Executes the log parsing process, transforming verbose workflow logs into a structured JSON format, facilitating easier data manipulation and analysis.
0009: - \[makeDiffExample]: Demonstrates how to compare two JSON files derived from workflow logs, highlighting differences.
0010:
0011: Usage:
0012: To learn more about each command, type the command followed by 'help'. This will display detailed information about the command's function and usage examples.
0013:
0014: Example:
0015: $ init648 help # Displays help information for the init648 command.
0016:
0017: Note: Tests were conducted in the directory:
0018: |
Make Parse of the worklow log file
help
usageApptainer> makeParse workflowconfig.log [
{
"command": "o2-ctf-reader-workflow",
"switches": {
"session": "default_337_5438",
"severity": "info",
"shm-segment-id": "1664",
"shm-segment-size": "",
"resources-monitoring": "50",
"resources-monitoring-dump-interval": "50",
"early-forward-policy": "noraw",
"fairmq-rate-logging": "0",
"shm-mlock-segment-on-creation": "1",
"timeframes-rate-limit": "35",
"timeframes-rate-limit-ipcid": "1730516608",
"ans-version": "compat",
"delay": "1",
"loop": "",
"ctf-input": "list.list",
"copy-cmd": "file://?dst\"",
"onlyDet": "ITS,TPC,TOF,FV0,FT0,FDD,MID,MFT,MCH,TRD,EMC,PHS,CPV,HMP,ZDC,CTP",
"emcal-decoded-subspec": "1",
"timeframes-shm-limit": "33333333333",
"pipeline": "",
"remote-regex": "\"^alien:///alice/data/.+\"",
"allow-missing-detectors": "",
"its-digits": true,
"mft-digits": true,
"configKeyValues": "|"
},
"configKeyValues": {
"keyval.input_dir": "/workdir",
"keyval.output_dir": "/dev/null"
}
},
{
"command": "o2-tfidinfo-writer-workflow",
"switches": {
"session": "default_337_5438",
"severity": "info",
... |
|
Parser - workflowToJSON.sh
First of the series script to be ported from the TPC gitlab to the DPG script:
Described in detail in the
https://indico.cern.ch/event/1423563/contributions/5987247/attachments/2868815/5022209/ATO-648%20-synchronization%20AliEn%20%E2%86%92%20GSI%20and%20ALICE%20monalisa%20queries.pdf
Overview of the Shell Script