Skip to content

Conversation

cplaursen
Copy link
Contributor

When performing the changes described in add-function.md for adding a host-price-of function to xapi, a type error would arise from the message-forwarding.ml file - this is fixed by explicitly giving the remote_fn named argument.

do_op_on ~local_fn ~__context ~host
(fun session_id rpc -> Client.Host.price_of ~rpc ~session_id ~host ~item)
let remote_fn = Client.Host.price_of ~host ~item in
do_op_on ~local_fn ~__context ~host ~remote_fn
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, do_op_on now has a named argument ~remote_fn, which it previously didn't have.

- The ~flags parameter is used to set conditions for the use of the message.
For example, `Session is used to indicate that the call must be made in the
presence of an existing session.
presence of an existing session`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The backtick here is actually for the OCaml polymorphic variant

`Session

so there shouldn't be one at the end.

Copy link
Contributor

@lindig lindig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-approving to help with the merge

@changlei-li
Copy link
Contributor

changlei-li commented Sep 17, 2025

Welcome. As the failed DCO job log says, use git commit -s. You can also create alias for it, like git config --global alias.cs "commit -s".

@robhoes
Copy link
Member

robhoes commented Sep 17, 2025

Looks like the DCO check is not happy if the committer email and sign-off emails are not the same:

Commit sha: ec340d0, Author: Christian Pardillo Laursen, Committer: Christian Pardillo Laursen; Expected "Christian Pardillo Laursen [email protected]", but got "Christian Pardillo Laursen [email protected]".

@cplaursen cplaursen force-pushed the docs-edit branch 2 times, most recently from f0611a5 to 1ff09d1 Compare September 17, 2025 10:20
@cplaursen
Copy link
Contributor Author

Thanks for this, I force pushed the change and added the cloud address to my github account, but it still seems unhappy with it. Do I need to make the cloud address my primary one to sign off with it?

@robhoes
Copy link
Member

robhoes commented Sep 17, 2025

I think it is about your local git email config.

When performing the changes described in add-function.md for adding a
host-price-of function to xapi, a type error would arise from the
message-forwarding.ml file - this is fixed by explicitly giving the remote_fn
named argument.

Signed-off-by: Christian Pardillo Laursen <[email protected]>
@cplaursen
Copy link
Contributor Author

All done!

@robhoes robhoes enabled auto-merge September 17, 2025 12:21
@robhoes robhoes added this pull request to the merge queue Sep 17, 2025
Merged via the queue into xapi-project:master with commit a1ea40a Sep 17, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants