-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge master into feature/perf #5693
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Luca Zhang <[email protected]>
CP-47350: Add mustache template for Record/Ref/Class Types CP-47365: Add mustache template for API messages/errors CP-47363: Add mustache template for file header Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
…ed JSON is wanted Signed-off-by: Luca Zhang <[email protected]>
…mmonFunctions` Signed-off-by: Luca Zhang <[email protected]>
…files Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
Before we got the enums alongside objs, the readability of code is so poor. We separate to get them now. Signed-off-by: Luca Zhang <[email protected]>
Just check the fields only we need instead of generalized recursive functions Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
Generate Golang codes for SDK
fail is always used in combination with Printf.sprintf so combine the two. Signed-off-by: Frediano Ziglio <[email protected]>
More compact code. Signed-off-by: Frediano Ziglio <[email protected]>
"exe" variable is compute in mutiple functions, not very expensive to compute once. Reduce code. Signed-off-by: Frediano Ziglio <[email protected]>
Make sure we release the "sock" file descriptors in all cases. Add test trying to reproduce the issue passing an invalid file descriptor; not a perfect reproduction but failure in this function can happen for instance if daemon is restarted. Signed-off-by: Frediano Ziglio <[email protected]>
We just want information about the current process. Signed-off-by: Frediano Ziglio <[email protected]>
…unctions Signed-off-by: xueqingz <[email protected]> Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: xueqingz <[email protected]> Signed-off-by: Luca Zhang <[email protected]>
changed templates: APIVersions.mustache,APIErrors.mustache, Record.mustache Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: xueqingz <[email protected]> Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
…lass messages Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
…h_enums` Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
…ge_master_to_feature Merge master branch to go_sdk feature branch
This is unnecessary overhead for traffic that does not actually hit the network. Signed-off-by: Rob Hoes <[email protected]>
Not used anymore. Signed-off-by: Frediano Ziglio <[email protected]>
CA-393119: Don't use HTTPS for localhost migrations
…virt_script_removal CP-49828: Remove iovirt script
Initial commit message: "Provides simple code to generate S-expression trees and attempt to parse them across a large number of threads. It serves to demonstrate that ocamlyacc's generated parses are not thread-safe (in that they modify a global variable "env")." Move Colin's unit test for parallel parsing into xapi. Signed-off-by: Colin Barr <[email protected]> Signed-off-by: Gabriel Buica <[email protected]>
Make `test_sexpr` run using alcotest. Signed-off-by: Gabriel Buica <[email protected]>
From https://ocaml.org/manual/5.1/lexyacc.html on ocamlyacc concurrency sefety: "Parsers generated by ocamlyacc are not thread-safe. Those parsers rely on an internal work state which is shared by all ocamlyacc generated parsers. The menhir parser generator is a better option if you want thread-safe parsers." We currently hold a global lock while calling the sexpr parser, so even if we try to parse a small sexpression, it'll be blocked behind parsing the large one. Switch to Menhir to make this thread-safe. Signed-off-by: Gabriel Buica <[email protected]>
Using `ocamlyacc` with this change results in a test failure. Thus showing the issue of parallel parsing using `ocamlyacc`. Signed-off-by: Gabriel Buica <[email protected]>
Signed-off-by: Edwin Török <[email protected]>
We want to be sure there are no more uses of `ocamlyacc`, because of concurrency issues. Menhir should be used instead. Signed-off-by: Gabriel Buica <[email protected]>
…/CP-49129 CP-49129: Drop global lock around sexpr parsing
qcheck is in the wrong part of xs-opam currently, and although we're moving it this test really only needs qcheck-core, so link only that to fix an internal CI failure. Signed-off-by: Edwin Török <[email protected]>
Signed-off-by: Edwin Török <[email protected]>
Github CI runs the makefile using SHELL=/bin/dash, which doesn't support SIG* names for traps. Drop the SIG prefix, which works with both `dash` and `bash`. Signed-off-by: Edwin Török <[email protected]>
Signed-off-by: Ming Lu <[email protected]>
Signed-off-by: Ming Lu <[email protected]>
Signed-off-by: Ming Lu <[email protected]>
Prior to this change, the function parameter list is generated by Mustache template. As a result, a template boolean variable 'first' has to be used to determine if a leading comma is presented or not. E.g. when the 'first' is true, a parameter would be rendered as "a string', and then the next parameter with the 'first' being false would be rendered as ", b string". Putting them together would result in "a string, b string". This could work but is difficult to be understood. In this commit, it is changed to construct the whole function parameter list as a string in OCaml code and bind it to the template variable 'func_params'. Similar changes apply to the template variable 'is_session_id'. It is removed in this commit and the expected values are generated by OCaml code. Signed-off-by: Ming Lu <[email protected]>
Signed-off-by: Ming Lu <[email protected]>
Feature merge: Go SDK
Remove `package` and `public_name` stanzas for `sexprpp` executable. Signed-off-by: Gabriel Buica <[email protected]>
This fixes opam-based builds in xs-opam Signed-off-by: Pau Ruiz Safont <[email protected]>
…/fix-rpm-build rpm: remove `sexprpp` from public_name
psafont
approved these changes
Jun 17, 2024
bernhardkaindl
approved these changes
Jun 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I fixed some 'dune' files, because this branch has 'no implicit transitive deps' on and we need to be more explicit with dune dependencies.