Update dependencies, buildbarn ecosystem to latest#29
Update dependencies, buildbarn ecosystem to latest#29minor-fixes merged 17 commits intobuildbarn:masterfrom
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.
@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
WORKSPACEfrom 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:
HTTPClientwas eliminated from bb-storage; mocking had to be done on ahttp.RoundTripperinstead, in the same manner as buildbarn/bb-storage@b9951achttp.ClientConfigurationproto options toHttpFetcherConfigurationbazel.canonical_idadded 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:
Testednotes 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-apisneeds to be adjusted slightly (build: Modify patch to remote-apis for greater compatibility bb-storage#170)