Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
35e0b92
Initial commit
johnelse Apr 3, 2013
da00cb5
Rename obuild file
johnelse Apr 26, 2013
30ccc60
Build fixes
johnelse Apr 26, 2013
e42e6ae
Remove dependency on xen-api-client
johnelse Apr 26, 2013
5f0a0c7
Add README.md
johnelse Apr 26, 2013
694e130
One day I will learn Markdown properly
johnelse Apr 26, 2013
17fc089
Fix META
johnelse Apr 26, 2013
6821c64
Fix META some more
johnelse Apr 26, 2013
2a1c633
CA-107919: Reduce memory usage when writing large RRDs.
Jun 6, 2013
92959e5
Merge pull request #1 from jonludlam/CA-107919
djs55 Jun 6, 2013
675141d
Add the standard complement of files.
Jun 6, 2013
dd29b1c
Bump version to 0.9.0 for initial release.
Jun 6, 2013
6073717
Merge pull request #2 from djs55/add-standard-files
djs55 Jun 6, 2013
6ab06af
CA-102285: Use the stream API to read the XML RRD file.
johnelse Jun 11, 2013
ded5e0c
Merge pull request #3 from johnelse/cp-5129
johnelse Jun 17, 2013
db3ed1e
Makefile: 'install' and 'uninstall' are both phony targets
Aug 7, 2014
6c09bed
Merge pull request #4 from djs55/portable-osx
johnelse Aug 7, 2014
6e40fc8
Release 0.9.1
Sep 26, 2014
5abb42f
Merge pull request #6 from djs55/release.0.9.1
djs55 Sep 26, 2014
71a308b
Switch to OASIS, add the Fring module from stdext
Apr 2, 2015
bddb621
Add an opam file for development.
Apr 2, 2015
4d2d1a9
Add .travis.yml
Apr 2, 2015
39addd4
make uninstall: try harder to remove the library
Apr 2, 2015
8a786fc
Remove dependency on stdext
jonludlam Sep 26, 2014
19e4524
ocp-indent. No semantic change
jonludlam Sep 28, 2014
5dea2c9
Move the unix specifics to a different module
jonludlam Sep 28, 2014
e62a773
Add merlin file
jonludlam Sep 28, 2014
aae7c7f
Remove unused data type
jonludlam Sep 29, 2014
9f5b339
Move out utils into a separate file
jonludlam Sep 29, 2014
4e1ebcb
Move updates logic into updates.ml
jonludlam Sep 29, 2014
dcefe9a
Define updates data type
jonludlam Sep 29, 2014
3ffeb8b
Update merlin file
jonludlam Sep 29, 2014
b05c42f
Add unmarshalling of updates, and a marshalling of the datatype
jonludlam Sep 29, 2014
557483f
Add a simple unmarshalling smoke test
jonludlam Sep 29, 2014
fcbe30e
Add unit tests
jonludlam Sep 29, 2014
fb3cffe
Fix up the updates module
jonludlam Sep 29, 2014
188a7a4
Add an of_string to Updates
jonludlam Sep 30, 2014
ca9a39a
Move the tests to lib_test/
Apr 2, 2015
5c24ca3
Unpack the main Rrd module
Apr 2, 2015
86ceeb3
Remove accidentally added OASIS autogen META file
Apr 2, 2015
0ea222a
Remove commented-out code
Apr 2, 2015
9258cf9
Fix dependencies: remove xapi-stdext, move uuidm
Apr 2, 2015
67291f6
Add META to .gitignore
Apr 2, 2015
1e375bc
opam: add depend on ounit for tests
Apr 2, 2015
8e8716e
Merge pull request #8 from djs55/jons
djs55 Apr 2, 2015
7aef6e9
Use the xapi-project fork of the travis skeleton
johnelse May 15, 2015
7ecab74
EXTRA_REMOTE is now EXTRA_REMOTES
johnelse May 15, 2015
86eb6bb
Merge pull request #9 from johnelse/fix-travis
johnelse May 15, 2015
966ca16
Interpret a -ve `start` as relative to the last update
djs55 Jun 21, 2015
497df75
Rrd_timescales: allow a server to export available timescales/resolut…
djs55 Jun 21, 2015
ecbe67e
Merge pull request #10 from djs55/improve-api
djs55 Jun 25, 2015
e223a33
Prepare to release 0.12.0
Jun 25, 2015
562cceb
Merge pull request #12 from djs55/release.0.12.0
djs55 Jun 25, 2015
9d0d673
Building the tests should be optional
samoht Jul 5, 2015
fcb6f36
Modernize the opam to make OUnit an optional dependency
samoht Jul 5, 2015
9d42745
In the Makefile, configure should be called with the right test config
samoht Jul 5, 2015
eebe525
Merge pull request #14 from samoht/master
johnelse Jul 8, 2015
c1b948a
oasis: Update to 1.0.0 and declare package stable
euanh Apr 27, 2016
259c560
Merge pull request #15 from euanh/master
euanh Apr 27, 2016
b820e58
git: Add metadata to the result of `git archive`
euanh Nov 7, 2016
65c4c5b
Remove FORK_USER variable from .travis.yml
gaborigloi Nov 10, 2016
beeadfa
Merge pull request #16 from gaborigloi/fix_travis
lindig Nov 10, 2016
44358cd
Remove dependency on camlp4, port to ppx
May 10, 2017
fa9ece2
Fix travis
May 10, 2017
239eb28
Fix deprecation warnings
May 10, 2017
c30fd92
Merge pull request #17 from mseri/ppx
mseri May 12, 2017
defaa5a
Sync opam file with the one in xs-opam
gaborigloi May 17, 2017
8c29022
Merge pull request #18 from gaborigloi/sync_opam
mseri Jun 9, 2017
19387f2
Update version in the oasis file to prepare for 1.0.1 release
Jun 16, 2017
bbd6091
Update changelog in preparation of v1.0.1
Jun 16, 2017
e739962
Cleanup README
Jun 16, 2017
8363132
Remove outdated install file
Jun 16, 2017
56b6c89
Merge pull request #19 from mseri/ppx_version
gaborigloi Jun 16, 2017
ec7c82d
Add dependency on rpclib.json
djs55 Jun 24, 2017
fbac5d5
Merge pull request #20 from djs55/fix-build
mseri Jun 26, 2017
d0ada0a
Port to jbuilder
Aug 22, 2017
3919bf4
Removed unused rewrite test executable
Aug 22, 2017
e96cce4
.travis.yml: fix travis tests
Aug 22, 2017
6002536
Move to more idiomatic version name and add compatibility warning
Aug 22, 2017
ef89c79
Silence or fix warnings
Aug 22, 2017
3046dcc
Moved text_export in rrddump, the only place where it is used
Aug 22, 2017
4ddb976
xapi-rrd-unix: fix dependencies in opam and jbuild files
Aug 23, 2017
054fb2d
opam: make it retrocompatible
Dec 6, 2017
d7d0605
Makefile: add missing targets and make release the default
Dec 6, 2017
ea69caf
.travis: fix up after renaming packages
Dec 6, 2017
c1daeb3
Make reindent
Dec 6, 2017
ab0d353
META template: remove after removal of xapi-rrd-unix
Dec 6, 2017
c930576
rrd.opam: re-enable tests
Dec 6, 2017
e218c48
Makefile: make tests -> make test
Dec 6, 2017
6360a53
MAINTAINERS: update
Dec 6, 2017
0919bac
Merge pull request #21 from mseri/jbuilder
mseri Dec 6, 2017
78df25b
Prepare to release 1.1.0
Dec 6, 2017
3040e5b
Merge pull request #22 from mseri/master
mseri Dec 6, 2017
7988461
rrd: add missing bigarray in jbuild file
Feb 28, 2018
4234e55
Merge pull request #23 from mseri/master
mseri Feb 28, 2018
8715b25
Prepare to release 1.2.0
Feb 28, 2018
e8acac3
Merge pull request #24 from mseri/master
mseri Feb 28, 2018
421f81a
rrd_unix: make safe-string safe
Mar 15, 2018
29ddc5a
Merge pull request #25 from mseri/master
mseri Mar 15, 2018
2830e69
Prepare to release 1.3.0
Mar 15, 2018
03ab7c0
Use rpclib if it's available
samoht Aug 6, 2018
d518b29
Merge pull request #26 from samoht/rpclib
edwintorok Aug 14, 2018
ec275d9
Simplify PPX processing
lindig Sep 3, 2018
d31660e
Merge pull request #27 from lindig/master
gaborigloi Sep 3, 2018
fbb1217
Move from jbuilder to dune.
Dec 31, 2018
1739e0c
Deprecated package rrd in favour of xapi-rrd.
Jan 3, 2019
a1c0459
Merge pull request #28 from kc284/master
lindig Jan 8, 2019
adc5174
CA-315952 fix JSON output
lindig May 14, 2019
17732d0
CA-315952 add missing data in Json output
lindig May 16, 2019
60c5ea3
tests: port to alcotest
psafont Jun 14, 2019
f1569c0
tests: Consolidate floating-point comparisons
psafont Jun 17, 2019
534783a
tests: convert int and string asserts to alcotest
psafont Jun 17, 2019
bdaa8f1
tests: check that all values in RRas are within bounds
psafont Jun 17, 2019
8b12233
tests: use random names for files
psafont Jun 18, 2019
70cefa7
ci: update and simplify travis configuration
psafont Jun 18, 2019
b028c29
tests: add regression test for CA-322008
psafont Jun 18, 2019
c986340
CA-322008: do not treat DERIVE sources as COUNTER
psafont Jun 18, 2019
9718e95
CA-322008: Reorganize code for incoming values by type
psafont Jun 18, 2019
3103ae6
maintenance: use infix operators for Int64 in rrd
psafont Jun 27, 2019
67ea741
maintenance: whitespace and commented code deletion
psafont Jun 27, 2019
4a86fb5
CA-322008: Report out-of-bounds PDP values as NaN
psafont Jul 25, 2019
5b9d4ad
Merge pull request #31 from psafont/ca-322008
edwintorok Jul 29, 2019
16fbe37
travis: load vars from xs-opam repo
psafont Aug 16, 2019
32135a3
tests: add json marshalling
psafont Aug 21, 2019
2e2f2d4
Merge pull request #33 from psafont/unma_very
edwintorok Aug 21, 2019
86d19cc
CA-329043: Add regression test
psafont Oct 15, 2019
f05d709
CA-329043: Do not produce default values that are out-of-bounds
psafont Oct 15, 2019
2d303ab
CA-329043: Add crowbar tests
psafont Oct 15, 2019
04ef7ad
dune: simplify test definition
psafont Oct 17, 2019
0e2f136
unit_tests: compare min and max values once per ds
psafont Oct 17, 2019
3a2a4b5
CA-329043: add case generated by crowbar
psafont Oct 17, 2019
76eed66
CA-329043: Use type system to avoid storing out-of-range values
psafont Oct 17, 2019
c2ad0cd
CA-329043: Add sanity checks to rrds
psafont Oct 21, 2019
c2b61a7
CA-325844: Test RRAs are validated when deserializing
psafont Oct 29, 2019
5070c26
Bounded values in RRAs (#36)
psafont Oct 29, 2019
4528915
opam: refresh metadata
psafont Oct 29, 2019
b993901
CA-329813: add regression tests
psafont Oct 31, 2019
883d3b5
CA-329813: fix including a datasource to an rrd
psafont Oct 31, 2019
6d71bbd
Merge pull request #38 from psafont/rrd_create_fix
edwintorok Oct 31, 2019
cf28576
Merge pull request #37 from psafont/opam
edwintorok Nov 1, 2019
92f5db5
rrd: cleanup around ds_values processing
psafont Oct 4, 2019
a247b81
rrd: share to_string methods among serializers
psafont Oct 4, 2019
11a8bca
rrd_updates: Do not expose Failure "hd" when exporting rrds
psafont Oct 7, 2019
a642292
maintenance: whitespace
psafont Nov 19, 2019
5828186
rrd: delete unused functions
psafont Oct 16, 2019
7b0ecaf
rrd: update documentation
psafont Oct 16, 2019
a954764
CP-33354 fix inconsistent number of columns
Mar 20, 2020
b697bb4
Merge pull request #43 from lippirk/CP-33354
Mar 24, 2020
582ac37
fix (lib_test): remove duplicated test suite
psafont Sep 9, 2020
89c594e
maintenance(lib_test): refactor crowbar tests
psafont Sep 9, 2020
a5d1426
Merge pull request #47 from psafont/tests
psafont Sep 9, 2020
1538ad9
chore: prepare for ocamlformat, use dune 2.0
psafont Mar 26, 2021
d77848f
maintenance: format code with ocamlformat
psafont Mar 26, 2021
4e64622
ci: use github
psafont Mar 26, 2021
47edfc4
ci: drop travis
psafont Mar 26, 2021
3c94400
Merge pull request #48 from psafont/refresh
psafont Apr 1, 2021
febcf92
Add license to opam metadata and delete deprecated package
psafont Feb 17, 2022
dc00919
Merge pull request #49 from psafont/license
psafont Feb 18, 2022
3bfb6f6
CA-367236: replace ezjsonm with yojson
psafont Jul 28, 2022
b91b629
unix: remove code from module
psafont Jul 28, 2022
faeeb52
ocamlformat: apply new formatting
psafont Jul 28, 2022
496ed07
Merge pull request #50 from psafont/json
edwintorok Aug 2, 2022
7ad2b85
Set up release 1.9.0
psafont Aug 2, 2022
7ce1ac3
Merge pull request #51 from psafont/release
psafont Aug 2, 2022
cbfad8b
CA-371780: Reduce cost of ds_update_name
psafont Oct 26, 2022
afa37d1
opam: update metadata from official repo
psafont Oct 28, 2022
45a0c4c
Merge pull request #52 from psafont/gottago
psafont Oct 28, 2022
2954487
CA-378301: Avoid memory leaks when writing XML
psafont Jun 12, 2023
9e79392
Merge pull request #54 from psafont/close-xml
psafont Jun 13, 2023
690e49e
ci: use ocaml-setup v2
psafont Jul 19, 2023
bef6253
rrd: output json numbers more consistently
psafont Jul 18, 2023
03cffe8
rrd_updates: replace ad-hoc json generation to use yojson
psafont Jul 18, 2023
c7925f5
lib_test: use alcotest's float comparison
psafont Jul 20, 2023
f00d88f
opam: update dependencies
psafont Aug 2, 2023
c1e97c5
Changelog: prepare for release 1.10.0
psafont Aug 2, 2023
03a3588
lib: remove Failure "hd" exceptions
psafont Nov 16, 2023
61d362a
Merge pull request #58 from psafont/get-out-of-my
psafont Nov 16, 2023
382682f
Fixed typo in ds field minimal_heartbeat.
Dec 9, 2023
86dc1ae
prepare for release v1.12.0
psafont Dec 11, 2023
7e7e838
Merge pull request #60 from psafont/release
psafont Dec 11, 2023
c7668e2
Add 'ocaml/libs/xapi-rrd/' from commit '7e7e83822bf633de0169b72bad48e…
edwintorok Jan 22, 2024
9b31ae5
[maintenance]: make format
edwintorok Jan 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ install: build doc sdk doc-json
gzip http-lib pciutil sexpr stunnel uuid xml-light2 zstd xapi-compression safe-resources \
message-switch message-switch-async message-switch-cli message-switch-core message-switch-lwt \
message-switch-unix xapi-idl forkexec xapi-forkexecd xapi-storage xapi-storage-script xapi-storage-cli \
xapi-nbd varstored-guard xapi-log xapi-open-uri xapi-tracing xapi-expiry-alerts cohttp-posix
xapi-nbd varstored-guard xapi-log xapi-open-uri xapi-tracing xapi-expiry-alerts cohttp-posix \
xapi-rrd
# docs
mkdir -p $(DESTDIR)$(DOCDIR)
cp -r $(XAPIDOC)/jekyll $(DESTDIR)$(DOCDIR)
Expand All @@ -263,7 +264,8 @@ uninstall:
gzip http-lib pciutil sexpr stunnel uuid xml-light2 zstd xapi-compression safe-resources \
message-switch message-switch-async message-switch-cli message-switch-core message-switch-lwt \
message-switch-unix xapi-idl forkexec xapi-forkexecd xapi-storage xapi-storage-script xapi-log \
xapi-open-uri xapi-tracing xapi-expiry-alerts cohttp-posix
xapi-open-uri xapi-tracing xapi-expiry-alerts cohttp-posix \
xapi-rrd

compile_flags.txt: Makefile
(ocamlc -config-var ocamlc_cflags;\
Expand Down
2 changes: 2 additions & 0 deletions ocaml/libs/xapi-rrd/.gitarchive-info
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Changeset: $Format:%H$
Commit date: $Format:%cD$
1 change: 1 addition & 0 deletions ocaml/libs/xapi-rrd/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.gitarchive-info export-subst
38 changes: 38 additions & 0 deletions ocaml/libs/xapi-rrd/.github/workflows/ocaml-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and test

on:
push:
pull_request:

jobs:
ocaml-test:
name: Ocaml tests
runs-on: ubuntu-20.04

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Pull configuration from xs-opam
run: |
curl --fail --silent https://raw.githubusercontent.com/xapi-project/xs-opam/master/tools/xs-opam-ci.env | cut -f2 -d " " > .env

- name: Load environment file
id: dotenv
uses: falti/dotenv-action@v1.0.4

- name: Use ocaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ steps.dotenv.outputs.ocaml_version_full }}
opam-repositories: |
xs-opam: ${{ steps.dotenv.outputs.repository }}

