-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Merge stdext and reverse deps into XAPI #5378
Merge stdext and reverse deps into XAPI #5378
Conversation
Make safe-string compliant in a backward-compatible way
…, std, threads, unix} 1.1.0 Signed-off-by: Marcello Seri <marcello.seri@citrix.com>
Signed-off-by: Gabor Igloi <gabor.igloi@citrix.com>
Move quicktest_encodings from xapi into a unit test
See discussion in https://ocaml.github.io/ocamlunix/ocamlunix.html#sec118 and xapi-project#3570 Signed-off-by: Marcello Seri <marcello.seri@citrix.com>
Signed-off-by: Marcello Seri <marcello.seri@citrix.com>
Signed-off-by: Marcello Seri <marcello.seri@citrix.com>
Signed-off-by: Marcello Seri <marcello.seri@citrix.com>
really_write: remove deprecation and make robust against EINTR
See e.g. https://github.com/ocaml/ocaml/blob/trunk/otherlibs/unix/unix.ml#L328-L332 Signed-off-by: Marcello Seri <marcello.seri@citrix.com>
Signed-off-by: Marcello Seri <marcello.seri@citrix.com>
unixext: update interface to mimick the ocaml Unix one (fd-send-recv >= 2.0.0)
Signed-off-by: Edwin Török <edvin.torok@citrix.com>
`Backtrace.is_important` was not called. We have a `finally` function that does the proper thing wrt to backtraces, use it. xapi-stdext-pervasives is a dependency of xapi-stdext-threads already, so this does not introduce a new dependency. Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Signed-off-by: Edwin Török <edvin.torok@citrix.com>
We've got a `with_file` in this same file, use it instead of reimplementing it, so we get the improved backtraces. Signed-off-by: Edwin Török <edvin.torok@citrix.com>
We cannot use finally here, because the socket is only closed on failure. Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Signed-off-by: Edwin Török <edvin.torok@citrix.com>
CP-28365: improve backtraces by using finally
…nal one with it Use the Logs library to report the cleanup exception we caught. This way, we don't have to depend on xcp-idl. In xcp-idl, a Logs reporter will be registered, which collects the log messages from Logs and reports them in the usual way. Signed-off-by: Gabor Igloi <gabor.igloi@citrix.com>
Signed-off-by: Gabor Igloi <gabor.igloi@citrix.com>
CA-292641: Use Logs to log cleanup exn instead of shadowing the origi…
Signed-off-by: Gabor Igloi <gabor.igloi@citrix.com>
Prepare to release 4.4.0
Optionally use rpclib if it's available
Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
Simplify PPX processing
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Signed-off-by: Edwin Török <edwin.torok@cloud.com>
…merge-xapi-rrd' and 'private/edvint/merge-inventory'
Signed-off-by: Edwin Török <edwin.torok@cloud.com>
I found another way of doing it (by using .opam.template files). In general I'd like to move to generating files from dune-project, because then we can also use tools like 'opam dune lint' that checks the consistency of dependencies between opam files and dune files, and we can also share some metadata (e.g. consistent homepage, build rules and bugreport urls). And it'll also encourage us to have fewer opam files, we have way too many now.... |
68abce8
to
dd1bc5e
Compare
Otherwise it fails because it doesn't about the 'xapi-stdext' packge (it is not part of xs-opam). But ocamlformat shouldn't need depexts anyway, so disable them. Signed-off-by: Edwin Török <edwin.torok@cloud.com>
I agree, also at some point dune should support stashing them away in the opam subdir |
Tests are passing now, and I've also done a successful koji build. |
Can the unneeded files in |
Drop redundant: * .github * .ocamlformat * .travis.yml * INSTALL * MAINTAINERS * .gitattributes * .gitarchive-info * Makefile For consistency I've removed these from other subprojects too, not just recently merged ones. The only one I didn't touch was vhd-tool, which we may intend to upstream again at some point. I've kept the README/LICENSE and Changelog files. Signed-off-by: Edwin Török <edwin.torok@cloud.com>
I've cleaned up the merged subprojects, I've kept .gitignore/ChangeLog/LICENSE/README:
|
I'd like to push this forward, but after the fixed release is done. |
Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
4bd7423
to
478ec07
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5378 +/- ##
=======================================
Coverage 45.38% 45.38%
=======================================
Files 18 18
Lines 2937 2937
=======================================
Hits 1333 1333
Misses 1604 1604
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Overrriding the DCO check, all commits are from Xenserver / Citrix employees at the time of committing |
I've checked that the tests in the new packages have been run |
pytype_reporter extracted 49 problem reports from pytype output.You can check the results of the job here |
Merges as git subtree:
Opening PR to see whether the CI works.