-
Notifications
You must be signed in to change notification settings - Fork 17
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
Update dependencies, buildbarn ecosystem to latest #29
Conversation
Now stuck at actual compilation issues due to changes in bb-storage
Currently running into some compile issues, and could use a little guidance:
This appears to be due to the modifications in bb-storage around support of
I'm a bit new to the buildbarn codebase, so any pointers here would be greatly appreciated! |
WORKSPACE
Outdated
strip_prefix = "googleapis-143084a2624b6591ee1f9d23e7f5241856642f4d", | ||
urls = ["https://github.com/googleapis/googleapis/archive/143084a2624b6591ee1f9d23e7f5241856642f4d.zip"], | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@googleapis
is extra over bb-storage's WORKSPACE
; AFAICT this is because @googleapis
is required for remote-apis but bb-storage patches remote-apis to use @go_googleapis
instead sufficiently for its usecase (but not sufficiently for the remote asset proto).
Either the patch to remote-apis needs to be reworked to cover more of the protos, or maybe remote-apis can be fixed in a way that doesn't necessitate the patch, but having this here doesn't seem to be causing build issues yet.
Yes, that would be ideal. This was also being discussed in the PR itself: bazelbuild/remote-apis#235 (comment) What you can do for the time being is that you use a construct like this: But with
One of the things we also wanted to rectify in REv2 was that the protocol would allow you to construct input roots with heterogeneous digest functions. So a SHA-256 based action with an MD5 input root with a SHA-1 subdirectory. This isn't desirable, as it lacks normalization. This is why we made it so that the digest function needs to be provided on a per request basis. Not a per Digest basis.
No worries. Doing a great job! |
Everything builds (so far) except using an outdated protoc-gen-go for some reason
`bazel test //...` works! (with modified patch on bb-storage)
Some cleanup
Updated the github workflows and did some preliminary local testing via |
This commit grabs the latest bb-storage and bb-remote-execution, and their transitive updates to third-party repos.
274199f
to
bc43c92
Compare
This change brings bb-remote-asset up-to-date with bb-storage/bb-remote-execution, so that nominally they may be able to use compatible configs, and likely inherit the other benefits (more recent toolchain, better bazel integration, etc.)
This is done largely by copying
WORKSPACE
from bb-storage, making sure to match versions and orderings to ensure that the same versions of dependencies are loaded.Other transforms/migrations that proved necessary:
HTTPClient
was eliminated from bb-storage; mocking had to be done on ahttp.RoundTripper
instead, in the same manner as buildbarn/bb-storage@b9951achttp.ClientConfiguration
proto options toHttpFetcherConfiguration
bazel.canonical_id
added to the list of supported qualifiers, which prevents errors in some (most?) WORKSPACE configurationsTested:
bazel test //...
with build: Modify patch to remote-apis for greater compatibility bb-storage#170 works on my systemTODO:
Tested
notes in docker-compose: Add bb-remote-asset to setup bb-deployments#91[ ] Adjust config samples?Config samples look reasonably up-to-datebb-storage
- patch toremote-apis
needs to be adjusted slightly (build: Modify patch to remote-apis for greater compatibility bb-storage#170)