- name: Install dependencies
run: opam install . --deps-only --with-test -v

- name: Build
run: opam exec -- make build

- name: Run tests
run: opam exec -- make test
3 changes: 3 additions & 0 deletions ocaml/libs/xapi-rrd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_build
.merlin
*.install
9 changes: 9 additions & 0 deletions ocaml/libs/xapi-rrd/.ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
profile=ocamlformat
indicate-multiline-delimiters=closing-on-separate-line
if-then-else=fit-or-vertical
dock-collection-brackets=true
break-struct=natural
break-separators=before
break-infix=fit-or-vertical
break-infix-before-func=false
sequence-blank-line=preserve-one
115 changes: 115 additions & 0 deletions ocaml/libs/xapi-rrd/ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
## v1.12.0 (11-Dec-2023)
* lib: fix typo in ds field minimal_heartbeat

## v1.11.0 (16-Nov-2023)
* lib: remove Failure "hd" exceptions

## v1.10.0 (02-Aug-2023)
* rrd_updates: use yojson instead of ad-hoc json serialization

## v1.9.2 (13-Jun-2023)
* CA-378301: Avoid memory leaks when writing XML

## v1.9.1 (28-Oct-2022)
* CA-371780: Remove quadratic cost in ds_update_name

## v1.9.0 (02-Aug-2022)
* ocamlformat: apply new formatting
* unix: remove code from module
* CA-367236: replace ezjsonm with yojson
* Add license to opam metadata and delete deprecated package
* ci: drop travis
* ci: use github
* maintenance: format code with ocamlformat
* chore: prepare for ocamlformat, use dune 2.0

