Add or-tools modules#3832
Conversation
|
Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (or-tools) have been updated in this PR. |
b8b0bb8 to
c1a2d4d
Compare
|
Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (ortools) have been updated in this PR. |
|
PTAL |
|
👍 Given that ortools is using a newer version of absl, it would probably be good to include a patch that inserts |
EDIT: even better, cli to find files using |
#TIL that there is |
|
Not sure if my approval of a non-write-access person counts in any way, but I think this is a good first version to get into the BCR. |
|
@Mizux @hzeller Do you want to wait a bit for a new protobuf release so that you can use Or we just go with |
Discussing with @mering in off, I'll try to wait and revert this PR to |
|
I am happy to wait for it to be possible to have a proper name with a dash |
Require module maintainers' approval for newly pushed changes.
|
Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (or-tools, ortools) have been updated in this PR. |
|
Currently pushing "both" module (1 commit per module, have squashed previous commits), to check the CI |
|
Please rebase your branch to get the latest protobuf version |
|
Oh, looks like you still need to switch to use py_proto_library from protobuf: |
|
Or, upgrade rules_python to the latest version: bazel-contrib/rules_python@edfb4b3 |
yes and no: here we try to package the release 9.12 (basically snapshot of October 2024) i.e. I don't see the point to pass hours to backport bazel patch only required for BCR while it should work for 9.13 out of the box + 9.12 build (CMake and bazel) and local BCR seems to work too... devNote: %git grep "load.*py_proto_library"
ortools/algorithms/BUILD.bazel:load("@rules_python//python:proto.bzl", "py_proto_library")
ortools/bop/BUILD.bazel:load("@rules_python//python:proto.bzl", "py_proto_library")
ortools/constraint_solver/BUILD.bazel:load("@rules_python//python:proto.bzl", "py_proto_library")
ortools/glop/BUILD.bazel:load("@rules_python//python:proto.bzl", "py_proto_library")
ortools/gscip/BUILD.bazel:load("@rules_python//python:proto.bzl", "py_proto_library")
ortools/linear_solver/BUILD.bazel:load("@rules_python//python:proto.bzl", "py_proto_library")
ortools/math_opt/BUILD.bazel:load("@rules_python//python:proto.bzl", "py_proto_library")
ortools/math_opt/solvers/BUILD.bazel:load("@rules_python//python:proto.bzl", "py_proto_library")
ortools/pdlp/BUILD.bazel:load("@rules_python//python:proto.bzl", "py_proto_library")
ortools/sat/BUILD.bazel:load("@rules_python//python:proto.bzl", "py_proto_library")
ortools/scheduling/BUILD.bazel:load("@rules_python//python:proto.bzl", "py_proto_library")
ortools/service/v1/BUILD.bazel:load("@rules_python//python:proto.bzl", "py_proto_library")
ortools/service/v1/mathopt/BUILD.bazel:load("@rules_python//python:proto.bzl", "py_proto_library")
ortools/util/BUILD.bazel:load("@rules_python//python:proto.bzl", "py_proto_library")From v99bugfix or main %git grep "load.*py_proto_library"
ortools/bop/BUILD.bazel:load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library")
ortools/constraint_solver/BUILD.bazel:load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library")
ortools/glop/BUILD.bazel:load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library")
ortools/gscip/BUILD.bazel:load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library")
ortools/linear_solver/BUILD.bazel:load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library")
ortools/math_opt/BUILD.bazel:load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library")
ortools/math_opt/solvers/BUILD.bazel:load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library")
ortools/pdlp/BUILD.bazel:load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library")
ortools/sat/BUILD.bazel:load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library")
ortools/scheduling/BUILD.bazel:load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library")
ortools/service/v1/BUILD.bazel:load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library")
ortools/service/v1/mathopt/BUILD.bazel:load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library")
ortools/set_cover/BUILD.bazel:load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library")
ortools/util/BUILD.bazel:load("@com_google_protobuf//bazel:py_proto_library.bzl", "py_proto_library") |
|
Can you upgrade |
Yup the idea was to suppose seems now we have issue with riegeli upstream... |
|
Upgrading riegeli might help (although it's not your direct dependency) |
Just found: But the repo has zero release and tags... devNote: All fuzztest release borken 🙃 |
Yes, that's why we have to make up a version number in BCR |
* Add v9.12 * use -c opt in presubmit to avoid build failure. note: BCR use sha256sum encoded in base64 to make it boring to generate... ```sh sha256sum v9.12.tar.gz | cut -d' ' -f1 | xxd -r -p | base64 ```
Should fix hyphen error... ref: https://github.com/protocolbuffers/protobuf/releases/tag/v3
see if it fix the build
need fix: google/riegeli@0306789 (2024 September) devNote: gen patch between v9.12 clone and custom MODULE.bazel ```sh pushd cd modules/or-tools/9.12 meld patches/bazel.patch <$(diff -u ~/work/stable/MODULE.bazel MODULE.bazel) popd bazel run //tools:update_integrity or-tools bazel run -- //tools:bcr_validation --check=or-tools@9.12 ```
|
Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (or-tools) have been updated in this PR. |
=> Should be ready to merge ! |
issue found while submitting bazelbuild/bazel-central-registry#3832
* Add [google/or-tools v9.12](https://github.com/google/or-tools/releases/tag/v9.12) * need the fix google/riegeli@0306789 (2024 September) only available in BCR version = "0.0.0-20241218-3385e3c" of riegeli. note: none version of fuzztest use it... `git grep -A 1 "\bname = .*riegeli" | grep -v "\(modules\/riegeli\|--\)"` ## DevNote: Gen patch between original or-tools `v9.12` MODULE.bazel and custom MODULE.bazel: ```sh pushd cd modules/or-tools/9.12 meld patches/bazel.patch <$(diff -u ~/work/stable/MODULE.bazel MODULE.bazel) popd bazel run //tools:update_integrity or-tools bazel run -- //tools:bcr_validation --check=or-tools@9.12 ``` BCR use sha256sum encoded in base64 to make it boring to generate... ```sh git archive --prefix=or-tools-9.12/ -o or-tools-9.12.tar.gz v9.12 sha256sum v9.12.tar.gz | cut -d' ' -f1 | xxd -r -p | base64 ```
Add google/or-tools v9.12
need the fix google/riegeli@0306789 (2024 September) only available in BCR version = "0.0.0-20241218-3385e3c" of riegeli.
note: none version of fuzztest use it...
git grep -A 1 "\bname = .*riegeli" | grep -v "\(modules\/riegeli\|--\)"DevNote:
Gen patch between original or-tools
v9.12MODULE.bazel and custom MODULE.bazel:BCR use sha256sum encoded in base64 to make it boring to generate...