Giter VIP home page Giter VIP logo

Comments (6)

werkt avatar werkt commented on September 24, 2024

"Without a result" presumably meaning the default ActionResult instance? Hard to make a request otherwise.

Incidentally, can you refer to the documentation where this permission is enumerated here? I went looking for something similar recently, and I think we need the language associated with the permission to agree on action anyway.

from remote-apis.

EricBurnett avatar EricBurnett commented on September 24, 2024

I don't recall why RBE has an action 'delete' permission - most likely the permission exists but with no associated methods that leverage it. What is your use-case that needs Delete?

Whatever the reason, I have no specific objection to a Delete* method for actions, if you have a reason to need such a thing. But I also haven't encountered much call for it, and will note that RBE has no such need (or method) today*.

* Through the front door, anyways - we remove AC entries with garbage collection, for example, but that's an implementation detail.

from remote-apis.

ulfjack avatar ulfjack commented on September 24, 2024

Google's RBE permissions are documented here: https://cloud.google.com/iam/docs/permissions-reference (search for remotebuildexecution)

@werkt: the Java protobuf API does distinguish between unset protos and default protos, it only doesn't allow doing this for primitive types.

We may need an API to delete malformed, broken, or malicious action cache entries. Technically, overwriting an action cache entry may also be possible by setting skip_cache_lookup=true, but that incurs the cost of re-executing the action, and the service typically only writes an entry if the exit code is zero.

from remote-apis.

bergsieker avatar bergsieker commented on September 24, 2024

Conceptually I have no objection to an explicit delete API. We originally opted not to implement one at least in part because constructing the digest to delete is relatively difficult, but that was purely a pragmatic decision based on the client tooling available at the time.

from remote-apis.

peterebden avatar peterebden commented on September 24, 2024

I'd vote in favour of an explicit delete in preference to overloading UpdateActionResult. Agreed that this is a useful thing in practice.

We might want to consider extending ActionCacheUpdateCapabilities to indicate whether delete is enabled (or clarify that update_enabled covers both).

from remote-apis.

sstriker avatar sstriker commented on September 24, 2024

In concept I would agree. @ulfjack, would you mind bringing this back to the mailing list to ensure broader visibility of the question? If you already have a proposal for the DeleteActionResult API, maybe open a WIP PR?

from remote-apis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.