## v1.8.2 (09-Sep-2020)
* maintenance(lib_test): refactor crowbar tests
* fix (lib_test): remove duplicated test suite

## v1.8.1 (24-Mar-2020)
* CP-33354 fix inconsistent number of columns
* rrd: update documentation
* rrd: delete unused functions
* maintenance: whitespace
* rrd_updates: Do not expose Failure "hd" when exporting rrds
* rrd: share to_string methods among serializers
* rrd: cleanup around ds_values processing

## v1.8.0 (31-Oct-2019)
CA-329813: fix including a datasource to an rrd
CA-329813: add regression tests
opam: refresh metadata

## v1.7.0 (29-Oct-2019)
* CA-325844: Test RRAs are validated when deserializing
* CA-329043: Add sanity checks to rrds
* CA-329043: Use type system to avoid storing out-of-range values
* CA-329043: add case generated by crowbar
* unit_tests: compare min and max values once per ds
* dune: simplify test definition
* CA-329043: Add crowbar tests
* CA-329043: Do not produce default values that are out-of-bounds
* CA-329043: Add regression test
* tests: add json marshalling
* travis: load vars from xs-opam repo

## v1.6.0 (29-Jul-2019)
* CA-322008: Report out-of-bounds PDP values as NaN
* maintenance: whitespace and commented code deletion
* maintenance: use infix operators for Int64 in rrd
* CA-322008: Reorganize code for incoming values by type
* CA-322008: do not treat DERIVE sources as COUNTER
* tests: add regression test for CA-322008
* ci: update and simplify travis configuration
* tests: use random names for files
* tests: check that all values in RRas are within bounds
* tests: convert int and string asserts to alcotest
* tests: Consolidate floating-point comparisons
* tests: port to alcotest

