vishnuchalla opened a new pull request, #141:
URL: https://github.com/apache/otava/pull/141
### Description
Fix orig edivsive flow. I am running into below error if more than 10
datapoints are being used for analysis
```
vchalla@vchalla-thinkpadp1gen2:~/myforks/otava$ otava --config-file
/tmp/otava-10.yaml analyze tiny10 --last 15 -P 0.001 --window 15 -M 0.0
--orig-edivisive=true
INFO: Computing change points for test tiny10...
Traceback (most recent call last):
File "/home/vchalla/.local/bin/otava", line 7, in <module>
sys.exit(main())
^^^^^^
File "/home/vchalla/myforks/otava/otava/main.py", line 651, in main
script_main()
File "/home/vchalla/myforks/otava/otava/main.py", line 578, in script_main
analyzed_series = otava.analyze(
^^^^^^^^^^^^^^
File "/home/vchalla/myforks/otava/otava/main.py", line 125, in analyze
produced_report = report.produce_report(test.name, report_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vchalla/myforks/otava/otava/report.py", line 52, in
produce_report
return self.__format_log_annotated(test_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vchalla/myforks/otava/otava/report.py", line 87, in
__format_log_annotated
change = [c for c in cp.changes if c.metric == col_name]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vchalla/myforks/otava/otava/report.py", line 87, in <listcomp>
change = [c for c in cp.changes if c.metric == col_name]
^^^^^^^^
AttributeError: 'ChangePoint' object has no attribute 'metric'
```
### Testing
Tested and verified in local
```
vchalla@vchalla-thinkpadp1gen2:~/myforks/otava$ otava --config-file
/tmp/otava-15.yaml analyze tiny15 -P 0.001 --window 50 -M 0.0 --orig-edivisive
INFO: Computing change points for test tiny15...
time commit metric1
------------------------- -------- ---------
2026-01-01 00:00:00 +0000 c1 100
2026-01-02 00:00:00 +0000 c2 101
2026-01-03 00:00:00 +0000 c3 99
2026-01-04 00:00:00 +0000 c4 100
2026-01-05 00:00:00 +0000 c5 102
2026-01-06 00:00:00 +0000 c6 101
2026-01-07 00:00:00 +0000 c7 100
2026-01-08 00:00:00 +0000 c8 99
2026-01-09 00:00:00 +0000 c9 100
·········
+30.3%
·········
2026-01-10 00:00:00 +0000 c10 130
2026-01-11 00:00:00 +0000 c11 131
2026-01-12 00:00:00 +0000 c12 130
2026-01-13 00:00:00 +0000 c13 132
2026-01-14 00:00:00 +0000 c14 130
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]