Updates/bazel builds srql #2242
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!2242
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2242/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub pull request.
Original GitHub pull request: #1662
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1662
Original created: 2025-09-25T03:30:27Z
Original updated: 2025-09-25T03:37:34Z
Original head: carverauto/serviceradar:updates/bazel_builds_srql
Original base: main
Original merged: 2025-09-25T03:37:31Z by @mfreeman451
PR Type
Enhancement
Description
Update OCaml version from 4.14.2 to 5.2.0
Upgrade OPAM version to 2.4.1 with new checksums
Update proton dependency to version 1.0.16
Fix OCaml SDK path references for unix module
Diagram Walkthrough
File Walkthrough
5 files
Add OPAM 2.4.1 checksums for all platformsUpdate OCaml and dependency versionsAdd bigarray-overlap 0.2.1 package definitionAdd proton 1.0.16 package definitionAdd proton 1.0.16 package URL and checksum1 files
Add lwt_ppx preprocessor to srql_server_main4 files
Fix unix dependency path referencesUpdate compiled template with fixed unix pathsFix unix alias path referenceUpdate compiled unix alias templateImported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1662#issuecomment-3331955241
Original created: 2025-09-25T03:31:24Z
PR Reviewer Guide 🔍
Here are some key observations to aid the review process:
Compatibility
Upgrading to OCaml 5.2.0 and changing opam to 2.4.1 may require additional package constraints (e.g., for ppx/lwt/dream). Validate that all pinned versions resolve under the new compiler and that build flags are updated where needed.
Build Config
Added ppx dependency for lwt_ppx; ensure toolchain picks up the correct PPX executable target and that transitive PPX expectations are satisfied in downstream modules.
Path Refactor
Switched unix module path from lib/unix to unix/lib; verify all template-generated references and embedded C templates remain consistent and no consumers still rely on the old path.
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1662#issuecomment-3331956753
Original created: 2025-09-25T03:32:22Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Investigate the unexplained
dreampackage downgradeThe
dreampackage is downgraded from version1.0.0toalpha81.0.0alpha7without any explanation in the PR. This change should be investigated to
understand the reason and potential impact.
Examples:
MODULE.bazel [245]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 9
__
Why: This is a critical observation, as the unexplained downgrade of the
dreampackage contradicts the PR's goal of upgrading dependencies and may hide significant compatibility issues or regressions.Prevent potential build installation failure
In the
bigarray-overlapopam file, make the copy ofliboverlap_stubs.ain theinstallstep conditional to prevent potential installation failures, mirroringthe logic from the
buildstep.third_party/vendor/tools_opam/extensions/opam/overrides_repo/packages/bigarray-overlap/bigarray-overlap.0.2.1/opam [33-37]
Suggestion importance[1-10]: 6
__
Why: The suggestion correctly identifies that the unconditional copy in the
installstep could fail because the file is only created conditionally in thebuildstep, and the proposed fix improves build robustness.Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1662#issuecomment-3331964928
Original created: 2025-09-25T03:37:31Z
CI Feedback 🧐
A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
Action: build-test
Failed stage: Install dependencies (with tests) [❌]
Failure summary:
The action failed during OPAM dependency resolution due to incompatible OCaml package constraints:
-
The environment pins
ocaml-base-compiler = 5.3.0, but dependencies pulled bydeps-of-srql-translator→ dream ≥ 1.0.0requirealpha7 → dream-httpaf ≥ 1.0.0alpha4 → h2 < 0.13.0 → hpack = 0.11.0ocaml <5.3, forcingocaml-base-compiler < 5.2.2~(conflict with 5.3.0).- Additional incompatibilities:
dkml-base-compilerandocaml-variantsrequireocaml < 5.0, which is incompatible withocaml-base-compiler = 5.3.0.- Missing dependencies due to unmet availability conditions:
-
ocaml-beta(requiresenable-ocaml-beta-repository)-
system-msvc(requiresos = "win32")As a
result, OPAM reported a "Package conflict!" and exited with code 20.
Relevant error logs: