Skip to content

Commit 0d4c745

Browse files
authored
Merge branch 'master' into qodana
2 parents d9d92b6 + 0189b56 commit 0d4c745

File tree

3 files changed

+67
-34
lines changed

3 files changed

+67
-34
lines changed

common/monitoring/monitoring_test.go

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -448,36 +448,36 @@ func TestApproximateHistogram(t *testing.T) {
448448
t.Errorf("wrong poolSize, expected 500, got %d", poolSize)
449449
}
450450

451-
if math.Abs(mean-50) > 5 {
452-
t.Errorf("wrong mean value, expected 50+-5 got %v", mean)
451+
if math.Abs(mean-50) > 10 {
452+
t.Errorf("wrong mean value, expected 50+-10 got %v", mean)
453453
}
454454

455-
if math.Abs(float64(median-50)) > 5 {
456-
t.Errorf("wrong median value, expected 50+-5 got %v", median)
455+
if math.Abs(float64(median-50)) > 10 {
456+
t.Errorf("wrong median value, expected 50+-10 got %v", median)
457457
}
458458

459-
if float64(minimum) > 5 {
460-
t.Errorf("wrong min value, expected 0+-5 got %v", minimum)
459+
if float64(minimum) > 10 {
460+
t.Errorf("wrong min value, expected 0+-10 got %v", min)
461461
}
462462

463-
if math.Abs(float64(p10-10)) > 5 {
464-
t.Errorf("wrong 10p value, expected 10+-5 got %v", p10)
463+
if math.Abs(float64(p10-10)) > 10 {
464+
t.Errorf("wrong 10p value, expected 10+-10 got %v", p10)
465465
}
466466

467-
if math.Abs(float64(p30-30)) > 5 {
468-
t.Errorf("wrong 30p value, expected 30+-5 got %v", p30)
467+
if math.Abs(float64(p30-30)) > 10 {
468+
t.Errorf("wrong 30p value, expected 30+-10 got %v", p30)
469469
}
470470

471-
if math.Abs(float64(p70-70)) > 5 {
472-
t.Errorf("wrong 50p value, expected 70+-5 got %v", p70)
471+
if math.Abs(float64(p70-70)) > 10 {
472+
t.Errorf("wrong 50p value, expected 70+-10 got %v", p70)
473473
}
474474

475-
if math.Abs(float64(p90-90)) > 5 {
476-
t.Errorf("wrong 90p value, expected 90+-5 got %v", p90)
475+
if math.Abs(float64(p90-90)) > 10 {
476+
t.Errorf("wrong 90p value, expected 90+-10 got %v", p90)
477477
}
478478

479-
if math.Abs(float64(maximum-100)) > 5 {
480-
t.Errorf("wrong max value, expected 100+-5 got %v", maximum)
479+
if math.Abs(float64(maximum-100)) > 10 {
480+
t.Errorf("wrong max value, expected 100+-10 got %v", max)
481481
}
482482
}
483483

@@ -497,33 +497,33 @@ func TestMetricsHistogramObject(t *testing.T) {
497497
for _, metric := range metrics {
498498
for valueName, value := range metric.fields {
499499
if strings.Contains(valueName, "mean") {
500-
if math.Abs(value.(float64)-50) > 5 {
501-
t.Errorf("wrong mean value, expected 50+-5 got %v", value.(float64))
500+
if math.Abs(value.(float64)-50) > 10 {
501+
t.Errorf("wrong mean value, expected 50+-10 got %v", value.(float64))
502502
}
503503
}
504504
if strings.Contains(valueName, "median") {
505-
if math.Abs(value.(float64)-50) > 5 {
506-
t.Errorf("wrong median value, expected 50+-5 got %v", value.(float64))
505+
if math.Abs(value.(float64)-50) > 10 {
506+
t.Errorf("wrong median value, expected 50+-10 got %v", value.(float64))
507507
}
508508
}
509509
if strings.Contains(valueName, "p10") {
510-
if math.Abs(value.(float64)-10) > 5 {
511-
t.Errorf("wrong p10, expected 10+-5 got %v", value.(float64))
510+
if math.Abs(value.(float64)-10) > 10 {
511+
t.Errorf("wrong p10, expected 10+-10 got %v", value.(float64))
512512
}
513513
}
514514
if strings.Contains(valueName, "p30") {
515-
if math.Abs(value.(float64)-30) > 5 {
516-
t.Errorf("wrong p30, expected 30+-5 got %v", value.(float64))
515+
if math.Abs(value.(float64)-30) > 10 {
516+
t.Errorf("wrong p30, expected 30+-10 got %v", value.(float64))
517517
}
518518
}
519519
if strings.Contains(valueName, "p70") {
520-
if math.Abs(value.(float64)-70) > 5 {
521-
t.Errorf("wrong p70, expected 70+-5 got %v", value.(float64))
520+
if math.Abs(value.(float64)-70) > 10 {
521+
t.Errorf("wrong p70, expected 70+-10 got %v", value.(float64))
522522
}
523523
}
524524
if strings.Contains(valueName, "p90") {
525-
if math.Abs(value.(float64)-90) > 5 {
526-
t.Errorf("wrong p90, expected 90+-5 got %v", value.(float64))
525+
if math.Abs(value.(float64)-90) > 10 {
526+
t.Errorf("wrong p90, expected 90+-10 got %v", value.(float64))
527527
}
528528
}
529529
if strings.Contains(valueName, "count") {

core/integration/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ CCDB plugin calls PDP-provided executable which creates a General Run Parameters
2929
## DCS
3030

3131
DCS plugin communicates with the ALICE Detector Control System (DCS).
32+
In particular, it communicates with a gRPC endpoint exposed by `ecs2dcsgateway` (developed by the DCS team), which then passes the requests to the DCS.
3233

3334
### DCS operations
3435

@@ -151,6 +152,23 @@ From the AliECS user point of view, state sequences can be defined as the follow
151152
- `dcs_sor_state_sequence`
152153
- `dcs_eor_state_sequence`
153154

155+
#### Testing tips
156+
157+
Typical valid sequences are:
158+
159+
```
160+
{
161+
"dcs_pfr_state_sequence": "1000:RUN_OK",
162+
"dcs_sor_state_sequence": "1000:SOR_PROGRESSING,3000:RUN_OK",
163+
"dcs_eor_state_sequence": "1000:EOR_PROGRESSING,3000:RUN_OK"
164+
}
165+
```
166+
167+
`PFR_AVAILABLE` and `SOR_AVAILABLE` are typically send by DCS via the heartbeat stream, so requesting them as an answer to an operation request does not reflect the behaviour of the production system.
168+
169+
To trigger a `TIMEOUT` event, one should not request a `TIMEOUT` state in the sequence, but rather put a too long delay compared to the provided gRPC timeout.
170+
Both in the production and the mock setup, `TIMEOUT` events are generated by `ecs2dcsgateway` when a detector does not respond to a request within the specified timeout.
171+
154172
## DD Scheduler
155173

156174
DD scheduler plugin informs the Data Distribution software about the pool of FLPs taking part in data taking.

docs/development.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,26 @@ Bugs go to [JIRA](https://its.cern.ch/jira/projects/OCTRL/issues).
88

99
## Release Procedure
1010

11+
### Major releases
12+
1113
1. Update documentation if necessary.
1214
2. Bump `VERSION` file, commit, push (or pull request).
13-
3. Run `hacking/release_notes.sh HEAD` to get a formatted commit message list since the last tag, copy it.
14-
4. Paste the above into a [new GitHub release draft](https://github.com/AliceO2Group/Control/releases/new). Sort, categorize, add summary on top.
15-
5. Pick a version number. Numbers `x.x.80`-`x.x.89` are reserved for Alpha pre-releases. Numbers `x.x.90`-`x.x.99` are reserved for Beta and RC pre-releases. If doing a pre-release, don't forget to tick `This is a pre-release`. When ready, hit `Publish release`.
16-
6. Go to your local clone of `alidist`, ensure that the branch is `master` and that it's up to date. Then branch out into `aliecs-bump` (`git branch aliecs-bump`).
17-
7. Bump the version in `control.sh`, `control-core.sh`, `control-occplugin.sh` and `coconut.sh`. Commit and push to `origin/aliecs-bump` (`git push -u origin aliecs-bump`).
18-
8. Submit pull request with the above to `alisw/alidist`.
15+
3. Go to a [new GitHub release draft](https://github.com/AliceO2Group/Control/releases/new). Use "Generate release notes" to create a list of changes. Write a short summary at the top.
16+
4. Go to your local clone of `alidist`, ensure that the branch is `master` and that it's up to date. Then branch out into `aliecs-bump` (`git branch aliecs-bump`).
17+
5. Bump the version in `control.sh`, `control-core.sh`, `control-occplugin.sh` and `coconut.sh`. Commit and push to `origin/aliecs-bump` (`git push -u origin aliecs-bump`).
18+
6. Submit pull request with the above to `alisw/alidist`.
19+
20+
### Patch releases
21+
22+
1. Update documentation if necessary.
23+
2. If the patch release should NOT be based on master:
24+
25+
* Checkout the tag which the patch release should be based on, e.g. `git checkout v1.34.0`
26+
* Create a branch called `branch_<planned_tag>`, e.g. `git checkout -b branch_v1.34.1`.
27+
28+
3. Bump `VERSION` file, commit, push (or pull request).
29+
4. Go to a [new GitHub release draft](https://github.com/AliceO2Group/Control/releases/new). Use "Generate release notes" to create a list of changes. Write a short summary at the top.
30+
5. Go to your local clone of `alidist`, ensure that the branch is `master` and that it's up to date. Then branch out into `aliecs-bump` (`git branch aliecs-bump`).
31+
6. Bump the version in `control.sh`, `control-core.sh`, `control-occplugin.sh` and `coconut.sh`. Commit and push to `origin/aliecs-bump` (`git push -u origin aliecs-bump`).
32+
7. Submit pull request with the above to `alisw/alidist`.
33+

0 commit comments

Comments
 (0)