## v1.5.0 (17-May-2019)
* CA-315952 add missing data in Json output
* CA-315952 fix JSON output

## v1.4.1 (08-Jan-2019)
* Deprecated package rrd in favour of xapi-rrd.
* Move from jbuilder to dune.

## v1.4.0 (03-Sep-2018)
* Simplify PPX processing
* Use rpclib if it's available

## v1.3.0 (15-Mar-2018):
* Make safe-string safe

## v1.2.0 (28-Feb-2018):
* Added missing bigarray dependency in the jbuild file

## v1.1.0 (06-Dec-2017):
* Updated dependencies
* Code cleanup
* Port to jbuilder

## v1.0.1 (16-Jun-2017):
* Use new ppx deriver in place of old camlp4 one
* Fix deprecation warnings

## v1.0.0 (27-Apr-2016):
* Declare this package stable

## v0.12.0 (25-Jun-2015):
* rrd_updates: interpret a -ve start as relative to now
* add a concept of rrd_timescales

## v0.10.1 (2-Apr-2015):
* remove dependency on xapi libraries
* remove Unix dependency

## v0.9.1 (26-Sep-2014):
* CA-102285: Use the stream API to read the XML RRD file
* Fix 'make install' and 'make uninstall' (by making them PHONY targets)

## v0.9.0 (6-Jun-2013):
* first public release

Loading