Skip to content

Commit 6f348df

Browse files
authored
Add info about repo_cleaner of ccdb-test (QC-276) (#319)
1 parent 22afaf4 commit 6f348df

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

Framework/script/RepoCleaner/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ It is `repoCleaner.py`. See the long comment at the beginning.
88
./repoCleaner [--dry-run] [--log-level 10] [--config config.yaml]
99
```
1010

11-
## Config
11+
## Configuration
1212
The file `config.yaml` contains the rules to be followed to clean up the database.
1313
It also contains the CCDB url.
1414

15+
The configuration for ccdb-test is described [here](../../../doc/DevelopersTips.md).
16+
1517
## Test
1618
`cd QualityControl/Framework/script/RepoCleaner ; python3 -m unittest discover`
1719

1820
To run just one of the rules, do `python3 1_per_run.py`.
1921

2022
## Installation
21-
CMake will install the python scripts in bin and the config file in etc.
23+
CMake will install the python scripts in bin and the config file in etc.

Framework/script/RepoCleaner/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Rules:
22
- object_path: qc/ITS/ITSRawTask/.*
3-
delay: 120
3+
delay: 240
44
policy: 1_per_run
55
- object_path: qc/ITS/ITSRawTaskIBB1/.*
66
delay: 120

doc/DevelopersTips.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
This is a resource meant for the developers of the QC. Whenever we learn something useful we put it
44
here. It is not sanitized or organized. Just a brain dump.
55

6+
## Where and how to configure the repo_cleaner of the ccdb-test
7+
8+
The config file is in `aldaqci@aidrefflp01:~/alice-ccdb/config.yaml`. Simply edit it and it will be picked up the next time the repo_cleaner runs.
9+
10+
The repo_cleaner is launched every 5 minutes by [Jenkins](https://alijenkins.cern.ch/job/FLP/job/CCDB%20Clean%20up/).
11+
12+
It is a good practice to update [config.yaml](../Framework/script/RepoCleaner/config.yaml) in this repo when updating the file on `aidrefflp01`.
13+
14+
Documentation of the repo_cleaner can be found [here](../Framework/script/RepoCleaner/README.md).
15+
616
### Trick used to load old data
717
Until version 3 of the class MonitorObject, objects were stored in the repository directly. They are now stored within TFiles. The issue with the former way is that the StreamerInfo are lost. To be able to load old data, the StreamerInfos have been saved in a root file "streamerinfos.root". The CcdbDatabase access class loads this file and the StreamerInfos upon creation which allows for a smooth reading of the old objects. The day we are certain nobody will add objects in the old format and that the old objects have been removed from the database, we can delete this file and remove the loading from CcdbDatabase. Moreover, the following lines can be removed :
818
```

0 commit comments

Comments
 (0)